org.inria.ns.reflex.processor.asl.types
Class TypedData.DefaultTypedData

java.lang.Object
  extended by org.inria.ns.reflex.processor.asl.types.TypedData.Impl
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.processor.asl.types.TypedData
TypedData.DefaultTypedData, TypedData.Impl
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.structures.Unwrappable
Unwrappable.Unwrapper
 
Field Summary
 
Fields inherited from interface org.inria.ns.reflex.processor.asl.types.TypedData
TYPE_XOP
 
Fields inherited from interface org.inria.ns.reflex.structures.Unwrappable
UNWRAPPER
 
Constructor Summary
TypedData.DefaultTypedData(Type type, Object value, String canonicalValue)
           
TypedData.DefaultTypedData(Type type, Object value, String canonicalValue, String remainder)
           
TypedData.DefaultTypedData(Type type, Object value, String lexicalValue, String canonicalValue, String remainder)
           
 
Method Summary
 String getCanonicalValue()
          Get the canonical value of this data.
 String getLexicalValue()
          Get the lexical value of this data.
 String getRemainder()
          Get the remainder after building this data.
 Type getType()
          Get the type of the data.
 void setValue(Object value)
          Set the value of this typed data.
 Object unwrap()
          Return the object wrapped.
 
Methods inherited from class org.inria.ns.reflex.processor.asl.types.TypedData.Impl
getNonIgnorableRemainder, getXOperator, ignore, isIgnorable, setIgnorable, size, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.inria.ns.reflex.processor.asl.types.TypedData
getNonIgnorableRemainder, ignore
 
Methods inherited from interface org.inria.ns.reflex.structures.XOperable
getXOperator
 
Methods inherited from interface org.inria.ns.reflex.structures.IgnorableData
setIgnorable, size
 
Methods inherited from interface org.inria.ns.reflex.structures.Ignorable
isIgnorable
 

Constructor Detail

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)
Method Detail

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