org.apache.woden.wsdl20.extensions

## Class UnknownExtensionElement

- java.lang.Object
- - org.apache.woden.wsdl20.extensions.UnknownExtensionElement

- All Implemented Interfaces:
    ExtensionElement

      public class UnknownExtensionElement
      extends Object
      implements ExtensionElement

  This class is used to wrap arbitrary elements.

  Based on the same class from WSDL4J.

  Author:
    Matthew J. Duftler (duftler@us.ibm.com), jkaputin@apache.org
  See Also:
    `UnknownExtensionSerializer`, `UnknownExtensionDeserializer`

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected XMLElement` | `element`
    `protected QName` | `elementQN`
    `protected Boolean` | `required`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UnknownExtensionElement()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `XMLElement` | `getElement()` Get the Element for this extensibility element.
    `QName` | `getExtensionType()` Get the type of this extensibility element.
    `Boolean` | `isRequired()` Get whether or not the semantics of this extension are required.
    `void` | `setElement(XMLElement element)` Set the Element for this extensibility element.
    `void` | `setExtensionType(QName elementQN)` Set the type of this extensibility element.
    `void` | `setRequired(Boolean required)` Set whether or not the semantics of this extension are required.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### elementQN

          protected QName elementQN

    - #### required

          protected Boolean required

    - #### element

          protected XMLElement element

  - ### Constructor Detail

    - #### UnknownExtensionElement

          public UnknownExtensionElement()

  - ### Method Detail

    - #### setExtensionType

          public void setExtensionType(QName elementQN)

      Set the type of this extensibility element.
      Specified by:
        `setExtensionType` in interface `ExtensionElement`
      Parameters:
        `elementQN` - the type

    - #### getExtensionType

          public QName getExtensionType()

      Get the type of this extensibility element.
      Specified by:
        `getExtensionType` in interface `ExtensionElement`
      Returns:
        the extensibility element's type

    - #### setRequired

          public void setRequired(Boolean required)

      Set whether or not the semantics of this extension are required. Relates to the wsdl:required attribute.
      Specified by:
        `setRequired` in interface `ExtensionElement`

    - #### isRequired

          public Boolean isRequired()

      Get whether or not the semantics of this extension are required. Relates to the wsdl:required attribute.
      Specified by:
        `isRequired` in interface `ExtensionElement`

    - #### setElement

          public void setElement(XMLElement element)

      Set the Element for this extensibility element.
      Parameters:
        `element` - the unknown element that was encountered

    - #### getElement

          public XMLElement getElement()

      Get the Element for this extensibility element.
      Returns:
        the unknown element that was encountered

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright ? Apache Software Foundation. All Rights Reserved.