Class TypeState

  • All Implemented Interfaces:
    org.xml.sax.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 Detail

      • TypeState

        TypeState()
    • Method Detail

      • getParent

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

        public final java.lang.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​(java.lang.String namespaceURI,
                                       java.lang.String localName,
                                       java.lang.String qName,
                                       org.xml.sax.Attributes atts)
        Specified by:
        startElement in interface org.xml.sax.ContentHandler
        Overrides:
        startElement in class SimpleState