org.idoox.xml.schema
Class RepeatableSchemaConstruct

java.lang.Object
  extended byorg.idoox.xml.schema.SchemaConstruct
      extended byorg.idoox.xml.schema.RepeatableSchemaConstruct
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Member, Type

public class RepeatableSchemaConstruct
extends SchemaConstruct

Represents a "repeatable" schema construct.

"Repeatable" is each construct which can have minOccurs or maxOccurs attribute.

Since:
4.0
See Also:
Serialized Form
Component:
Core

Nested Class Summary
 
Nested classes inherited from class org.idoox.xml.schema.SchemaConstruct
SchemaConstruct.ConstructType
 
Field Summary
protected  int maxOccurs
          Maximal count of occurences
protected  int minOccurs
          Minimal count of occurences
static int UNBOUNDED
          the value of UNBOUNDED
 
Fields inherited from class org.idoox.xml.schema.SchemaConstruct
appInfo, name, reference
 
Constructor Summary
protected RepeatableSchemaConstruct(SchemaConstruct.ConstructType constructType)
           
protected RepeatableSchemaConstruct(SchemaConstruct.ConstructType constructType, QName name)
           
 
Method Summary
 void copyFrom(SchemaConstruct anotherConstruct)
          Copies all the information of another repeatable construct into this construct.
 int getMaxOccurs()
          Returns maximal number of occurences.
 int getMinOccurs()
          Returns minimal number of occurences.
 void setMaxOccurs(int maxOccurs)
          Sets maximal number of occurences.
 void setMinOccurs(int minOccurs)
          Sets minimal number of occurences.
 
Methods inherited from class org.idoox.xml.schema.SchemaConstruct
clone, containsInFirst, getAppInfo, getAppInfos, getConstructType, getFacets, getJavaName, getName, getParent, getPrefixNamespaceMapping, getReferencedConstruct, parseQName, setAppInfo, setAppInfos, setConstructType, setFacets, setJavaName, setName, setParent, setPrefixNamespaceMapping, setReferencedConstruct, toIndentedString, toIndentedString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minOccurs

protected int minOccurs
Minimal count of occurences


maxOccurs

protected int maxOccurs
Maximal count of occurences


UNBOUNDED

public static final int UNBOUNDED
the value of UNBOUNDED

See Also:
Constant Field Values
Constructor Detail

RepeatableSchemaConstruct

protected RepeatableSchemaConstruct(SchemaConstruct.ConstructType constructType)

RepeatableSchemaConstruct

protected RepeatableSchemaConstruct(SchemaConstruct.ConstructType constructType,
                                    QName name)
Method Detail

getMinOccurs

public int getMinOccurs()
Returns minimal number of occurences.

Returns:
minimal number of occurences

setMinOccurs

public void setMinOccurs(int minOccurs)
Sets minimal number of occurences.

Parameters:
minOccurs - the minimal number of occurences

getMaxOccurs

public int getMaxOccurs()
Returns maximal number of occurences.

Returns:
the maximal number of occurences

setMaxOccurs

public void setMaxOccurs(int maxOccurs)
Sets maximal number of occurences.

Parameters:
maxOccurs - the maximal number of occurences

copyFrom

public void copyFrom(SchemaConstruct anotherConstruct)
Copies all the information of another repeatable construct into this construct.

Overrides:
copyFrom in class SchemaConstruct
Parameters:
anotherConstruct -