Class FacetElement.FixedFacet

    • Field Detail

      • s_allowedAttributes

        public static final org.jibx.util.StringArray s_allowedAttributes
        List of allowed attribute names (including "id" from base).
    • Constructor Detail

      • FixedFacet

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

      • 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​(org.jibx.runtime.IUnmarshallingContext uctx)
                       throws org.jibx.runtime.JiBXException
        Make sure all attributes are defined.
        Overrides:
        preset in class SchemaBase
        Parameters:
        uctx - unmarshalling context
        Throws:
        org.jibx.runtime.JiBXException - on unmarshalling error