|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.Annotated
org.exolab.castor.xml.schema.Particle
org.exolab.castor.xml.schema.Group
org.exolab.castor.xml.schema.ModelGroup
An XML Schema ModelGroup
| Field Summary |
| Fields inherited from class org.exolab.castor.xml.schema.Particle |
UNBOUNDED |
| Fields inherited from class org.exolab.castor.xml.schema.Structure |
ANNOTATION, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD |
| Constructor Summary | |
ModelGroup()
Creates a new ModelGroup, with no name |
|
ModelGroup(Schema schema)
Creates a new ModelGroup definition |
|
ModelGroup(java.lang.String name,
Schema schema)
Creates a new ModelGroup with the given name |
|
| Method Summary | |
void |
addModelGroup(ModelGroup modelGroup)
Adds the given ModelGroup to this ModelGroup |
java.util.Enumeration |
enumerate()
Returns an enumeration of all the Particles of this ContentModelGroup |
java.util.Enumeration |
getDeclarations()
Returns an ordered Enumeration of all the ContentModelType definitions (element, group, modelGroupRef)+ |
ModelGroup |
getReference()
Returns the reference if any |
java.lang.String |
getReferenceId()
Returns the Id used to Refer to this Object |
Schema |
getSchema()
Returns the schema that contains this modelGroup definition |
short |
getStructureType()
Returns the type of this Schema Structure |
boolean |
hasReference()
Returns true if this ModelGroup is referencing another one |
void |
setReference(java.lang.String reference)
Sets the reference for this ModelGroup definition |
void |
validate()
Checks the validity of this Schema defintion. |
| Methods inherited from class org.exolab.castor.xml.schema.Group |
addElementDecl, addGroup, addGroup, addWildcard, getContentModelGroup, getElementDecl, getId, getName, getOrder, getParent, getParticle, getParticleCount, isModelGroupDefinition, removeElementDecl, removeGroup, removeGroup, removeWildcard, setId, setIsModelGroupDefinition, setName, setOrder, setParent |
| Methods inherited from class org.exolab.castor.xml.schema.Particle |
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccurs |
| Methods inherited from class org.exolab.castor.xml.schema.Annotated |
addAnnotation, getAnnotations, removeAnnotation |
| Methods inherited from class org.exolab.castor.xml.schema.Structure |
isValid |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exolab.castor.xml.schema.ContentModelGroup |
getMaxOccurs, getMinOccurs |
| Constructor Detail |
public ModelGroup()
public ModelGroup(Schema schema)
public ModelGroup(java.lang.String name,
Schema schema)
name - of the ModelGroup| Method Detail |
public void addModelGroup(ModelGroup modelGroup)
modelGroup - the ModelGroup to add to this ModelGrouppublic java.util.Enumeration enumerate()
enumerate in interface ContentModelGroupenumerate in class Grouppublic java.util.Enumeration getDeclarations()
public void setReference(java.lang.String reference)
reference - the name of the ModelGroup that this
definition referencespublic short getStructureType()
getStructureType in class Grouppublic java.lang.String getReferenceId()
getReferenceId in interface ReferablegetReferenceId in class GroupReferablepublic ModelGroup getReference()
public boolean hasReference()
public void validate()
throws ValidationException
validate in class GroupValidationException - when this Schema definition
is invalid.public Schema getSchema()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||