com.sun.msv.grammar

Class DataExp

public final class DataExp extends Expression implements DataOrValueExp

Expression that matchs characters of the particular {@link Datatype}.

Author: Kohsuke KAWAGUCHI

Field Summary
Datatypedt
datatype object that actually validates text.
Expressionexcept
'except' clause of RELAX NG.
StringPairname
name of this datatype.
Method Summary
booleanequals(Object o)
StringPairgetName()
DatatypegetType()
Objectvisit(ExpressionVisitor visitor)
Expressionvisit(ExpressionVisitorExpression visitor)
booleanvisit(ExpressionVisitorBoolean visitor)
voidvisit(ExpressionVisitorVoid visitor)

Field Detail

dt

public final Datatype dt
datatype object that actually validates text.

except

public final Expression except
'except' clause of RELAX NG. If a token matches this pattern, then it should be rejected.

name

public final StringPair name
name of this datatype. The value of this field is not considered as significant. When two TypedStringExps share the same Datatype object, then they are unified even if they have different names.

Method Detail

equals

public boolean equals(Object o)

getName

public StringPair getName()

getType

public Datatype getType()

visit

public Object visit(ExpressionVisitor visitor)

visit

public Expression visit(ExpressionVisitorExpression visitor)

visit

public boolean visit(ExpressionVisitorBoolean visitor)

visit

public void visit(ExpressionVisitorVoid visitor)