Class ElementRule

All Implemented Interfaces:
NameClassAndExpression, Serializable

public class ElementRule extends ElementExp
ElementRule declaration of RELAX.
See Also:
  • Field Details

    • clause

      public final TagClause clause
      constraints over start tag of the element
    • attributeFreeContentModel

      public final Expression attributeFreeContentModel
      Attribute-free content model
    • parent

      protected ElementRules parent
    • serialVersionUID

      private static final long serialVersionUID
      See Also:
  • Constructor Details

  • Method Details

    • getParent

      public ElementRules getParent()
      gets the parent ElementRules object. when this object is used as a named, no-inline elementRule, this variable holds a reference to the parent ElementRules object. otherwise, null
    • getNameClass

      public final NameClass getNameClass()
      Description copied from class: ElementExp
      obtains a constraint over tag name. ElementExp is cannot be shared because NameClass has to be mutable to absorb the difference of RELAX and TREX. In case of TREX, name class will be determined when parsing ElementExp itself. Thus effectively it's immutable. In case of RELAX, name class will be determined when its corresponding Clause object is parsed.
      Specified by:
      getNameClass in interface NameClassAndExpression
      Specified by:
      getNameClass in class ElementExp