Class NGNameState

All Implemented Interfaces:
ContentHandler
Direct Known Subclasses:
NGNameState.AnyNameState, NGNameState.NsNameState

public abstract class NGNameState extends NameClassWithChildState
parses <anyName> name class.
Author:
Kohsuke KAWAGUCHI
  • Method Details

    • createChildState

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

      protected NameClass castNameClass(NameClass halfCastedNameClass, NameClass newChildNameClass)
      Description copied from class: NameClassWithChildState
      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 ) )
       
      Specified by:
      castNameClass in class NameClassWithChildState
    • annealNameClass

      protected NameClass annealNameClass(NameClass nameClass)
      performs final wrap-up and returns a fully created NameClass object that represents this element.
      Overrides:
      annealNameClass in class NameClassWithChildState
    • getMainNameClass

      protected abstract NameClass getMainNameClass()
      this method should return the name class that is used as the base.