javax.xml.ws.addressing
Interface AttributeExtensible

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

public interface AttributeExtensible

This interface is implemented by classes that need to expose a Map of Attributes. It is used to represent Addressing classes that support extensibility attributes.

Since:
JAX-WSA 1.0
Author:
JAX-WSA Development Team

Method Summary
 void addAttribute(javax.xml.namespace.QName name, java.lang.String value)
          This method allows an arbitrary attribute, that do not belong to the WS-Addressing namespace, to be added to the underlying object implementing this interface.
 java.util.Map<javax.xml.namespace.QName,java.lang.String> getAttributes()
          Returns an unmodifiable Map representing the attributes of an addressing element.
 

Method Detail

getAttributes

java.util.Map<javax.xml.namespace.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(javax.xml.namespace.QName name,
                  java.lang.String value)
                  throws AddressingException
This method allows an arbitrary attribute, that do not belong to the WS-Addressing namespace, to be added to the underlying object implementing this interface. 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 name parameter belongs to the WS-Addressing namespace.


Copyright © 2005 Sun Microsystems, Inc. All Rights Reserved.