Class OccursAttributeGroup

java.lang.Object
org.jibx.schema.attributes.AttributeBase
org.jibx.schema.attributes.OccursAttributeGroup
All Implemented Interfaces:
IComponent

public class OccursAttributeGroup extends AttributeBase
Schema occurs attribute group.
Author:
Dennis M. Sosnoski
  • Field Details

    • s_allowedAttributes

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

      private Count m_minOccurs
      'minOccurs' attribute value (null if not set).
    • m_maxOccurs

      private Count m_maxOccurs
      'maxOccurs' attribute value (null if not set).
  • Constructor Details

    • OccursAttributeGroup

      public OccursAttributeGroup(SchemaBase owner)
      Constructor.
      Parameters:
      owner - owning element
  • Method Details

    • unmarshalFactory

      private static OccursAttributeGroup unmarshalFactory(IUnmarshallingContext ictx)
      Factory method for use during unmarshalling. This gets the owning element from the unmarshalling context, and creates an instance of the attribute tied to that element.
      Parameters:
      ictx -
      Returns:
      constructed instance
    • getMaxOccurs

      public Count getMaxOccurs()
      Get 'maxOccurs' attribute value.
      Returns:
      count (null if not set)
    • setMaxOccurs

      public void setMaxOccurs(Count count)
      Set 'maxOccurs' attribute value.
      Parameters:
      count - (null if unsetting)
    • getMinOccurs

      public Count getMinOccurs()
      Get 'minOccurs' attribute value.
      Returns:
      minimum count (null if not set)
    • setMinOccurs

      public void setMinOccurs(Count count)
      Set 'minOccurs' attribute value.
      Parameters:
      count - (null if unsetting)
    • prevalidate

      public void prevalidate(ValidationContext vctx)
      Description copied from class: AttributeBase
      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 AttributeBase
      Parameters:
      vctx - validation context