java.io.Serializable, ContentModelGroup, Referablepublic class ModelGroup extends Group
ANNOTATION, ANYTYPE, 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 | Description |
|---|---|
ModelGroup() |
Creates a new ModelGroup, with no name
|
ModelGroup(java.lang.String name,
Schema schema) |
Creates a new ModelGroup with the given name
|
ModelGroup(Schema schema) |
Creates a new ModelGroup definition
|
| Modifier and Type | Method | Description |
|---|---|---|
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
|
ContentModelGroup |
getContentModelGroup() |
Returns the ContentModelGroup for this group
Only used for a
|
java.util.Enumeration |
getDeclarations() |
Returns an ordered Enumeration of all the ContentModelType
definitions (element, group, modelGroupRef)+
|
java.lang.String |
getName() |
Returns the name of this ModelGroup.
|
java.lang.String |
getName(boolean ignoreRef) |
Returns the name of this Model Group definition
|
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
|
boolean |
isRedefined() |
Returns true if this group is a redefinition.
|
boolean |
isReference() |
Returns true if this model group definition simply references another
model group Definition
|
void |
setRedefined() |
Sets this Group has redefined.
|
void |
setReference(java.lang.String reference) |
Sets the reference for this ModelGroup definition
|
void |
setSchema(Schema schema) |
Sets the Schema that contains this group.
|
void |
validate() |
Checks the validity of this Schema defintion.
|
addAnnotation, getAnnotations, removeAnnotationgetMaxOccurs, getMinOccursaddElementDecl, addGroup, addGroup, addWildcard, getElementDecl, getId, getOrder, getParent, getParticle, getParticleCount, hasAny, isEmptiable, isModelGroupDefinition, removeElementDecl, removeGroup, removeGroup, removeWildcard, setId, setIsModelGroupDefinition, setName, setOrder, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMaxOccurs, getMinOccurs, isMaxOccursSet, isMinOccursSet, setMaxOccurs, setMinOccurspublic ModelGroup()
public ModelGroup(Schema schema)
schema - the XML Schema to which this ModelGroup
belongspublic ModelGroup(java.lang.String name,
Schema schema)
name - of the ModelGrouppublic void addModelGroup(ModelGroup modelGroup)
modelGroup - the ModelGroup to add to this ModelGrouppublic java.util.Enumeration enumerate()
enumerate in interface ContentModelGroupenumerate in class GroupContentModelGroup.enumerate()public java.util.Enumeration getDeclarations()
public ContentModelGroup getContentModelGroup()
getContentModelGroup in class Grouppublic java.lang.String getName()
public java.lang.String getName(boolean ignoreRef)
ignoreRef - If True the name of the referenced
model group (if specified) is returnedpublic boolean isReference()
public void setRedefined()
public boolean isRedefined()
public void setReference(java.lang.String reference)
reference - the name of the ModelGroup that this
definition referencespublic short getStructureType()
getStructureType in class GroupStructure.getStructureType()public 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()
public void setSchema(Schema schema)
schema - the Schema that contains this group.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com