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

java.lang.Object
  extended by org.inria.ns.reflex.processor.asl.types.TypedData.Impl
All Implemented Interfaces:
TypedData, Ignorable, IgnorableData, Unwrappable, XOperable
Direct Known Subclasses:
CalendarData, NumericData, TypedData.DefaultTypedData
Enclosing interface:
TypedData

public abstract static class TypedData.Impl
extends Object
implements TypedData

A minimal implementation of typed data.


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.Impl()
           
 
Method Summary
 String getNonIgnorableRemainder()
          Get the non-ignorable remainder after building this data.
 XOperator getXOperator()
          Return the X-operator of this object.
 void ignore(IgnorableData data)
          Indicates that some remainder data has been consumed and must be ignored.
 boolean isIgnorable()
          Indicates if this object is ignorable.
 void setIgnorable(boolean isIgnorable)
          Indicates if this object is ignorable.
 int size()
          If this data is ignorable, the amount of data to ignore.
 String toString()
          Return this lexical value.
 
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
getCanonicalValue, getLexicalValue, getRemainder, getType, setValue
 
Methods inherited from interface org.inria.ns.reflex.structures.Unwrappable
unwrap
 

Constructor Detail

TypedData.Impl

public TypedData.Impl()
Method Detail

isIgnorable

public boolean isIgnorable()
Indicates if this object is ignorable.

Specified by:
isIgnorable in interface Ignorable
Returns:
true if this object is ignorable, false otherwise.

setIgnorable

public void setIgnorable(boolean isIgnorable)
Indicates if this object is ignorable.

Specified by:
setIgnorable in interface IgnorableData
Parameters:
isIgnorable - true if this object must be ignored, false otherwise.

getNonIgnorableRemainder

public String getNonIgnorableRemainder()
Get the non-ignorable remainder after building this data. The non-ignorable remainder MUST be consumed.

Specified by:
getNonIgnorableRemainder in interface TypedData
Returns:
The not null remainder.

ignore

public void ignore(IgnorableData data)
Indicates that some remainder data has been consumed and must be ignored.

Specified by:
ignore in interface TypedData
Parameters:
data - The amount of data to ignore.

size

public int size()
If this data is ignorable, the amount of data to ignore.

Specified by:
size in interface IgnorableData
Returns:
The lexical value length ; this implementation return those given by the "lexical-value" facet.
See Also:
IgnorableData.size()

toString

public String toString()
Return this lexical value.

Overrides:
toString in class Object
Returns:
The lexical value ; this implementation return those given by the "lexical-value" facet.
See Also:
Object.toString()

getXOperator

public XOperator getXOperator()
Return the X-operator of this object.

Specified by:
getXOperator in interface XOperable
Returns:
The non null X-operator of this object.
See Also:
XOperable.getXOperator()