javax.wsdl.extensions
Interface AttributeExtensible

All Known Subinterfaces:
Binding, BindingFault, BindingInput, BindingOperation, BindingOutput, Fault, Import, Input, Message, Operation, Output, Part, Port, PortType, Service, Types
All Known Implementing Classes:
BindingFaultImpl, BindingImpl, BindingInputImpl, BindingOperationImpl, BindingOutputImpl, FaultImpl, ImportImpl, InputImpl, MessageImpl, OperationImpl, OutputImpl, PartImpl, PortImpl, PortTypeImpl, ServiceImpl, TypesImpl

public interface AttributeExtensible

Classes that implement this interface can contain extensibility attributes.

Author:
Matthew J. Duftler, Paul Fremantle

Field Summary
static int LIST_OF_QNAMES_TYPE
           
static int LIST_OF_STRINGS_TYPE
           
static int NO_DECLARED_TYPE
           
static int QNAME_TYPE
           
static int STRING_TYPE
           
 
Method Summary
 java.lang.Object getExtensionAttribute(QName name)
          Retrieve an extension attribute from this element.
 java.util.Map getExtensionAttributes()
          Get the map containing all the extension attributes defined on this element.
 java.util.List getNativeAttributeNames()
          Get the list of local attribute names defined for this element in the WSDL specification.
 void setExtensionAttribute(QName name, java.lang.Object value)
          Set an extension attribute on this element.
 

Field Detail

NO_DECLARED_TYPE

public static final int NO_DECLARED_TYPE
See Also:
Constant Field Values

STRING_TYPE

public static final int STRING_TYPE
See Also:
Constant Field Values

QNAME_TYPE

public static final int QNAME_TYPE
See Also:
Constant Field Values

LIST_OF_STRINGS_TYPE

public static final int LIST_OF_STRINGS_TYPE
See Also:
Constant Field Values

LIST_OF_QNAMES_TYPE

public static final int LIST_OF_QNAMES_TYPE
See Also:
Constant Field Values
Method Detail

setExtensionAttribute

public void setExtensionAttribute(QName name,
                                  java.lang.Object value)
Set an extension attribute on this element. Pass in a null value to remove an extension attribute.

Parameters:
name - the extension attribute name
value - the extension attribute value. Can be a String, a QName, a List of Strings, or a List of QNames.
See Also:
getExtensionAttribute(javax.xml.namespace.QName), getExtensionAttributes(), ExtensionRegistry.registerExtensionAttributeType(java.lang.Class, javax.xml.namespace.QName, int), ExtensionRegistry.queryExtensionAttributeType(java.lang.Class, javax.xml.namespace.QName)

getExtensionAttribute

public java.lang.Object getExtensionAttribute(QName name)
Retrieve an extension attribute from this element. If the extension attribute is not defined, null is returned.

Parameters:
name - the extension attribute name
Returns:
the value of the extension attribute, or null if it is not defined. Can be a String, a QName, a List of Strings, or a List of QNames.
See Also:
setExtensionAttribute(javax.xml.namespace.QName, java.lang.Object), getExtensionAttributes(), ExtensionRegistry.registerExtensionAttributeType(java.lang.Class, javax.xml.namespace.QName, int), ExtensionRegistry.queryExtensionAttributeType(java.lang.Class, javax.xml.namespace.QName)

getExtensionAttributes

public java.util.Map getExtensionAttributes()
Get the map containing all the extension attributes defined on this element. The keys are the qnames of the attributes.

Returns:
a map containing all the extension attributes defined on this element
See Also:
setExtensionAttribute(javax.xml.namespace.QName, java.lang.Object), getExtensionAttribute(javax.xml.namespace.QName), ExtensionRegistry.registerExtensionAttributeType(java.lang.Class, javax.xml.namespace.QName, int), ExtensionRegistry.queryExtensionAttributeType(java.lang.Class, javax.xml.namespace.QName)

getNativeAttributeNames

public java.util.List getNativeAttributeNames()
Get the list of local attribute names defined for this element in the WSDL specification.

Returns:
a List of Strings, one for each local attribute name


Copyright ? 2003 IBM. All Rights Reserved.