com.ibm.wsdl

Class ImportImpl

Implemented Interfaces:
AttributeExtensible, Import, java.io.Serializable

public class ImportImpl
extends java.lang.Object
implements Import

This class represents an import, and may contain a reference to the imported definition.

Author:
Matthew J. Duftler (duftler@us.ibm.com)

Field Summary

protected Definition
definition
protected Element
docEl
protected Map
extensionAttributes
protected String
locationURI
protected String
namespaceURI
protected List
nativeAttributeNames
static long
serialVersionUID

Fields inherited from interface javax.wsdl.extensions.AttributeExtensible

LIST_OF_QNAMES_TYPE, LIST_OF_STRINGS_TYPE, NO_DECLARED_TYPE, QNAME_TYPE, STRING_TYPE

Method Summary

Definition
getDefinition()
This property can be used to hang a referenced Definition, and the top-level Definition (i.e. the one with the <import>) will use this Definition when resolving referenced WSDL parts.
Element
getDocumentationElement()
Get the documentation element.
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.
String
getLocationURI()
Get the location URI of this import.
String
getNamespaceURI()
Get the namespace URI of this import.
List
getNativeAttributeNames()
Get the list of local attribute names defined for this element in the WSDL specification.
void
setDefinition(Definition definition)
This property can be used to hang a referenced Definition, and the top-level Definition (i.e. the one with the <import>) will use this Definition when resolving referenced WSDL parts.
void
setDocumentationElement(Element docEl)
Set the documentation element for this document.
void
setExtensionAttribute(QName name, Object value)
Set an extension attribute on this element.
void
setLocationURI(String locationURI)
Set the location URI of this import.
void
setNamespaceURI(String namespaceURI)
Set the namespace URI of this import.
String
toString()

Field Details

definition

protected Definition definition


docEl

protected Element docEl


extensionAttributes

protected Map extensionAttributes


locationURI

protected String locationURI


namespaceURI

protected String namespaceURI


nativeAttributeNames

protected List nativeAttributeNames


serialVersionUID

public static final long serialVersionUID

Field Value:
1L

Method Details

getDefinition

public Definition getDefinition()
This property can be used to hang a referenced Definition, and the top-level Definition (i.e. the one with the <import>) will use this Definition when resolving referenced WSDL parts. This would need to be made into a generic reference to handle other types of referenced documents.
Specified by:
getDefinition in interface Import


getDocumentationElement

public Element getDocumentationElement()
Get the documentation element. This dependency on org.w3c.dom.Element should eventually be removed when a more appropriate way of representing this information is employed.
Specified by:
getDocumentationElement in interface Import

Returns:
the documentation element


getExtensionAttribute

public Object getExtensionAttribute(QName name)
Retrieve an extension attribute from this element. If the extension attribute is not defined, null is returned.
Specified by:
getExtensionAttribute in interface AttributeExtensible

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(QName,Object), getExtensionAttributes(), ExtensionRegistry.registerExtensionAttributeType, ExtensionRegistry.queryExtensionAttributeType


getExtensionAttributes

public Map getExtensionAttributes()
Get the map containing all the extension attributes defined on this element. The keys are the qnames of the attributes.
Specified by:
getExtensionAttributes in interface AttributeExtensible

Returns:
a map containing all the extension attributes defined on this element

See Also:
setExtensionAttribute(QName,Object), getExtensionAttribute(QName)


getLocationURI

public String getLocationURI()
Get the location URI of this import.
Specified by:
getLocationURI in interface Import


getNamespaceURI

public String getNamespaceURI()
Get the namespace URI of this import.
Specified by:
getNamespaceURI in interface Import


getNativeAttributeNames

public List getNativeAttributeNames()
Get the list of local attribute names defined for this element in the WSDL specification.
Specified by:
getNativeAttributeNames in interface AttributeExtensible

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


setDefinition

public void setDefinition(Definition definition)
This property can be used to hang a referenced Definition, and the top-level Definition (i.e. the one with the <import>) will use this Definition when resolving referenced WSDL parts. This would need to be made into a generic reference to handle other types of referenced documents.
Specified by:
setDefinition in interface Import


setDocumentationElement

public void setDocumentationElement(Element docEl)
Set the documentation element for this document. This dependency on org.w3c.dom.Element should eventually be removed when a more appropriate way of representing this information is employed.
Specified by:
setDocumentationElement in interface Import

Parameters:
docEl - the documentation element


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.
Specified by:
setExtensionAttribute in interface AttributeExtensible

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(QName), getExtensionAttributes(), ExtensionRegistry.registerExtensionAttributeType, ExtensionRegistry.queryExtensionAttributeType


setLocationURI

public void setLocationURI(String locationURI)
Set the location URI of this import.
Specified by:
setLocationURI in interface Import

Parameters:
locationURI - the desired location URI


setNamespaceURI

public void setNamespaceURI(String namespaceURI)
Set the namespace URI of this import.
Specified by:
setNamespaceURI in interface Import

Parameters:
namespaceURI - the desired namespace URI


toString

public String toString()


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