Public Member Functions

org.exolab.castor.xml.schema.ContentModelGroup Interface Reference

Inheritance diagram for org.exolab.castor.xml.schema.ContentModelGroup:
org.exolab.castor.xml.schema.ComplexType org.exolab.castor.xml.schema.ContentModelGroupImpl org.exolab.castor.xml.schema.Group org.exolab.castor.xml.schema.ModelGroup

List of all members.

Public Member Functions

void addElementDecl (ElementDecl elementDecl) throws SchemaException
boolean removeElementDecl (ElementDecl elementDecl)
void addGroup (Group group) throws SchemaException
boolean removeGroup (Group group)
void addGroup (ModelGroup group) throws SchemaException
boolean removeGroup (ModelGroup group)
void addWildcard (Wildcard wilcard) throws SchemaException
boolean removeWildcard (Wildcard wildcard)
Enumeration enumerate ()
ElementDecl getElementDecl (String name)
int getMaxOccurs ()
int getMinOccurs ()
int getParticleCount ()
Particle getParticle (int index)

Detailed Description

An XML Schema ModelGroup

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:29

Member Function Documentation

void org.exolab.castor.xml.schema.ContentModelGroup.addElementDecl ( ElementDecl  elementDecl  )  throws SchemaException

Adds the given ElementDecl to this ContentModelGroup

Parameters:
elementDecl the ElementDecl to add
Exceptions:
SchemaException when an ElementDecl already exists with the same name as the given ElementDecl

Implemented in org.exolab.castor.xml.schema.ContentModelGroupImpl.

Referenced by org.exolab.castor.xml.schema.Group.addElementDecl(), and org.exolab.castor.xml.schema.ComplexType.addElementDecl().

void org.exolab.castor.xml.schema.ContentModelGroup.addGroup ( ModelGroup  group  )  throws SchemaException

Adds the given ModelGroup Definition to this ContentModelGroup

Parameters:
group the ModelGroup to add
Exceptions:
SchemaException when a group with the same name as the specified group already exists in the current scope

Implemented in org.exolab.castor.xml.schema.ContentModelGroupImpl.

void org.exolab.castor.xml.schema.ContentModelGroup.addGroup ( Group  group  )  throws SchemaException

Adds the given Group to this ContentModelGroup

Parameters:
group the Group to add
Exceptions:
SchemaException when a group with the same name as the specified group already exists in the current scope

Implemented in org.exolab.castor.xml.schema.ContentModelGroupImpl.

Referenced by org.exolab.castor.xml.schema.Group.addGroup(), and org.exolab.castor.xml.schema.ComplexType.addGroup().

void org.exolab.castor.xml.schema.ContentModelGroup.addWildcard ( Wildcard  wilcard  )  throws SchemaException

Adds the given wildcard to this ContentModelGroup

Parameters:
wilcard the wilcard to add
Exceptions:
SchemaException when the wilcard is <anyAttribute> and not <any>

Implemented in org.exolab.castor.xml.schema.ContentModelGroupImpl.

Referenced by org.exolab.castor.xml.schema.Group.addWildcard().

ElementDecl org.exolab.castor.xml.schema.ContentModelGroup.getElementDecl ( String  name  ) 

Returns the element declaration with the given name, or null if no element declaration with that name exists in this ContentModelGroup.

Parameters:
name the name of the element.
Returns:
the ElementDecl with the given name, or null if no ElementDecl exists in this ContentModelGroup.

Implemented in org.exolab.castor.xml.schema.ContentModelGroupImpl.

Referenced by org.exolab.castor.xml.schema.Group.getElementDecl(), and org.exolab.castor.xml.schema.ComplexType.getElementDecl().

int org.exolab.castor.xml.schema.ContentModelGroup.getMaxOccurs (  ) 
int org.exolab.castor.xml.schema.ContentModelGroup.getMinOccurs (  ) 
boolean org.exolab.castor.xml.schema.ContentModelGroup.removeElementDecl ( ElementDecl  elementDecl  ) 

Removes the given ElementDecl from this ContentModelGroup.

Parameters:
elementDecl the ElementDecl to remove.
Returns:
true if the element has been successfully removed, false otherwise.

Implemented in org.exolab.castor.xml.schema.ContentModelGroupImpl.

Referenced by org.exolab.castor.xml.schema.Group.removeElementDecl(), and org.exolab.castor.xml.schema.ComplexType.removeElementDecl().

boolean org.exolab.castor.xml.schema.ContentModelGroup.removeGroup ( Group  group  ) 

Removes the given Group from this ContentModelGroup.

Parameters:
group the Group to remove.
Returns:
true if the group has been successfully removed, false otherwise.

Implemented in org.exolab.castor.xml.schema.ContentModelGroupImpl.

Referenced by org.exolab.castor.xml.schema.Group.removeGroup(), and org.exolab.castor.xml.schema.ComplexType.removeGroup().

boolean org.exolab.castor.xml.schema.ContentModelGroup.removeGroup ( ModelGroup  group  ) 

Removes the given ModelGroup Definition from this ContentModelGroup.

Parameters:
group the ModelGroup Definition to remove.
Returns:
true if the group has been successfully removed, false otherwise.

Implemented in org.exolab.castor.xml.schema.ContentModelGroupImpl.

boolean org.exolab.castor.xml.schema.ContentModelGroup.removeWildcard ( Wildcard  wildcard  ) 

Removes the given Wildcard from this ContentModelGroup.

Parameters:
group the Wilcard to remove.
Returns:
true if the wildcard has been successfully removed, false otherwise.

Implemented in org.exolab.castor.xml.schema.ContentModelGroupImpl.

Referenced by org.exolab.castor.xml.schema.Group.removeWildcard().


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties