Class NameClassAndExpressionState

All Implemented Interfaces:
ExpressionOwner, NameClassOwner, ContentHandler
Direct Known Subclasses:
AttributeState, ElementState

public abstract class NameClassAndExpressionState extends SequenceState implements NameClassOwner
Base implementation for ElementState and AttributeState This class collects one name class and patterns
  • Field Details

  • Constructor Details

    • NameClassAndExpressionState

      public NameClassAndExpressionState()
  • Method Details

    • getNamespace

      protected String getNamespace()
      gets namespace URI to which this declaration belongs
    • startSelf

      protected void startSelf()
      Description copied from class: State
      performs a task that should be done before reading any child elements. derived-class can safely read startTag and/or parentState values.
      Overrides:
      startSelf in class ExpressionWithChildState
    • onEndChild

      public void onEndChild(NameClass p)
      Specified by:
      onEndChild in interface NameClassOwner
    • createChildState

      protected State createChildState(StartTagInfo tag)
      Description copied from class: SimpleState
      creates appropriate child state object for this element
      Overrides:
      createChildState in class ExpressionWithChildState
    • endSelf

      protected void endSelf()
      Description copied from class: SimpleState
      this method is called in endElement method when the state is about to be removed. derived-class should perform any wrap-up job
      Overrides:
      endSelf in class ExpressionState