Package com.sun.msv.grammar
Class DataExp
- java.lang.Object
-
- com.sun.msv.grammar.Expression
-
- com.sun.msv.grammar.DataExp
-
- All Implemented Interfaces:
DataOrValueExp
,Serializable
public final class DataExp extends Expression implements DataOrValueExp
Expression that matchs characters of the particularDatatype
.- Author:
- Kohsuke KAWAGUCHI
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description org.relaxng.datatype.Datatype
dt
datatype object that actually validates text.Expression
except
'except' clause of RELAX NG.StringPair
name
name of this datatype.-
Fields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DataExp(org.relaxng.datatype.Datatype dt, StringPair typeName, Expression except)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
calcEpsilonReducibility()
computes epsilon reducibilityprotected int
calcHashCode()
Computes the hashCode again.boolean
equals(Object o)
StringPair
getName()
org.relaxng.datatype.Datatype
getType()
Object
visit(ExpressionVisitor visitor)
boolean
visit(ExpressionVisitorBoolean visitor)
Expression
visit(ExpressionVisitorExpression visitor)
void
visit(ExpressionVisitorVoid visitor)
-
Methods inherited from class com.sun.msv.grammar.Expression
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visit
-
-
-
-
Field Detail
-
dt
public final org.relaxng.datatype.Datatype dt
datatype object that actually validates text.
-
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.
-
except
public final Expression except
'except' clause of RELAX NG. If a token matches this pattern, then it should be rejected.
-
-
Constructor Detail
-
DataExp
protected DataExp(org.relaxng.datatype.Datatype dt, StringPair typeName, Expression except)
-
-
Method Detail
-
getType
public org.relaxng.datatype.Datatype getType()
- Specified by:
getType
in interfaceDataOrValueExp
-
getName
public StringPair getName()
- Specified by:
getName
in interfaceDataOrValueExp
-
calcHashCode
protected final int calcHashCode()
Description copied from class:Expression
Computes the hashCode again.This method and the parameter to the constructor has to be the same. This method is used when the object is being read from the stream.
- Specified by:
calcHashCode
in classExpression
-
equals
public boolean equals(Object o)
- Specified by:
equals
in classExpression
-
visit
public Object visit(ExpressionVisitor visitor)
- Specified by:
visit
in classExpression
-
visit
public Expression visit(ExpressionVisitorExpression visitor)
- Specified by:
visit
in classExpression
-
visit
public boolean visit(ExpressionVisitorBoolean visitor)
- Specified by:
visit
in classExpression
-
visit
public void visit(ExpressionVisitorVoid visitor)
- Specified by:
visit
in classExpression
-
calcEpsilonReducibility
protected boolean calcEpsilonReducibility()
Description copied from class:Expression
computes epsilon reducibility- Specified by:
calcEpsilonReducibility
in classExpression
-
-