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

public Class AttributeToken

extends Token
Class Inheritance
Known Direct Subclasses
com.sun.msv.verifier.regexp.AttributeRecoveryToken
Imports
com.sun.msv.grammar.AttributeExp, .IDContextProvider2, com.sun.msv.util.DatatypeRef

represents attribute and its value.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected REDocumentDeclaration
public String
public AttributeExp
matchedExp

holds a reference to the assigned type.

public String
public String
private boolean
saturated

If this value is false, the "matched" field must always null.

public StringToken

Constructor Summary

AccessConstructor and Description
pack-priv
protected
AttributeToken(REDocumentDeclaration docDecl, String namespaceURI, String localName, String qName, String value, IDContextProvider2 context)

protected
AttributeToken(REDocumentDeclaration docDecl, String namespaceURI, String localName, String qName, StringToken value)

Method Summary

Modifier and TypeMethod and Description
pack-priv final AttributeRecoveryToken
createRecoveryAttToken()

creates a special AttributeToken which matchs any content restrictions.

public boolean
pack-priv void
reinit(String namespaceURI, String localName, String qName, StringToken value)

Inherited from com.sun.msv.verifier.regexp.Token:
isIgnorablematchmatchmatchmatchmatchAnyString

Field Detail

docDeclback to summary
protected REDocumentDeclaration docDecl
localNameback to summary
public String localName
matchedExpback to summary
public AttributeExp matchedExp

holds a reference to the assigned type. If this AttributeToken is successfully consumed, then this field contains the AttributeExp which consumed this token. If this token is not consumed or several different AttributeExps consumed this token, then null.

namespaceURIback to summary
public String namespaceURI
qNameback to summary
public String qName
saturatedback to summary
private boolean saturated

If this value is false, the "matched" field must always null. This indicates that no AttributeExp has consumed this token yet. If this value is true and the "matched" field is non-null, then it means that AttributeExp has consumed this token. If this value is true and the "matched" field is null, then more than one AttributeExps have consumed this token.

valueback to summary
public StringToken value

Constructor Detail

AttributeTokenback to summary
pack-priv AttributeToken(REDocumentDeclaration docDecl)
AttributeTokenback to summary
protected AttributeToken(REDocumentDeclaration docDecl, String namespaceURI, String localName, String qName, String value, IDContextProvider2 context)
AttributeTokenback to summary
protected AttributeToken(REDocumentDeclaration docDecl, String namespaceURI, String localName, String qName, StringToken value)

Method Detail

createRecoveryAttTokenback to summary
pack-priv final AttributeRecoveryToken createRecoveryAttToken()

creates a special AttributeToken which matchs any content restrictions. This token acts like a wild card for the attribute. This method is used for error recovery.

matchback to summary
public boolean match(AttributeExp exp)

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

reinitback to summary
pack-priv void reinit(String namespaceURI, String localName, String qName, StringToken value)