Package javax.wsdl.extensions
Interface AttributeExtensible
-
- All Known Subinterfaces:
Binding
,BindingFault
,BindingInput
,BindingOperation
,BindingOutput
,Definition
,Fault
,Import
,Input
,Message
,Operation
,Output
,Part
,Port
,PortType
,Service
,Types
,WSDLElement
- All Known Implementing Classes:
AbstractWSDLElement
,BindingFaultImpl
,BindingImpl
,BindingInputImpl
,BindingOperationImpl
,BindingOutputImpl
,DefinitionImpl
,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
Fields Modifier and Type Field Description 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getExtensionAttribute(javax.xml.namespace.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(javax.xml.namespace.QName name, java.lang.Object value)
Set an extension attribute on this element.
-
-
-
Field Detail
-
NO_DECLARED_TYPE
static final int NO_DECLARED_TYPE
- See Also:
- Constant Field Values
-
STRING_TYPE
static final int STRING_TYPE
- See Also:
- Constant Field Values
-
QNAME_TYPE
static final int QNAME_TYPE
- See Also:
- Constant Field Values
-
LIST_OF_STRINGS_TYPE
static final int LIST_OF_STRINGS_TYPE
- See Also:
- Constant Field Values
-
LIST_OF_QNAMES_TYPE
static final int LIST_OF_QNAMES_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setExtensionAttribute
void setExtensionAttribute(javax.xml.namespace.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 namevalue
- 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
java.lang.Object getExtensionAttribute(javax.xml.namespace.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
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
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
-
-