Class CommonTypeDefinition

All Implemented Interfaces:
IComponent, INamed
Direct Known Subclasses:
ComplexTypeElement, SchemaTypes.SchemaSimpleType, SimpleTypeElement

public abstract class CommonTypeDefinition extends AnnotatedBase implements INamed
Base representation for all type definition elements.
Author:
Dennis M. Sosnoski
  • Field Details

    • s_allowedAttributes

      public static final StringArray s_allowedAttributes
      List of allowed attribute names.
    • m_name

      private String m_name
      'name' attribute value.
    • m_qname

      protected QName m_qname
      Qualified name.
  • Constructor Details

    • CommonTypeDefinition

      public CommonTypeDefinition(int type)
      Constructor.
      Parameters:
      type - actual element type
  • Method Details

    • isComplexType

      public abstract boolean isComplexType()
      Check if a complex type definition.
      Returns:
      true if complex type, false if simple type
    • isPredefinedType

      public abstract boolean isPredefinedType()
      Check if a predefined type definition.
      Returns:
      true if predefined, false if user type
    • getName

      public String getName()
      Get 'name' attribute value.
      Specified by:
      getName in interface INamed
      Returns:
      name
    • setName

      public void setName(String name)
      Set 'name' attribute value.
      Parameters:
      name -
    • getQName

      public QName getQName()
      Get qualified name for type. This method is only usable after validation.
      Specified by:
      getQName in interface INamed
      Returns:
      qname (null if not defined)
    • prevalidate

      public void prevalidate(ValidationContext vctx)
      Description copied from class: SchemaBase
      Prevalidate component information. The prevalidation step is used to check isolated aspects of a component, such as the settings for enumerated values. This empty base class implementation should be overridden by each subclass that requires prevalidation handling.
      Specified by:
      prevalidate in interface IComponent
      Overrides:
      prevalidate in class AnnotatedBase
      Parameters:
      vctx - validation context