oracle.wsdl.internal
Class NamespaceDefinition

java.lang.Object
  |
  +--oracle.wsdl.internal.NamespaceDefinition

public class NamespaceDefinition
extends java.lang.Object

This class is used to define namespaces for WSDL documents


Constructor Summary
NamespaceDefinition()
          Initialize
 
Method Summary
TypeMethod
 void declareDefaultNamespace(java.lang.String defaultNamespaceURI)
          Set default namespace
 void declareNamespace(java.lang.String prefix, java.lang.String namespaceURI)
          Define a namespace prefix
 java.lang.String getDefaultNamespaceURI()
          Get default namespace
 java.lang.String getNamespaceURIForPrefix(java.lang.String prefix)
          Get the namespace URI for the specified prefix
 java.lang.String getPrefix(java.lang.String namespaceURI)
          Get the prefix for the specified namespace URI
 QName getQName(java.lang.String qname)
          Get QName for a qname (prefix:localname)
 java.lang.String getSOAPNamespaceURI()
          Get SOAP namespace URI
 java.lang.String getSOAPPrefix()
          Get SOAP namespace prefix
 java.lang.String getWSDLNamespaceURI()
          Get WSDL namespace URI
 java.lang.String getWSDLPrefix()
          Get WSDL namespace prefix
 boolean isEmpty()
          Check whether any namespace has been defined or not.
 void setSOAPNamespaceURI(java.lang.String namespaceURI)
          Set SOAP namespace URI
 void setWSDLNamespaceURI(java.lang.String namespaceURI)
          Set WSDL namespace URI
 java.lang.String toString()
          A string representation of this namespace definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamespaceDefinition

public NamespaceDefinition()
Initialize
Method Detail

declareDefaultNamespace

public void declareDefaultNamespace(java.lang.String defaultNamespaceURI)
Set default namespace
Parameters:
defaultNamespaceURI - the default namespace to set

getDefaultNamespaceURI

public java.lang.String getDefaultNamespaceURI()
Get default namespace
Returns:
default namespace

declareNamespace

public void declareNamespace(java.lang.String prefix,
                             java.lang.String namespaceURI)
Define a namespace prefix
Parameters:
prefix - namespace prefix
namespaceURI - the namespaceURI associated with the prefix. If it is null, the prefix will be removed.

getNamespaceURIForPrefix

public java.lang.String getNamespaceURIForPrefix(java.lang.String prefix)
Get the namespace URI for the specified prefix
Parameters:
prefix - the namespace prefix
Returns:
the namespace URI

setSOAPNamespaceURI

public void setSOAPNamespaceURI(java.lang.String namespaceURI)
Set SOAP namespace URI
Parameters:
namespaceURI - SOAP namespace URI

getSOAPNamespaceURI

public java.lang.String getSOAPNamespaceURI()
Get SOAP namespace URI
Returns:
SOAP namespace URI

setWSDLNamespaceURI

public void setWSDLNamespaceURI(java.lang.String namespaceURI)
Set WSDL namespace URI
Parameters:
namespaceURI - WSDL namespace URI

getWSDLNamespaceURI

public java.lang.String getWSDLNamespaceURI()
Get WSDL namespace URI
Returns:
WSDL namespace URI

getWSDLPrefix

public java.lang.String getWSDLPrefix()
Get WSDL namespace prefix
Returns:
prefix; if WSDL namespace is the default namespace, return an empty string

getSOAPPrefix

public java.lang.String getSOAPPrefix()
Get SOAP namespace prefix
Returns:
prefix; if SOAP namespace is the default namespace, return an empty string

getPrefix

public java.lang.String getPrefix(java.lang.String namespaceURI)
Get the prefix for the specified namespace URI
Returns:
prefix; if the namespace is the default namespace, return an empty string; return null if not found.

isEmpty

public boolean isEmpty()
Check whether any namespace has been defined or not.
Returns:
true if none.

toString

public java.lang.String toString()
A string representation of this namespace definition.
Overrides:
toString in class java.lang.Object
Returns:
string.

getQName

public QName getQName(java.lang.String qname)
               throws WSDLException
Get QName for a qname (prefix:localname)


Copyright © 2001 Oracle SOAP. All Rights Reserved.