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

public Class ElementToken

extends Token
Class Inheritance
Known Direct Subclasses
com.sun.msv.verifier.regexp.AnyElementToken
Imports
com.sun.msv.grammar.ElementExp

a token that represents an XML element.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
pack-priv final ElementExp[]

Constructor Summary

AccessConstructor and Description
public
ElementToken(ElementExp[] acceptedPatterns)

Method Summary

Modifier and TypeMethod and Description
public boolean
match(ElementExp exp)

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

returns true if the given ElementExp can consume this token
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from com.sun.msv.verifier.regexp.Token:
isIgnorablematchmatchmatchmatchmatchAnyString

Field Detail

acceptedPatternsback to summary
pack-priv final ElementExp[] acceptedPatterns

Constructor Detail

ElementTokenback to summary
public ElementToken(ElementExp[] acceptedPatterns)

Method Detail

matchback to summary
public boolean match(ElementExp exp)

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

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

returns true if the given ElementExp can consume this token

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.