Class NameClassWithChildState

All Implemented Interfaces:
NameClassOwner, ContentHandler
Direct Known Subclasses:
NameClassChoiceState, NameClassDifferenceState, NameClassNotState, NGNameState

public abstract class NameClassWithChildState extends NameClassState implements NameClassOwner
parses name class that has child name classes
  • Field Details

  • Constructor Details

    • NameClassWithChildState

      public NameClassWithChildState()
  • Method Details

    • onEndChild

      public final void onEndChild(NameClass childNameClass)
      receives a Pattern object that is contained in this element.
      Specified by:
      onEndChild in interface NameClassOwner
    • makeNameClass

      protected final NameClass makeNameClass()
      Description copied from class: NameClassState
      This method is called from endElement method. Implementation has to provide NameClass object that represents the content of this element.
      Specified by:
      makeNameClass in class NameClassState
    • createChildState

      protected State createChildState(StartTagInfo tag)
      Description copied from class: SimpleState
      creates appropriate child state object for this element
      Specified by:
      createChildState in class SimpleState
    • castNameClass

      protected abstract NameClass castNameClass(NameClass halfCastedNameClass, NameClass newChildNameClass)
      combines half-made name class and newly found child name class into the name class.

      Say this container has three child name class n1,n2, and n3. Then, the name class of this container will be made by the following method invocations.

         annealNameClass( castNameClass( castNameClass( castNameClass(null,p1), p2), p3 ) )
       
    • annealNameClass

      protected NameClass annealNameClass(NameClass nameClass)
      performs final wrap-up and returns a fully created NameClass object that represents this element.