org.exolab.castor.xml.schema
Class Wildcard
- java.io.Serializable
A class that represents an XML Schema Wildcard.
A wilcard is represented by the XML elements
and
and can be hold in a complexType or in
a ModelGroup ().
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 |
Wildcard
public Wildcard(AttributeGroup attGroup)
The wildcard is embedded in an AttributeGroup.
attGroup
- the AttributeGroup that contains this wildcard
Wildcard
public Wildcard(ComplexType complexType)
The wildcard is embedded in a complexType
Wildcard
public Wildcard(Group group)
The wildcard is embedded in a ModelGroup ()
group
- the ModelGoup that contains this wildcard
addNamespace
public void addNamespace(String Namespace)
add a namespace
getAttributeGroup
public AttributeGroup getAttributeGroup()
Returns the AttributeGroup that contains this wilcard (can return null)
- the AttributeGroup that contains this wilcard (can return null)
getComplexType
public ComplexType getComplexType()
Returns the complexType that contains this wildcard, can return null.
- the complexType that contains this wildcard (can be null).
getModelGroup
public Group getModelGroup()
Returns the model group that contains this wildcard, can return null.
- the model group that contains this wildcard (can be null).
getNamespaces
public Enumeration getNamespaces()
Returns an enumeration that contains the different namespaces
of this wildcard
- an enumeration that contains the different namespaces
of this wildcard
getProcessContent
public String getProcessContent()
Returns the processContent of this wildcard
- the processContent of this wildcard
getSchema
public Schema getSchema()
Returns the parent schema in which this wildcard is located.
- the schema that contains the parent structure of this wildcard.
getStructureType
public short getStructureType()
Returns the type of this Schema Structure
- getStructureType in interface Structure
- the type of this Schema Structure
isAttributeWildcard
public boolean isAttributeWildcard()
Returns true if this wildcard represents
otherwise false
- true if this wildcard represents otherwise false
removeNamespace
public boolean removeNamespace(String namespace)
Removes the given namespace from the namespace collection
namespace
- the namespace to remove.
setAttributeWildcard
public void setAttributeWildcard()
Sets this wildcard to represent
setId
public void setId(String id)
Sets the ID for this Group
id
- the ID for this Group
setProcessContents
public void setProcessContents(String process)
throws SchemaException
Sets the processContent of the wildCard
process
- the process content to set
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com