java.io.Serializable
public class Wildcard extends Particle
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
Constructor | Description |
---|---|
Wildcard(AttributeGroup attGroup) |
The wildcard is embedded in an AttributeGroup.
|
Wildcard(ComplexType complexType) |
The wildcard is embedded in a complexType
|
Wildcard(Group group) |
The wildcard is embedded in a ModelGroup (
|
Modifier and Type | Method | Description |
---|---|---|
void |
addNamespace(java.lang.String Namespace) |
add a namespace
|
AttributeGroup |
getAttributeGroup() |
Returns the AttributeGroup that contains this wilcard (can return null)
|
ComplexType |
getComplexType() |
Returns the complexType that contains this wildcard, can return null.
|
Group |
getModelGroup() |
Returns the model group that contains this wildcard, can return null.
|
java.util.Enumeration |
getNamespaces() |
Returns an enumeration that contains the different namespaces
of this wildcard
|
java.lang.String |
getProcessContent() |
Returns the processContent of this wildcard
|
Schema |
getSchema() |
Returns the parent schema in which this wildcard is located.
|
short |
getStructureType() |
Returns the type of this Schema Structure
|
boolean |
isAttributeWildcard() |
Returns true if this wildcard represents <anyAttribute> otherwise false
|
boolean |
removeNamespace(java.lang.String namespace) |
Removes the given namespace from the namespace collection
|
void |
setAttributeWildcard() |
Sets this wildcard to represent <anyAttribute>
|
void |
setId(java.lang.String id) |
Sets the ID for this Group
|
void |
setProcessContents(java.lang.String process) |
Sets the processContent of the wildCard
|
void |
validate() |
Checks the validity of this Schema defintion.
|
addAnnotation, getAnnotations, removeAnnotation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMaxOccurs, getMinOccurs, isEmptiable, isMaxOccursSet, isMinOccursSet, setMaxOccurs, setMinOccurs
public Wildcard(ComplexType complexType)
complexType
- the complexType that contains this wildcardpublic Wildcard(Group group)
group
- the ModelGoup that contains this wildcardpublic Wildcard(AttributeGroup attGroup)
attGroup
- the AttributeGroup that contains this wildcardpublic void addNamespace(java.lang.String Namespace)
Namespace
- the namespace to addpublic boolean removeNamespace(java.lang.String namespace)
namespace
- the namespace to remove.public ComplexType getComplexType()
public Group getModelGroup()
public AttributeGroup getAttributeGroup()
public Schema getSchema()
public java.util.Enumeration getNamespaces()
public java.lang.String getProcessContent()
public boolean isAttributeWildcard()
public void setAttributeWildcard()
public void setId(java.lang.String id)
id
- the ID for this Grouppublic void setProcessContents(java.lang.String process) throws SchemaException
process
- the process content to setSchemaException
- thrown when the processContent is not validpublic void validate() throws ValidationException
Structure
validate
in class Structure
ValidationException
- when this Schema definition
is invalid.public short getStructureType()
getStructureType
in class Structure
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com