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
Expression that matchs characters of the particular
Datatype.- Author:
- Kohsuke KAWAGUCHI
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.relaxng.datatype.Datatypedatatype object that actually validates text.final Expression'except' clause of RELAX NG.final StringPairname of this datatype.Fields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataExp(org.relaxng.datatype.Datatype dt, StringPair typeName, Expression except) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancomputes epsilon reducibilityprotected final intComputes the hashCode again.booleangetName()org.relaxng.datatype.DatatypegetType()visit(ExpressionVisitor visitor) booleanvisit(ExpressionVisitorBoolean visitor) visit(ExpressionVisitorExpression visitor) voidvisit(ExpressionVisitorVoid visitor) Methods inherited from class com.sun.msv.grammar.Expression
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visit
-
Field Details
-
dt
public final org.relaxng.datatype.Datatype dtdatatype object that actually validates text. -
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
'except' clause of RELAX NG. If a token matches this pattern, then it should be rejected.
-
-
Constructor Details
-
DataExp
-
-
Method Details
-
getType
public org.relaxng.datatype.Datatype getType()- Specified by:
getTypein interfaceDataOrValueExp
-
getName
- Specified by:
getNamein interfaceDataOrValueExp
-
calcHashCode
protected final int calcHashCode()Description copied from class:ExpressionComputes 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:
calcHashCodein classExpression
-
equals
- Specified by:
equalsin classExpression
-
visit
- Specified by:
visitin classExpression
-
visit
- Specified by:
visitin classExpression
-
visit
- Specified by:
visitin classExpression
-
visit
- Specified by:
visitin classExpression
-
calcEpsilonReducibility
protected boolean calcEpsilonReducibility()Description copied from class:Expressioncomputes epsilon reducibility- Specified by:
calcEpsilonReducibilityin classExpression
-