javax.xml.ws.addressing
Interface ElementExtensible

All Known Subinterfaces:
EndpointReference, Metadata, ReferenceParameters

public interface ElementExtensible

ElementExtensible is implemented by classes exposing a List of SOAPElements. Used to represent addressing classes that support collections of arbitrary XML Elements.

Since:
JAX-WSA 1.0

Method Summary
 void addElement(java.lang.Object element)
          Adds the specified element to the end of the list.
 java.util.List<java.lang.Object> getElements()
          Returns and unmodifiable List representing the child elements of an addressing element.
 boolean removeElement(java.lang.Object element)
          Removes the specified element.
 

Method Detail

getElements

java.util.List<java.lang.Object> getElements()
Returns and unmodifiable List representing the child elements of an addressing element. All Additions to the List are made through the addElement method.

Returns:
The unmodifiable Collection. Must return null if the implementing class does not support an element collection.

addElement

void addElement(java.lang.Object element)
Adds the specified element to the end of the list. It must be visible in every Collection that has been returned or will be returned by calls to the getElements method.

Parameters:
element - The element to be added.
Throws:
AddressingException - if the implementing class does not support an Element List.

removeElement

boolean removeElement(java.lang.Object element)
Removes the specified element.

Parameters:
element - The element to remove.
Returns:
true if the element exists in the original collection false otherwise.