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
Modifier and TypeFieldDescriptionfinal IDContextProvider2
protected final boolean
final String
if this field is non-null, this field will receive assigned DataType object.protected final ResidualCalculator
protected boolean
-
Constructor Summary
ConstructorDescriptionStringToken
(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 StringToken
createChildStringToken
(String literal, DatatypeRef dtRef) boolean
DataExp can consume this token if its datatype can accept this stringboolean
ListExp can consume this token if its pattern accepts this stringboolean
boolean
returns 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:Token
returns true if anyString pattern can consume this token- Overrides:
matchAnyString
in classToken
-