Package org.jibx.schema.attributes
Class OccursAttributeGroup
java.lang.Object
org.jibx.schema.attributes.AttributeBase
org.jibx.schema.attributes.OccursAttributeGroup
- All Implemented Interfaces:
IComponent
Schema occurs attribute group.
- Author:
- Dennis M. Sosnoski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Count'maxOccurs' attribute value (nullif not set).private Count'minOccurs' attribute value (nullif not set).static final StringArrayList of allowed attribute names.Fields inherited from interface org.jibx.schema.IComponent
SCHEMA_NAMESPACE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet 'maxOccurs' attribute value.Get 'minOccurs' attribute value.voidprevalidate(ValidationContext vctx) Prevalidate component information.voidsetMaxOccurs(Count count) Set 'maxOccurs' attribute value.voidsetMinOccurs(Count count) Set 'minOccurs' attribute value.private static OccursAttributeGroupFactory method for use during unmarshalling.Methods inherited from class org.jibx.schema.attributes.AttributeBase
getOwner, validate
-
Field Details
-
s_allowedAttributes
List of allowed attribute names. -
m_minOccurs
'minOccurs' attribute value (nullif not set). -
m_maxOccurs
'maxOccurs' attribute value (nullif not set).
-
-
Constructor Details
-
OccursAttributeGroup
Constructor.- Parameters:
owner- owning element
-
-
Method Details
-
unmarshalFactory
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
Get 'maxOccurs' attribute value.- Returns:
- count (
nullif not set)
-
setMaxOccurs
Set 'maxOccurs' attribute value.- Parameters:
count- (nullif unsetting)
-
getMinOccurs
Get 'minOccurs' attribute value.- Returns:
- minimum count (
nullif not set)
-
setMinOccurs
Set 'minOccurs' attribute value.- Parameters:
count- (nullif unsetting)
-
prevalidate
Description copied from class:AttributeBasePrevalidate 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:
prevalidatein interfaceIComponent- Overrides:
prevalidatein classAttributeBase- Parameters:
vctx- validation context
-