Class ComplexTypeHandler

  • All Implemented Interfaces:
    Serializable

    public class ComplexTypeHandler
    extends XSIElementHandler
    ComplexTypeHandler purpose.

    Represents a ComplexType element

    When a specific method of encoding is not specified then the following output will be returned:

    ElementValue[]{(null,Attributes),(Element,Value)*,(null,String)?} Where the last element will be included iff there is child text.

    Author:
    dzwiers, Refractions Research, Inc. http://www.refractions.net, $Author:$ (last modification)
    See Also:
    Serialized Form
    • Constructor Detail

      • ComplexTypeHandler

        public ComplexTypeHandler()
    • Method Detail

      • findBlock

        public static int findBlock​(String block)
                             throws SAXException
        Converts a 'block' attribute value into an int mask
        Parameters:
        block - block
        Returns:
        int
        Throws:
        SAXException
      • writeBlock

        public static String writeBlock​(int block)
        Reverses the translation from mask to String
      • findFinal

        public static int findFinal​(String finaL)
                             throws SAXException
        Converts a 'final' attribute value to an int mask
        Throws:
        SAXException
      • writeFinal

        public static String writeFinal​(int finaL)
        reverses the conversion of an int mask representing the 'final' attribute to String
      • getName

        public String getName()
        returns the complexType's name
      • compress

        protected ComplexType compress​(SchemaHandler parent)
                                throws SAXException
        compresses the inheritance tree, caching a more efficient copy.
        Throws:
        SAXException