com.sun.msv.verifier.regexp

Class StringToken

public class StringToken extends Token

chunk of string. ID validation depends on the immutability of this object.

Author: Kohsuke KAWAGUCHI

Field Summary
IDContextProvider2context
Stringliteral
DatatypeRefrefType
if this field is non-null, this field will receive assigned DataType object.
Constructor Summary
StringToken(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
booleanmatch(DataExp exp)
DataExp can consume this token if its datatype can accept this string
booleanmatch(ValueExp exp)
booleanmatch(ListExp exp)
ListExp can consume this token if its pattern accepts this string
booleanmatchAnyString()

Field Detail

context

public final IDContextProvider2 context

literal

public final String literal

refType

public DatatypeRef refType
if this field is non-null, this field will receive assigned DataType object.

Constructor Detail

StringToken

public StringToken(REDocumentDeclaration docDecl, String literal, IDContextProvider2 context)

StringToken

public StringToken(REDocumentDeclaration docDecl, String literal, IDContextProvider2 context, DatatypeRef refType)

StringToken

public StringToken(ResidualCalculator resCalc, String literal, IDContextProvider2 context, DatatypeRef refType)

Method Detail

match

public boolean match(DataExp exp)
DataExp can consume this token if its datatype can accept this string

match

public boolean match(ValueExp exp)

match

public boolean match(ListExp exp)
ListExp can consume this token if its pattern accepts this string

matchAnyString

public boolean matchAnyString()