|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrelaxngcc.datatype.Datatype
public final class Datatype
Represents a RELAX NG datatype and its parsing code generator.
Field Summary | |
---|---|
static Datatype |
NOOP
Datatype instance that doesn't do any conversion. |
Method Summary | |
---|---|
java.lang.String |
displayName()
Gets the display name of this datatype. |
CDExpression |
generate(NGCCGrammar grammar,
CDVariable $text)
Generates the expression that parses the specified string into a target language value type. |
CDType |
getType()
Returns the type to which the return value from the generate method evaluates to. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Datatype NOOP
Method Detail |
---|
public CDExpression generate(NGCCGrammar grammar, CDVariable $text) throws NoDefinitionException, java.io.IOException
grammar
- This datatype is used for this grammar.
NoDefinitionException
java.io.IOException
public CDType getType()
public java.lang.String displayName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |