Public Member Functions

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

Inheritance diagram for org.exolab.castor.xml.schema.Wildcard:
org.exolab.castor.xml.schema.Particle org.exolab.castor.xml.schema.Annotated org.exolab.castor.xml.schema.Structure

List of all members.

Public Member Functions

 Wildcard (ComplexType complexType)
 Wildcard (Group group)
 Wildcard (AttributeGroup attGroup)
void addNamespace (String Namespace)
boolean removeNamespace (String namespace)
ComplexType getComplexType ()
Group getModelGroup ()
AttributeGroup getAttributeGroup ()
Schema getSchema ()
Enumeration getNamespaces ()
String getProcessContent ()
boolean isAttributeWildcard ()
void setAttributeWildcard ()
void setId (String id)
void setProcessContents (String process) throws SchemaException
void validate () throws ValidationException
short getStructureType ()

Detailed Description

A class that represents an XML Schema Wildcard. A wilcard is represented by the XML elements <any> and <anyAttribute> and can be hold in a complexType or in a ModelGroup (<group>).

Author:
Arnaud Blandin

Constructor & Destructor Documentation

org.exolab.castor.xml.schema.Wildcard.Wildcard ( ComplexType  complexType  ) 

The wildcard is embedded in a complexType

Parameters:
ComplexType the complexType that contains this wildcard
org.exolab.castor.xml.schema.Wildcard.Wildcard ( Group  group  ) 

The wildcard is embedded in a ModelGroup (<group>)

Parameters:
group the ModelGoup that contains this wildcard
org.exolab.castor.xml.schema.Wildcard.Wildcard ( AttributeGroup  attGroup  ) 

The wildcard is embedded in an AttributeGroup.

Parameters:
attGroup the AttributeGroup that contains this wildcard

Member Function Documentation

void org.exolab.castor.xml.schema.Wildcard.addNamespace ( String  Namespace  ) 

add a namespace

Parameters:
String the namespace to add

Referenced by org.exolab.castor.xml.schema.reader.WildcardUnmarshaller.init().

AttributeGroup org.exolab.castor.xml.schema.Wildcard.getAttributeGroup (  ) 

Returns the AttributeGroup that contains this wilcard (can return null)

Returns:
the AttributeGroup that contains this wilcard (can return null)
ComplexType org.exolab.castor.xml.schema.Wildcard.getComplexType (  ) 

Returns the complexType that contains this wildcard, can return null.

Returns:
the complexType that contains this wildcard (can be null).
Group org.exolab.castor.xml.schema.Wildcard.getModelGroup (  ) 

Returns the model group that contains this wildcard, can return null.

Returns:
the model group that contains this wildcard (can be null).
Enumeration org.exolab.castor.xml.schema.Wildcard.getNamespaces (  ) 

Returns an enumeration that contains the different namespaces of this wildcard

Returns:
an enumeration that contains the different namespaces of this wildcard

Referenced by org.exolab.castor.builder.MemberFactory.createFieldInfoForAny().

String org.exolab.castor.xml.schema.Wildcard.getProcessContent (  ) 

Returns the processContent of this wildcard

Returns:
the processContent of this wildcard
short org.exolab.castor.xml.schema.Wildcard.getStructureType (  )  [virtual]

Returns the type of this Schema Structure

Returns:
the type of this Schema Structure

Implements org.exolab.castor.xml.schema.Structure.

boolean org.exolab.castor.xml.schema.Wildcard.isAttributeWildcard (  ) 

Returns true if this wildcard represents <anyAttribute> otherwise false

Returns:
true if this wildcard represents <anyAttribute> otherwise false

Referenced by org.exolab.castor.builder.MemberFactory.createFieldInfoForAny(), and org.exolab.castor.xml.schema.reader.WildcardUnmarshaller.init().

boolean org.exolab.castor.xml.schema.Wildcard.removeNamespace ( String  namespace  ) 

Removes the given namespace from the namespace collection

Parameters:
namespace the namespace to remove.
void org.exolab.castor.xml.schema.Wildcard.setAttributeWildcard (  ) 

Sets this wildcard to represent <anyAttribute>

Referenced by org.exolab.castor.xml.schema.reader.WildcardUnmarshaller.init().

void org.exolab.castor.xml.schema.Wildcard.setId ( String  id  ) 

Sets the ID for this Group

Parameters:
id the ID for this Group

Referenced by org.exolab.castor.xml.schema.reader.WildcardUnmarshaller.init().

void org.exolab.castor.xml.schema.Wildcard.setProcessContents ( String  process  )  throws SchemaException

Sets the processContent of the wildCard

Parameters:
process the process content to set
Exceptions:
SchemaException thrown when the processContent is not valid

Referenced by org.exolab.castor.xml.schema.reader.WildcardUnmarshaller.init().

void org.exolab.castor.xml.schema.Wildcard.validate (  )  throws ValidationException [virtual]

Checks the validity of this Schema defintion.

Exceptions:
ValidationException when this Schema definition is invalid.

Implements org.exolab.castor.xml.schema.Structure.


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