org.exolab.castor.xml.schema
Class ModelGroup
- ContentModelGroup, Referable, java.io.Serializable
An XML Schema ModelGroup :
$Revision: 6230 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
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 |
void | addModelGroup(ModelGroup modelGroup) - Adds the given ModelGroup to this ModelGroup
|
Enumeration | enumerate() - Returns an enumeration of all the Particles of this
ContentModelGroup
|
ContentModelGroup | getContentModelGroup() - Returns the ContentModelGroup for this group
Only used for a element
|
Enumeration | getDeclarations() - Returns an ordered Enumeration of all the ContentModelType
definitions (element, group, modelGroupRef)+
|
String | getName() - Returns the name of this ModelGroup.
|
String | getName(boolean ignoreRef) - Returns the name of this Model Group definition
|
ModelGroup | getReference() - Returns the reference if any
|
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(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.
|
addElementDecl , addGroup , addGroup , addWildcard , enumerate , getContentModelGroup , getElementDecl , getId , getName , getOrder , getParent , getParticle , getParticleCount , getReferenceId , getStructureType , hasAny , isEmptiable , isModelGroupDefinition , removeElementDecl , removeGroup , removeGroup , removeWildcard , setId , setIsModelGroupDefinition , setName , setOrder , setParent , validate |
ModelGroup
public ModelGroup()
Creates a new ModelGroup, with no name
ModelGroup
public ModelGroup(String name,
Schema schema)
Creates a new ModelGroup with the given name
ModelGroup
public ModelGroup(Schema schema)
Creates a new ModelGroup definition
schema
- the XML Schema to which this ModelGroup
belongs
addModelGroup
public void addModelGroup(ModelGroup modelGroup)
Adds the given ModelGroup to this ModelGroup
modelGroup
- the ModelGroup to add to this ModelGroup
enumerate
public Enumeration enumerate()
Returns an enumeration of all the Particles of this
ContentModelGroup
- enumerate in interface ContentModelGroup
- enumerate in interface Group
- an enumeration of the Particles contained
within this ContentModelGroup
getContentModelGroup
public ContentModelGroup getContentModelGroup()
Returns the ContentModelGroup for this group
Only used for a element
- getContentModelGroup in interface Group
- the ContentModelGroup for this group
getDeclarations
public Enumeration getDeclarations()
Returns an ordered Enumeration of all the ContentModelType
definitions (element, group, modelGroupRef)+
getName
public String getName()
Returns the name of this ModelGroup.
- getName in interface Group
- the name of this ModelGroup.
getName
public String getName(boolean ignoreRef)
Returns the name of this Model Group definition
ignoreRef
- If True the name of the referenced
model group (if specified) is returned
- the name of this element declaration
getReference
public ModelGroup getReference()
Returns the reference if any
getSchema
public Schema getSchema()
Returns the schema that contains this modelGroup definition
getStructureType
public short getStructureType()
Returns the type of this Schema Structure
- getStructureType in interface Group
- the type of this Schema Structure
hasReference
public boolean hasReference()
Returns true if this ModelGroup is referencing another one
- true if this ModelGroup is referencing another one
isRedefined
public boolean isRedefined()
Returns true if this group is a redefinition.
- true if this group is a redefinition.
isReference
public boolean isReference()
Returns true if this model group definition simply references another
model group Definition
- true if this model group definition is a reference
setRedefined
public void setRedefined()
Sets this Group has redefined.
setReference
public void setReference(String reference)
Sets the reference for this ModelGroup definition
reference
- the name of the ModelGroup that this
definition references
setSchema
public void setSchema(Schema schema)
Sets the Schema that contains this group.
schema
- the Schema that contains this group.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com