org.inria.ns.reflex.processor.asl.types
Interface TypedData

All Superinterfaces:
Ignorable, IgnorableData, Unwrappable, XOperable
All Known Implementing Classes:
CalendarData, CompositeData, NumericData, TypedData.DefaultTypedData, TypedData.Impl

public interface TypedData
extends XOperable, Unwrappable, Ignorable, IgnorableData

A typed data.

Author:
Philippe Poulard

Nested Class Summary
static class TypedData.DefaultTypedData
           
static class TypedData.Impl
          A minimal implementation of typed data.
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.structures.Unwrappable
Unwrappable.Unwrapper
 
Field Summary
static XOperator TYPE_XOP
          The XOperator for typed datas.
 
Fields inherited from interface org.inria.ns.reflex.structures.Unwrappable
UNWRAPPER
 
Method Summary
 String getCanonicalValue()
          Get the canonical value of this data.
 String getLexicalValue()
          Get the lexical value of this data.
 String getNonIgnorableRemainder()
          Get the non-ignorable remainder after building this data.
 String getRemainder()
          Get the remainder after building this data.
 Type getType()
          Get the type of the data.
 void ignore(IgnorableData data)
          Indicates that some remainder data has been consumed and must be ignored.
 void setValue(Object value)
          Set the value of this typed data.
 
Methods inherited from interface org.inria.ns.reflex.structures.XOperable
getXOperator
 
Methods inherited from interface org.inria.ns.reflex.structures.Unwrappable
unwrap
 
Methods inherited from interface org.inria.ns.reflex.structures.IgnorableData
setIgnorable, size
 
Methods inherited from interface org.inria.ns.reflex.structures.Ignorable
isIgnorable
 

Field Detail

TYPE_XOP

static final XOperator TYPE_XOP
The XOperator for typed datas.

Method Detail

setValue

void setValue(Object value)
              throws TypeFormatException
Set the value of this typed data.

Parameters:
value - The value to set.
Throws:
TypeFormatException - When the value is not of the type expected.

getType

Type getType()
Get the type of the data.

Returns:
The type of the data.

getRemainder

String getRemainder()
Get the remainder after building this data.

Returns:
The not null remainder.

getLexicalValue

String getLexicalValue()
Get the lexical value of this data.

Returns:
The lexical value of this data.

getCanonicalValue

String getCanonicalValue()
Get the canonical value of this data.

Returns:
The canonical value of this data.

getNonIgnorableRemainder

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

Returns:
The not null remainder.

ignore

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

Parameters:
data - The amount of data to ignore.