Package com.sun.msv.verifier.regexp
Class StringToken
java.lang.Object
com.sun.msv.verifier.regexp.Token
com.sun.msv.verifier.regexp.StringToken
chunk of string.
ID validation depends on the immutability of this object.
- Author:
- Kohsuke KAWAGUCHI
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal IDContextProvider2protected final booleanfinal 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 TypeMethodDescriptionprotected StringTokencreateChildStringToken(String literal, DatatypeRef dtRef) 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
-
-
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
DataExp can consume this token if its datatype can accept this string -
match
-
match
ListExp can consume this token if its pattern accepts this string -
createChildStringToken
-
matchAnyString
public boolean matchAnyString()Description copied from class:Tokenreturns true if anyString pattern can consume this token- Overrides:
matchAnyStringin classToken
-