Top Description Fields Constructors Methods
com.sun.msv.verifier.regexp

public Class StringToken

extends Token
Class Inheritance
Known Direct Subclasses
com.sun.msv.verifier.regexp.StringRecoveryToken
Imports
java.util.StringTokenizer, org.relaxng.datatype.Datatype, com.sun.msv.datatype.xsd.StringType, com.sun.msv.grammar.DataExp, .Expression, .IDContextProvider2, .ListExp, .ValueExp, com.sun.msv.util.DatatypeRef

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

Field Summary

Modifier and TypeField and Description
public final IDContextProvider2
protected final boolean
private static final Datatype[]
public final String
public DatatypeRef
refType

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

protected final ResidualCalculator
protected boolean

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
private void
protected StringToken
pack-priv boolean
isIgnorable()

Overrides com.sun.msv.verifier.regexp.Token.isIgnorable.

checks if this token is ignorable.
public boolean
match(DataExp exp)

Overrides com.sun.msv.verifier.regexp.Token.match.

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

Overrides com.sun.msv.verifier.regexp.Token.match.

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

Overrides com.sun.msv.verifier.regexp.Token.matchAnyString.

returns true if anyString pattern can consume this token
Inherited from com.sun.msv.verifier.regexp.Token:
matchmatch

Field Detail

contextback to summary
public final IDContextProvider2 context
ignorableback to summary
protected final boolean ignorable
ignoredTypeback to summary
private static final Datatype[] ignoredType
literalback to summary
public final String literal
refTypeback to summary
public DatatypeRef refType

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

resCalcback to summary
protected final ResidualCalculator resCalc
saturatedback to summary
protected boolean saturated

Constructor Detail

StringTokenback to summary
public StringToken(REDocumentDeclaration docDecl, String literal, IDContextProvider2 context)
StringTokenback to summary
public StringToken(REDocumentDeclaration docDecl, String literal, IDContextProvider2 context, DatatypeRef refType)
StringTokenback to summary
public StringToken(ResidualCalculator resCalc, String literal, IDContextProvider2 context, DatatypeRef refType)

Method Detail

assignTypeback to summary
private void assignType(Datatype dt)
createChildStringTokenback to summary
protected StringToken createChildStringToken(String literal, DatatypeRef dtRef)
isIgnorableback to summary
pack-priv boolean isIgnorable()

Overrides com.sun.msv.verifier.regexp.Token.isIgnorable.

checks if this token is ignorable. StringToken is ignorable when it matches [ \t\r\n]*

matchback to summary
public boolean match(DataExp exp)

Overrides com.sun.msv.verifier.regexp.Token.match.

DataExp can consume this token if its datatype can accept this string

matchback to summary
public boolean match(ValueExp exp)

Overrides com.sun.msv.verifier.regexp.Token.match.

matchback to summary
public boolean match(ListExp exp)

Overrides com.sun.msv.verifier.regexp.Token.match.

ListExp can consume this token if its pattern accepts this string

matchAnyStringback to summary
public boolean matchAnyString()

Overrides com.sun.msv.verifier.regexp.Token.matchAnyString.

Doc from com.sun.msv.verifier.regexp.Token.matchAnyString.

returns true if anyString pattern can consume this token