Class TypeTable


  • public class TypeTable
    extends Object
    • Field Detail

      • ANY_TYPE

        public static final QName ANY_TYPE
    • Constructor Detail

      • TypeTable

        public TypeTable()
    • Method Detail

      • getSimpleSchemaTypeName

        public QName getSimpleSchemaTypeName​(String typeName)
        Return the schema type QName given the type class name
        Parameters:
        typeName - the name of the type
        Returns:
        the name of the simple type or null if it is not a simple type
      • isSimpleType

        public boolean isSimpleType​(String typeName)
        Return whether the given type is a simple type or not
        Parameters:
        typeName - the name of the type
        Returns:
        true if the type is a simple type
      • getSimpleTypeEnumMap

        public Map<String,​QName> getSimpleTypeEnumMap()
        Return the complex type map
        Returns:
        the map with complex types
      • addSimpleTypeEnum

        public void addSimpleTypeEnum​(String className,
                                      QName simpleSchemaType)
      • getSimpleTypeEnum

        public QName getSimpleTypeEnum​(String className)
      • getComplexSchemaMap

        public Map<String,​QName> getComplexSchemaMap()
        Return the complex type map
        Returns:
        the map with complex types
      • addComplexSchema

        public void addComplexSchema​(String name,
                                     QName schemaType)
      • getComplexSchemaType

        public QName getComplexSchemaType​(String name)
      • getClassNameForQName

        public String getClassNameForQName​(QName qname)
        Gets the class name for QName. first try the complex types if not try the simple types.
        Parameters:
        qname - the qname
        Returns:
        the class name for QName
      • addClassNameForQName

        public void addClassNameForQName​(QName qname,
                                         String className)
      • getQNamefortheType

        public QName getQNamefortheType​(String typeName)
        Get the qname for a type first try the simple types if not try the complex types
        Parameters:
        typeName - name of the type
        Returns:
        the Qname for this type
      • getSchemaTypeName

        public QName getSchemaTypeName​(String name)
        Gets the schema type name.
        Parameters:
        name - the name
        Returns:
        the schema type name