Class UnionState

  • All Implemented Interfaces:
    XSTypeOwner, org.xml.sax.ContentHandler

    public class UnionState
    extends TypeState
    implements XSTypeOwner
    State that parses <union> element and its children.
    • Field Detail

      • newTypeUri

        protected final java.lang.String newTypeUri
      • newTypeName

        protected final java.lang.String newTypeName
      • memberTypes

        private final java.util.ArrayList memberTypes
    • Constructor Detail

      • UnionState

        protected UnionState​(java.lang.String newTypeUri,
                             java.lang.String newTypeName)
    • Method Detail

      • 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 State
      • makeType

        protected final XSDatatypeExp makeType()
                                        throws org.relaxng.datatype.DatatypeException
        Description copied from class: TypeState
        This method is called from endElement method. Implementation has to provide DataType object that represents the content of this element.
        Specified by:
        makeType in class TypeState
        Throws:
        org.relaxng.datatype.DatatypeException