Package com.sun.msv.verifier.regexp
Class AttributeToken
- java.lang.Object
-
- com.sun.msv.verifier.regexp.Token
-
- com.sun.msv.verifier.regexp.AttributeToken
-
- Direct Known Subclasses:
AttributeRecoveryToken
public class AttributeToken extends Token
represents attribute and its value.
-
-
Field Summary
Fields Modifier and Type Field Description protected REDocumentDeclaration
docDecl
java.lang.String
localName
AttributeExp
matchedExp
holds a reference to the assigned type.java.lang.String
namespaceURI
java.lang.String
qName
private boolean
saturated
If this value is false, the "matched" field must always null.StringToken
value
-
Constructor Summary
Constructors Modifier Constructor Description (package private)
AttributeToken(REDocumentDeclaration docDecl)
protected
AttributeToken(REDocumentDeclaration docDecl, java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, StringToken value)
protected
AttributeToken(REDocumentDeclaration docDecl, java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, java.lang.String value, IDContextProvider2 context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) AttributeRecoveryToken
createRecoveryAttToken()
creates a special AttributeToken which matchs any content restrictions.boolean
match(AttributeExp exp)
(package private) void
reinit(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, StringToken value)
-
Methods inherited from class com.sun.msv.verifier.regexp.Token
isIgnorable, match, match, match, match, matchAnyString
-
-
-
-
Field Detail
-
namespaceURI
public java.lang.String namespaceURI
-
localName
public java.lang.String localName
-
qName
public java.lang.String qName
-
value
public StringToken value
-
docDecl
protected REDocumentDeclaration docDecl
-
matchedExp
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.
-
saturated
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.
-
-
Constructor Detail
-
AttributeToken
AttributeToken(REDocumentDeclaration docDecl)
-
AttributeToken
protected AttributeToken(REDocumentDeclaration docDecl, java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, java.lang.String value, IDContextProvider2 context)
-
AttributeToken
protected AttributeToken(REDocumentDeclaration docDecl, java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, StringToken value)
-
-
Method Detail
-
reinit
void reinit(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, StringToken value)
-
createRecoveryAttToken
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.
-
match
public boolean match(AttributeExp exp)
-
-