Class ElementToken

java.lang.Object
com.sun.msv.verifier.regexp.Token
com.sun.msv.verifier.regexp.ElementToken
Direct Known Subclasses:
AnyElementToken

public class ElementToken extends Token
a token that represents an XML element.
Author:
Kohsuke KAWAGUCHI
  • Constructor Details

    • ElementToken

      public ElementToken(ElementExp[] acceptedPatterns)
  • Method Details

    • match

      public boolean match(ElementExp exp)
      Description copied from class: Token
      returns true if the given ElementExp can consume this token
      Overrides:
      match in class Token
    • toString

      public String toString()
      Overrides:
      toString in class Object