Public Member Functions

org.exolab.castor.xml.schema.ContentModelGroupImpl Class Reference

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

List of all members.

Public Member Functions

 ContentModelGroupImpl ()
void addWildcard (Wildcard wildcard) throws SchemaException
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)
boolean removeWildcard (Wildcard wildcard)
Enumeration enumerate ()
ElementDecl getElementDecl (String name)
int getMaxOccurs ()
int getMinOccurs ()
Particle getParticle (int index)
int getParticleCount ()

Detailed Description

An implementation of an XML Schema ContentModelGroup

Author:
Keith Visco
Arnaud Blandin
Version:
Revision:
1.2
Date:
2004/02/18 04:29:03

Constructor & Destructor Documentation

org.exolab.castor.xml.schema.ContentModelGroupImpl.ContentModelGroupImpl (  ) 

Creates a new ContentModelGroup.


Member Function Documentation

void org.exolab.castor.xml.schema.ContentModelGroupImpl.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

Implements org.exolab.castor.xml.schema.ContentModelGroup.

References org.exolab.castor.xml.schema.ScopableResolver.addResolvable(), and org.exolab.castor.xml.schema.ScopableResolver.resolve().

void org.exolab.castor.xml.schema.ContentModelGroupImpl.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

Implements org.exolab.castor.xml.schema.ContentModelGroup.

References org.exolab.castor.xml.schema.ScopableResolver.addResolvable(), and org.exolab.castor.xml.schema.ScopableResolver.resolve().

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

Adds the given ModelGroup Definition to this ContentModelGroup

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

Implements org.exolab.castor.xml.schema.ContentModelGroup.

References org.exolab.castor.xml.schema.ScopableResolver.addResolvable(), and org.exolab.castor.xml.schema.ScopableResolver.resolve().

void org.exolab.castor.xml.schema.ContentModelGroupImpl.addWildcard ( Wildcard  wildcard  )  throws SchemaException

Adds a wildcard to this contentModelGroup

Parameters:
WildCard the wildcard to add
Exceptions:
SchemaException thrown when the wildcard is an <anyAttribute> element

Implements org.exolab.castor.xml.schema.ContentModelGroup.

Enumeration org.exolab.castor.xml.schema.ContentModelGroupImpl.enumerate (  ) 

Returns an enumeration of all the Particles contained within this ContentModelGroup

Returns:
an enumeration of all the Particels contained within this ContentModelGroup

Implements org.exolab.castor.xml.schema.ContentModelGroup.

ElementDecl org.exolab.castor.xml.schema.ContentModelGroupImpl.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.

Implements org.exolab.castor.xml.schema.ContentModelGroup.

References org.exolab.castor.xml.schema.ElementDecl.getName(), org.exolab.castor.xml.schema.Structure.getStructureType(), org.exolab.castor.xml.schema.Structure.GROUP, and org.exolab.castor.xml.schema.ScopableResolver.resolve().

int org.exolab.castor.xml.schema.ContentModelGroupImpl.getMaxOccurs (  ) 

Returns the maximum number of occurances that this ContentModelGroup may appear

Returns:
the maximum number of occurances that this ContentModelGroup may appear. A non positive (n < 1) value indicates that the value is unspecified (ie. unbounded).

Implements org.exolab.castor.xml.schema.ContentModelGroup.

int org.exolab.castor.xml.schema.ContentModelGroupImpl.getMinOccurs (  ) 

Returns the minimum number of occurances that this ContentModelGroup must appear

Returns:
the minimum number of occurances that this ContentModelGroup must appear A negative (n < 0) value indicates that the value is unspecified.

Implements org.exolab.castor.xml.schema.ContentModelGroup.

Particle org.exolab.castor.xml.schema.ContentModelGroupImpl.getParticle ( int  index  ) 

Returns the Particle at the specified index

Parameters:
index the index of the particle to return
Returns:
the CMParticle at the specified index

Implements org.exolab.castor.xml.schema.ContentModelGroup.

int org.exolab.castor.xml.schema.ContentModelGroupImpl.getParticleCount (  ) 

Returns the number of particles contained within this ContentModelGroup

Returns:
the number of particles

Implements org.exolab.castor.xml.schema.ContentModelGroup.

boolean org.exolab.castor.xml.schema.ContentModelGroupImpl.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.

Implements org.exolab.castor.xml.schema.ContentModelGroup.

References org.exolab.castor.xml.schema.ElementDecl.getName(), org.exolab.castor.xml.schema.ElementDecl.isReference(), and org.exolab.castor.xml.schema.ScopableResolver.removeResolvable().

boolean org.exolab.castor.xml.schema.ContentModelGroupImpl.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.

Implements org.exolab.castor.xml.schema.ContentModelGroup.

References org.exolab.castor.xml.schema.ModelGroup.getName(), org.exolab.castor.xml.schema.ModelGroup.isReference(), and org.exolab.castor.xml.schema.ScopableResolver.removeResolvable().

boolean org.exolab.castor.xml.schema.ContentModelGroupImpl.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.

Implements org.exolab.castor.xml.schema.ContentModelGroup.

References org.exolab.castor.xml.schema.Group.getName(), and org.exolab.castor.xml.schema.ScopableResolver.removeResolvable().

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

Removes the given Wildcard from this Group.

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

Implements org.exolab.castor.xml.schema.ContentModelGroup.


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