| java.lang.Object com.sun.jbi.wsdl2.impl.DOMUtilities
DOMUtilities | class DOMUtilities (Code) | | This class contains a set of utilities for dealing with DOM trees.
author: Sun Microsystems, Inc. |
Method Summary | |
public static Document | getDocument(String documentBaseURI, InputSource inputSource) Get the document from the given input source.
Parameters: documentBaseURI - The base URI for the document to be read. Parameters: inputSource - The input source for the document. | public static QName | resolveNamespace(Attr attr, String documentURI) Resolve the given attribute value, which is assumed to contain a prefixed
name value into a proper QName.
Parameters: attr - Attribute containing the prefixed name value(e.g., "foo:bar") to be resolved. Parameters: documentURI - The URI of the containing document. | public static QName | resolveNamespace(String value, Element element, String documentURI) Resolve the given attribute value, which is assumed to contain a prefixed
name value into a proper QName. |
getDocument | public static Document getDocument(String documentBaseURI, InputSource inputSource) throws WsdlException(Code) | | Get the document from the given input source.
Parameters: documentBaseURI - The base URI for the document to be read. Parameters: inputSource - The input source for the document. A DOM document representation of the well-formed XML documentfrom the input stream. exception: WsdlException - if an XML parsing error occurs. |
resolveNamespace | public static QName resolveNamespace(Attr attr, String documentURI) throws WsdlException(Code) | | Resolve the given attribute value, which is assumed to contain a prefixed
name value into a proper QName.
Parameters: attr - Attribute containing the prefixed name value(e.g., "foo:bar") to be resolved. Parameters: documentURI - The URI of the containing document. The qualified name for the attribute value; null if it cannot be resolved. exception: WsdlException - ILLEGAL_QNAME_ATTR_VALUE when the QName value in the attribute is illegal. |
resolveNamespace | public static QName resolveNamespace(String value, Element element, String documentURI) throws WsdlException(Code) | | Resolve the given attribute value, which is assumed to contain a prefixed
name value into a proper QName. The context for the namespace is the
parent element given.
Parameters: value - The attribute value to resolve to a QName. Parameters: element - The parent element to the attribute value given. Parameters: documentURI - The URI of the containing document. The qualified name for the attribute value; null if it cannot be resolved. exception: WsdlException - ILLEGAL_QNAME_VALUE when the QName value in the attribute is illegal. |
|
|