Class WildcardBase

All Implemented Interfaces:
IComponent
Direct Known Subclasses:
AnyAttributeElement, AnyElement

public class WildcardBase extends AnnotatedBase
Base for wildcard element definitions.
Author:
Dennis M. Sosnoski
  • Field Details

    • s_allowedAttributes

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

      public static final int LAX_PROCESS
      See Also:
    • SKIP_PROCESS

      public static final int SKIP_PROCESS
      See Also:
    • STRICT_PROCESS

      public static final int STRICT_PROCESS
      See Also:
    • s_processValues

      public static final EnumSet s_processValues
    • m_namespaces

      private String[] m_namespaces
      'namespace' attribute value.
    • m_processType

      private int m_processType
      'processContents' attribute value.
  • Constructor Details

    • WildcardBase

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

    • getNamespaces

      public String[] getNamespaces()
      Get 'namespace' attribute value.
      Returns:
      namespaces
    • setNamespaces

      public void setNamespaces(String[] namespaces)
      Set 'namespace' attribute value.
      Parameters:
      namespaces -
    • getProcessContents

      public int getProcessContents()
      Get 'processContents' attribute type code.
      Returns:
      code (-1 if not set)
    • setProcessContents

      public void setProcessContents(int code)
      Set 'processContents' attribute type code.
      Parameters:
      code - (-1 to unset)
    • getProcessContentsText

      public String getProcessContentsText()
      Get 'processContents' attribute text.
      Returns:
      text (null if not set)
    • setProcessContentsText

      private void setProcessContentsText(String text, IUnmarshallingContext ictx)
      Set 'processContents' attribute text. This method is provided only for use when unmarshalling.
      Parameters:
      text -
      ictx -
    • 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