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 and 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 and Description |
|---|---|
void |
addNamespace(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.
|
Enumeration<String> |
getNamespaces()
Returns an enumeration that contains the different namespaces of this wildcard
|
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(String namespace)
Removes the given namespace from the namespace collection
|
void |
setAttributeWildcard()
Sets this wildcard to represent <anyAttribute>
|
void |
setId(String id)
Sets the ID for this Group
|
void |
setProcessContents(String process)
Sets the processContent of the wildCard
|
void |
validate()
Checks the validity of this Schema defintion.
|
getMaxOccurs, getMinOccurs, isEmptiable, isMaxOccursSet, isMinOccursSet, setMaxOccurs, setMinOccursaddAnnotation, getAnnotations, removeAnnotationpublic 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(String Namespace)
Namespace - the namespace to addpublic boolean removeNamespace(String namespace)
namespace - the namespace to remove.public ComplexType getComplexType()
public Group getModelGroup()
public AttributeGroup getAttributeGroup()
public Schema getSchema()
public Enumeration<String> getNamespaces()
public String getProcessContent()
public boolean isAttributeWildcard()
public void setAttributeWildcard()
public void setId(String id)
id - the ID for this Grouppublic void setProcessContents(String process) throws SchemaException
process - the process content to setSchemaException - thrown when the processContent is not validpublic void validate()
throws ValidationException
Structurevalidate in class StructureValidationException - when this Schema definition is invalid.public short getStructureType()
getStructureType in class StructureCopyright © 2016. All rights reserved.