org.apache.woden.wsdl20.xml
Interface WSDLElement

All Superinterfaces:
AttributeExtensible, ElementExtensible
All Known Subinterfaces:
BindingElement, BindingFaultElement, BindingFaultReferenceElement, BindingMessageReferenceElement, BindingOperationElement, DescriptionElement, DocumentableElement, DocumentationElement, EndpointElement, ImportElement, IncludeElement, InterfaceElement, InterfaceFaultElement, InterfaceFaultReferenceElement, InterfaceMessageReferenceElement, InterfaceOperationElement, NestedElement, ServiceElement, TypesElement
All Known Implementing Classes:
BindingFaultImpl, BindingFaultReferenceImpl, BindingImpl, BindingMessageReferenceImpl, BindingOperationImpl, DescriptionImpl, DocumentableImpl, DocumentationImpl, EndpointImpl, ImportImpl, IncludeImpl, InterfaceFaultImpl, InterfaceFaultReferenceImpl, InterfaceImpl, InterfaceMessageReferenceImpl, InterfaceOperationImpl, NestedImpl, ServiceImpl, TypesImpl, WSDLComponentImpl, WSDLElementImpl, WSDLReferenceImpl

public interface WSDLElement
extends AttributeExtensible, ElementExtensible

Represents all WSDL 2.0 elements. The Java interfaces representing the WSDL 2.0 elements will directly or indirectly extend this interface.

Author:
John Kaputin (jkaputin@apache.org)

Method Summary
 void addNamespace(java.lang.String prefix, java.net.URI namespaceURI)
          Associate the specified prefix with the specified namespace URI to this WSDL element.
 NamespaceDeclaration[] getDeclaredNamespaces()
          Return the namespaces and their associated prefixes declared directly within this WSDL element.
 NamespaceDeclaration[] getInScopeNamespaces()
          Return all namespaces and their associated prefixes that are in-scope to this WSDL element.
 java.lang.String getNamespacePrefix(java.net.URI namespaceURI)
          Return the prefix associated with the specified namespace URI.
 java.net.URI getNamespaceURI(java.lang.String prefix)
          Return the namespace URI associated with the specified prefix, or null if there is no such namespace declaration.
 java.net.URI removeNamespace(java.lang.String prefix)
          Remove the namespace URI associated with the specified prefix from this WSDL element.
 
Methods inherited from interface org.apache.woden.wsdl20.extensions.AttributeExtensible
getExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, hasExtensionAttributesForNamespace, setExtensionAttribute
 
Methods inherited from interface org.apache.woden.wsdl20.extensions.ElementExtensible
addExtensionElement, getExtensionElements, getExtensionElementsOfType, hasExtensionElementsForNamespace, removeExtensionElement
 

Method Detail

addNamespace

void addNamespace(java.lang.String prefix,
                  java.net.URI namespaceURI)
Associate the specified prefix with the specified namespace URI to this WSDL element. This equates to adding an xmlns namespace declaration to this WSDL element. To define the default namespace, specify null or the empty string "" for the prefix. If null is specified for the namespace URI, the prefix/namespace association will be removed (i.e. the same behaviour as the removeNamespace method). If the specified prefix is already associated with a namespace URI, that association will be replaced by the specified prefix/namespace association.

Parameters:
prefix - the prefix String associated with namespaceURI
namespaceURI - the namespace URI associated with prefix

removeNamespace

java.net.URI removeNamespace(java.lang.String prefix)
Remove the namespace URI associated with the specified prefix from this WSDL element. This equates to removing an xmlns namespace declaration from this WSDL element. To remove the default namespace, specify null or the empty string "" for the prefix.

Parameters:
prefix - the prefix String associated with the namespace to be removed
Returns:
the removed namespace URI or null if no prefix/namespace association exists

getNamespaceURI

java.net.URI getNamespaceURI(java.lang.String prefix)
Return the namespace URI associated with the specified prefix, or null if there is no such namespace declaration. The scope of the search corresponds to the scope of namespace declarations in XML. That is, from the current element upwards to the root element (to the wsdl:description). To request the default namespace, specify null or the empty string "" for the prefix.

Parameters:
prefix - the prefix whose associated namespace URI is required
Returns:
the associated namespace URI

getNamespacePrefix

java.lang.String getNamespacePrefix(java.net.URI namespaceURI)
Return the prefix associated with the specified namespace URI. The scope of the search corresponds to the scope of namespace declarations in XML. That is, from the current element upwards to the root element (to the wsdl:description).

Parameters:
namespaceURI - the namespace URI whose associated prefix is required
Returns:
the associated prefix String

getDeclaredNamespaces

NamespaceDeclaration[] getDeclaredNamespaces()
Return the namespaces and their associated prefixes declared directly within this WSDL element.

Returns:
an array of NamespaceDeclaration

getInScopeNamespaces

NamespaceDeclaration[] getInScopeNamespaces()
Return all namespaces and their associated prefixes that are in-scope to this WSDL element. That is, those declared directly within this element and those declared in ancestor elements upwards to the root element (to the wsdl:description).

Returns:
an array of NamespaceDeclaration


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.