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 Details

    • namespaceURI

      public String namespaceURI
    • localName

      public String localName
    • qName

      public 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 Details

  • Method Details

    • reinit

      void reinit(String namespaceURI, String localName, 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)
      Overrides:
      match in class Token