Package org.apache.ws.commons.schema
Class XmlSchemaAny
java.lang.Object
org.apache.ws.commons.schema.XmlSchemaObject
org.apache.ws.commons.schema.XmlSchemaAnnotated
org.apache.ws.commons.schema.XmlSchemaParticle
org.apache.ws.commons.schema.XmlSchemaAny
- All Implemented Interfaces:
XmlSchemaObjectBase,XmlSchemaAllMember,XmlSchemaChoiceMember,XmlSchemaSequenceMember
public class XmlSchemaAny
extends XmlSchemaParticle
implements XmlSchemaChoiceMember, XmlSchemaSequenceMember, XmlSchemaAllMember
Enables any element from the specified namespace or namespaces to appear in the containing complexType
element. Represents the World Wide Web Consortium (W3C) any element.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringNamespaces containing the elements that can be used.private XmlSchemaContentProcessingprivate StringFields inherited from class org.apache.ws.commons.schema.XmlSchemaParticle
DEFAULT_MAX_OCCURS, DEFAULT_MIN_OCCURSFields inherited from class org.apache.ws.commons.schema.XmlSchemaObject
lineNumber, linePosition, sourceURI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNamespace()returns the namespace or set of namespaces that this wildcard element is valid for.voidsetNamespace(String namespace) voidsetProcessContent(XmlSchemaContentProcessing processContent) voidsetTargetNamespace(String namespace) Sets the schema's target namespace.Methods inherited from class org.apache.ws.commons.schema.XmlSchemaParticle
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccursMethods inherited from class org.apache.ws.commons.schema.XmlSchemaAnnotated
getAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributes, toStringMethods inherited from class org.apache.ws.commons.schema.XmlSchemaObject
addMetaInfo, equals, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, hashCode, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURI
-
Field Details
-
namespace
Namespaces containing the elements that can be used. -
processContent
-
targetNamespace
-
-
Constructor Details
-
XmlSchemaAny
public XmlSchemaAny()Creates new XmlSchemaAny
-
-
Method Details
-
getNamespace
-
setNamespace
-
getProcessContent
-
setProcessContent
-
getTargetNamespace
getNamespace()returns the namespace or set of namespaces that this wildcard element is valid for. The target namespaces may include##other,##targetNamespace. The##otherdirective means any namespace other than the schema's target namespace, while the##targetNamespacedirective means the element must be in the schema's target namespace. Resolving either of these requires knowledge of what the schema's target namespace is, which is returned by this method.- Returns:
- The wildcard element's target namespace.
-
setTargetNamespace
Sets the schema's target namespace.- Parameters:
namespace- The schema's target namespace.- See Also:
-