Class NamespaceElement

java.lang.Object
org.jibx.binding.model.ElementBase
org.jibx.binding.model.NamespaceElement

public class NamespaceElement extends ElementBase
Model component for namespace element of binding definition.
Author:
Dennis M. Sosnoski
  • Field Details

    • s_allowedAttributes

      public static final StringArray s_allowedAttributes
      Enumeration of allowed attribute names
    • NODEFAULT_USAGE

      public static final int NODEFAULT_USAGE
      See Also:
    • ELEMENTS_USAGE

      public static final int ELEMENTS_USAGE
      See Also:
    • ATTRIBUTES_USAGE

      public static final int ATTRIBUTES_USAGE
      See Also:
    • ALLDEFAULT_USAGE

      public static final int ALLDEFAULT_USAGE
      See Also:
    • s_defaultEnum

      public static final EnumSet s_defaultEnum
    • m_defaultName

      private String m_defaultName
      Default type name.
    • m_defaultIndex

      private int m_defaultIndex
      Actual selected default.
    • m_uri

      private String m_uri
      Namespace URI.
    • m_prefix

      private String m_prefix
      Namespace prefix (may be null, but not "").
  • Constructor Details

    • NamespaceElement

      public NamespaceElement()
      Constructor.
  • Method Details

    • getPrefix

      public String getPrefix()
      Get prefix.
      Returns:
      prefix text
    • setPrefix

      public void setPrefix(String text)
      Set prefix.
      Parameters:
      text - prefix text
    • getUri

      public String getUri()
      Get namespace URI.
      Returns:
      namespace URI (null if no-namespace namespace)
    • setUri

      public void setUri(String uri)
      Set namespace URI.
      Parameters:
      uri - namespace URI (null if no-namespace namespace)
    • setDefaultName

      public void setDefaultName(String name)
      Set namespace default type name.
      Parameters:
      name - namespace default type
    • getDefaultName

      public String getDefaultName()
      Get namespace default type name.
      Returns:
      namespace default type name
    • isAttributeDefault

      public boolean isAttributeDefault()
      Check if default namespace for attributes. This method is only meaningful after a call to prevalidate(ValidationContext).
      Returns:
      true if default namespace for attributes, false if not
    • isElementDefault

      public boolean isElementDefault()
      Check if default namespace for elements. This method is only meaningful after a call to prevalidate(ValidationContext).
      Returns:
      true if default namespace for elements, false if not
    • preSet

      private void preSet(IUnmarshallingContext uctx)
      Make sure all attributes are defined.
      Parameters:
      uctx - unmarshalling context
    • prevalidate

      public void prevalidate(ValidationContext vctx)
      Prevalidate attributes of element in isolation.
      Overrides:
      prevalidate in class ElementBase
      Parameters:
      vctx - validation context