Class TypeWithOneChildState

All Implemented Interfaces:
XSTypeOwner, ContentHandler
Direct Known Subclasses:
ListState, RestrictionState, SimpleTypeState

abstract class TypeWithOneChildState extends TypeState implements XSTypeOwner
State which has at most one TypeState as its child.
  • Field Details

  • Constructor Details

    • TypeWithOneChildState

      TypeWithOneChildState()
  • Method Details

    • onEndChild

      public void onEndChild(XSDatatypeExp child)
      receives a Pattern object that is contained in this element.
      Specified by:
      onEndChild in interface XSTypeOwner
    • 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
    • annealType

      protected XSDatatypeExp annealType(XSDatatypeExp dt) throws org.relaxng.datatype.DatatypeException
      performs final wrap-up and returns a fully created DataType object that represents this element.
      Throws:
      org.relaxng.datatype.DatatypeException