org.inria.ns.reflex.processor.asl.types
Class TypedData.DefaultTypedData
java.lang.Object
org.inria.ns.reflex.processor.asl.types.TypedData.Impl
org.inria.ns.reflex.processor.asl.types.TypedData.DefaultTypedData
- All Implemented Interfaces:
- TypedData, Ignorable, IgnorableData, Unwrappable, XOperable
- Enclosing interface:
- TypedData
public static class TypedData.DefaultTypedData
- extends TypedData.Impl
- implements TypedData
Fields inherited from interface org.inria.ns.reflex.processor.asl.types.TypedData |
TYPE_XOP |
TypedData.DefaultTypedData
public TypedData.DefaultTypedData(Type type,
Object value,
String lexicalValue,
String canonicalValue,
String remainder)
TypedData.DefaultTypedData
public TypedData.DefaultTypedData(Type type,
Object value,
String canonicalValue,
String remainder)
TypedData.DefaultTypedData
public TypedData.DefaultTypedData(Type type,
Object value,
String canonicalValue)
getCanonicalValue
public String getCanonicalValue()
- Description copied from interface:
TypedData
- Get the canonical value of this data.
- Specified by:
getCanonicalValue
in interface TypedData
- Returns:
- The canonical value of this data.
getLexicalValue
public String getLexicalValue()
- Description copied from interface:
TypedData
- Get the lexical value of this data.
- Specified by:
getLexicalValue
in interface TypedData
- Returns:
- The lexical value of this data.
getRemainder
public String getRemainder()
- Description copied from interface:
TypedData
- Get the remainder after building this data.
- Specified by:
getRemainder
in interface TypedData
- Returns:
- The not null remainder.
getType
public Type getType()
- Description copied from interface:
TypedData
- Get the type of the data.
- Specified by:
getType
in interface TypedData
- Returns:
- The type of the data.
setValue
public void setValue(Object value)
throws TypeFormatException
- Description copied from interface:
TypedData
- Set the value of this typed data.
- Specified by:
setValue
in interface TypedData
- Parameters:
value
- The value to set.
- Throws:
TypeFormatException
- When the value is not of the type expected.
unwrap
public Object unwrap()
- Description copied from interface:
Unwrappable
- Return the object wrapped. The object wrapped must be of the same type of
the wrapper.
- Specified by:
unwrap
in interface Unwrappable