Class XmlSchemaAny

All Implemented Interfaces:
XmlSchemaObjectBase, XmlSchemaAllMember, XmlSchemaChoiceMember, XmlSchemaSequenceMember

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 Details

    • namespace

      private String namespace
      Namespaces containing the elements that can be used.
    • processContent

      private XmlSchemaContentProcessing processContent
    • targetNamespace

      private String targetNamespace
  • Constructor Details

    • XmlSchemaAny

      public XmlSchemaAny()
      Creates new XmlSchemaAny
  • Method Details

    • 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: