javax.xml.ws.addressing
Interface AttributeExtensible

All Known Subinterfaces:
AttributedQName, AttributedURI, EndpointReference, Metadata, ReferenceParameters, Relationship

public interface AttributeExtensible

Extensible is implemented by classes exposinga Map of Attributes. Used to represent Addressing classes that support extensibility attributes.

Since:
JAX-WSA 1.0

Method Summary
 void addAttribute(QName name, java.lang.String value)
          Adds an attribute with the specified name and value to the attributes.
 java.util.Map<QName,java.lang.String> getAttributes()
          Returns an unmodifiable Map representing the attributes of an addressing element.
 

Method Detail

getAttributes

java.util.Map<QName,java.lang.String> getAttributes()
Returns an unmodifiable Map representing the attributes of an addressing element. Additions to the map are made through the addElement method.

Returns:
The unmodifiable Map of attributes. Must return null if the implementing class does not support an attribute Map.

addAttribute

void addAttribute(QName name,
                  java.lang.String value)
                  throws AddressingException
Adds an attribute with the specified name and value to the attributes. The name value/pair must be visible in every Map that has been returned or will be returned by calls to the getAttribute method.

Parameters:
name - The name of the attribute to be added.
value - The value of the attribute to be added
Throws:
AddressingException - if the implementing class does not support an Attribute Map.