Class StringToken
java.lang.Object
com.sun.msv.verifier.regexp.Token
com.sun.msv.verifier.regexp.StringToken
- Direct Known Subclasses:
StringRecoveryToken
chunk of string.
ID validation depends on the immutability of this object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal IDContextProvider2protected final booleanprivate static final org.relaxng.datatype.Datatype[]final Stringif this field is non-null, this field will receive assigned DataType object.protected final ResidualCalculatorprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionStringToken(REDocumentDeclaration docDecl, String literal, IDContextProvider2 context) StringToken(REDocumentDeclaration docDecl, String literal, IDContextProvider2 context, DatatypeRef refType) StringToken(ResidualCalculator resCalc, String literal, IDContextProvider2 context, DatatypeRef refType) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassignType(org.relaxng.datatype.Datatype dt) protected StringTokencreateChildStringToken(String literal, DatatypeRef dtRef) (package private) booleanchecks if this token is ignorable.booleanDataExp can consume this token if its datatype can accept this stringbooleanListExp can consume this token if its pattern accepts this stringbooleanbooleanreturns true if anyString pattern can consume this token
-
Field Details
-
literal
-
context
-
resCalc
-
ignorable
protected final boolean ignorable -
refType
if this field is non-null, this field will receive assigned DataType object. -
saturated
protected boolean saturated -
ignoredType
private static final org.relaxng.datatype.Datatype[] ignoredType
-
-
Constructor Details
-
StringToken
-
StringToken
public StringToken(REDocumentDeclaration docDecl, String literal, IDContextProvider2 context, DatatypeRef refType) -
StringToken
public StringToken(ResidualCalculator resCalc, String literal, IDContextProvider2 context, DatatypeRef refType)
-
-
Method Details
-
match
-
match
-
match
-
createChildStringToken
-
matchAnyString
public boolean matchAnyString()Description copied from class:Tokenreturns true if anyString pattern can consume this token- Overrides:
matchAnyStringin classToken
-
assignType
private void assignType(org.relaxng.datatype.Datatype dt) -
isIgnorable
boolean isIgnorable()checks if this token is ignorable. StringToken is ignorable when it matches [ \t\r\n]*- Overrides:
isIgnorablein classToken
-