Class FacetElement.FixedFacet

All Implemented Interfaces:
IComponent
Direct Known Subclasses:
FacetElement.NumFacet, FacetElement.TextFacet, FacetElement.TotalDigits
Enclosing class:
FacetElement

public abstract static class FacetElement.FixedFacet extends FacetElement
  • Field Details

    • s_allowedAttributes

      public static final StringArray s_allowedAttributes
      List of allowed attribute names (including "id" from base).
    • m_fixed

      private Boolean m_fixed
      "fixed" attribute value.
  • Constructor Details

    • FixedFacet

      public FixedFacet(int type, int bit, int exclude)
      Constructor. Just passes on the element type to base class.
      Parameters:
      type -
      bit - mask
      exclude - exclusion bit mask
  • Method Details

    • isFixed

      public boolean isFixed()
      Check if fixed. This convenience method just returns the default if the attribute value has not been set.
      Returns:
      true if fixed, false if not
    • getFixed

      public Boolean getFixed()
      Get "fixed" attribute value.
      Returns:
      fixed attribute value (null if not set)
    • setFinal

      public void setFinal(Boolean fixed)
      Set "fixed" attribute value.
      Parameters:
      fixed - fixed attribute value (null if unsetting)
    • preset

      protected void preset(IUnmarshallingContext uctx) throws JiBXException
      Make sure all attributes are defined.
      Overrides:
      preset in class SchemaBase
      Parameters:
      uctx - unmarshalling context
      Throws:
      JiBXException - on unmarshalling error