Class TypeState

All Implemented Interfaces:
ContentHandler
Direct Known Subclasses:
TypeWithOneChildState, UnionState

abstract class TypeState extends SimpleState
Base implementation for those states which produce a type object as its parsing result.
  • Constructor Details

    • TypeState

      TypeState()
  • Method Details

    • getParent

      private XSTypeOwner getParent()
      Gets the parent state as TypeOwner.
    • getTargetNamespaceUri

      public final String getTargetNamespaceUri()
    • endSelf

      public 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 SimpleState
    • _makeType

      XSDatatypeExp _makeType()
      the makeType method with protection against possible exception.
    • makeType

      protected abstract XSDatatypeExp makeType() throws org.relaxng.datatype.DatatypeException
      This method is called from endElement method. Implementation has to provide DataType object that represents the content of this element.
      Throws:
      org.relaxng.datatype.DatatypeException
    • startElement

      public final void startElement(String namespaceURI, String localName, String qName, Attributes atts)
      Specified by:
      startElement in interface ContentHandler
      Overrides:
      startElement in class SimpleState