javax.wsdl.extensions

Interface AttributeExtensible

Known Subinterfaces:
Fault, Import, Input, Output, Part, PortType
Known Implementing Classes:
FaultImpl, ImportImpl, InputImpl, OutputImpl, PartImpl, PortTypeImpl

public interface AttributeExtensible

Classes that implement this interface can contain extensibility attributes.
Authors:
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

Object
getExtensionAttribute(QName name)
Retrieve an extension attribute from this element.
Map
getExtensionAttributes()
Get the map containing all the extension attributes defined on this element.
List
getNativeAttributeNames()
Get the list of local attribute names defined for this element in the WSDL specification.
void
setExtensionAttribute(QName name, Object value)
Set an extension attribute on this element.

Field Details

LIST_OF_QNAMES_TYPE

public static final int LIST_OF_QNAMES_TYPE
Field Value:
3

LIST_OF_STRINGS_TYPE

public static final int LIST_OF_STRINGS_TYPE
Field Value:
2

NO_DECLARED_TYPE

public static final int NO_DECLARED_TYPE
Field Value:
-1

QNAME_TYPE

public static final int QNAME_TYPE
Field Value:
1

STRING_TYPE

public static final int STRING_TYPE
Field Value:
0

Method Details

getExtensionAttribute

public 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.

getExtensionAttributes

public 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

getNativeAttributeNames

public 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

setExtensionAttribute

public void setExtensionAttribute(QName name,
                                  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.

Copyright B) 2003,2005 IBM. All Rights Reserved.