org.apache.ws.commons.schema
Class XmlSchemaAny

java.lang.Object
  extended by org.apache.ws.commons.schema.XmlSchemaObject
      extended by org.apache.ws.commons.schema.XmlSchemaAnnotated
          extended by org.apache.ws.commons.schema.XmlSchemaParticle
              extended by 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
 
Fields inherited from class org.apache.ws.commons.schema.XmlSchemaParticle
DEFAULT_MAX_OCCURS, DEFAULT_MIN_OCCURS
 
Constructor Summary
XmlSchemaAny()
          Creates new XmlSchemaAny
 
Method Summary
 String getNamespace()
           
 XmlSchemaContentProcessing getProcessContent()
           
 String getTargetNamespace()
          getNamespace() returns the namespace or set of namespaces that this wildcard element is valid for.
 void setNamespace(String namespace)
           
 void setProcessContent(XmlSchemaContentProcessing processContent)
           
 void setTargetNamespace(String namespace)
          Sets the schema's target namespace.
 
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaParticle
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccurs
 
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaAnnotated
getAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributes, toString
 
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaObject
addMetaInfo, equals, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, hashCode, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlSchemaAny

public XmlSchemaAny()
Creates new XmlSchemaAny

Method Detail

getNamespace

public String getNamespace()

setNamespace

public void setNamespace(String namespace)

getProcessContent

public XmlSchemaContentProcessing getProcessContent()

setProcessContent

public void setProcessContent(XmlSchemaContentProcessing processContent)

getTargetNamespace

public String getTargetNamespace()
getNamespace() returns the namespace or set of namespaces that this wildcard element is valid for. The target namespaces may include ##other, ##targetNamespace. The ##other directive means any namespace other than the schema's target namespace, while the ##targetNamespace directive 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

public void setTargetNamespace(String namespace)
Sets the schema's target namespace.

Parameters:
namespace - The schema's target namespace.
See Also:
getTargetNamespace()


Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.