org.jibx.schema.attributes
Class OccursAttributeGroup

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

public class OccursAttributeGroup
extends AttributeBase

Schema occurs attribute group.

Author:
Dennis M. Sosnoski

Field Summary
static StringArray s_allowedAttributes
          List of allowed attribute names.
 
Fields inherited from interface org.jibx.schema.IComponent
SCHEMA_NAMESPACE
 
Constructor Summary
OccursAttributeGroup(SchemaBase owner)
          Constructor.
 
Method Summary
 Count getMaxOccurs()
          Get 'maxOccurs' attribute value.
 Count getMinOccurs()
          Get 'minOccurs' attribute value.
 void prevalidate(ValidationContext vctx)
          Prevalidate component information.
 void setMaxOccurs(Count count)
          Set 'maxOccurs' attribute value.
 void setMinOccurs(Count count)
          Set 'minOccurs' attribute value.
 
Methods inherited from class org.jibx.schema.attributes.AttributeBase
getOwner, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_allowedAttributes

public static final StringArray s_allowedAttributes
List of allowed attribute names.

Constructor Detail

OccursAttributeGroup

public OccursAttributeGroup(SchemaBase owner)
Constructor.

Parameters:
owner - owning element
Method Detail

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


Copyright © 2005-2012 jibx.org. All Rights Reserved.