Class SchemaTypes.SchemaSimpleType

All Implemented Interfaces:
IComponent, INamed
Enclosing class:
SchemaTypes

public static class SchemaTypes.SchemaSimpleType extends CommonTypeDefinition implements INamed
Simple schema type representation.
  • Field Details

    • m_qname

      private final QName m_qname
      Qualified name.
    • m_string

      private final boolean m_string
      String-derived type flag.
  • Constructor Details

    • SchemaSimpleType

      protected SchemaSimpleType(String name, boolean isstring)
      Constructor.
      Parameters:
      name - schema type local name
      isstring - type derived from string flag
  • Method Details

    • isComplexType

      public boolean isComplexType()
      Description copied from class: CommonTypeDefinition
      Check if a complex type definition.
      Specified by:
      isComplexType in class CommonTypeDefinition
      Returns:
      true if complex type, false if simple type
    • isPredefinedType

      public boolean isPredefinedType()
      Description copied from class: CommonTypeDefinition
      Check if a predefined type definition.
      Specified by:
      isPredefinedType in class CommonTypeDefinition
      Returns:
      true if predefined, false if user type
    • getName

      public String getName()
      Get 'name' attribute value.
      Specified by:
      getName in interface INamed
      Overrides:
      getName in class CommonTypeDefinition
      Returns:
      name
    • getQName

      public QName getQName()
      Get qualified name for element. This method is only usable after validation.
      Specified by:
      getQName in interface INamed
      Overrides:
      getQName in class CommonTypeDefinition
      Returns:
      qname
    • isString

      public boolean isString()
      Check for schema type derived from string.
      Returns:
      true if derived from string, false if not