FileDocCategorySizeDatePackage
XMLPlatform.javaAPI DocGlassfish v2 API5925Tue May 22 16:54:48 BST 2007oracle.toplink.essentials.platform.xml

XMLPlatform

public interface XMLPlatform

Fields Summary
Constructors Summary
Methods Summary
public org.w3c.dom.DocumentcreateDocument()
Creates a new document.

return
the new document
throws
XMLPlatformException

public org.w3c.dom.DocumentcreateDocumentWithPublicIdentifier(java.lang.String name, java.lang.String publicIdentifier, java.lang.String systemIdentifier)
Creates a new document with the specified public and system identifiers in the DOCTYPE, and adds a root element with the specified name.

param
name the name of the root element publicIdentifier the public identifier systemIdentifier the system identifier
return
the new document
throws
XMLPlatformException

public org.w3c.dom.DocumentcreateDocumentWithSystemIdentifier(java.lang.String name, java.lang.String systemIdentifier)
Creates a new document with the specified system identifier in the DOCTYPE, and adds a root element with the specified name.

param
name the name of the root element systemIdentifier the system identifier
return
the new document
throws
XMLPlatformException

public booleanisWhitespaceNode(org.w3c.dom.Text text)
Check to see if the text node represents a whitespace node.

param
text a potential whitespace node
return
if the text node represents a whitespace node.

public oracle.toplink.essentials.platform.xml.XMLParsernewXMLParser()
Return a concrete implementation of the XML parser abstraction that is compatible with the XML Platform.

return
a platform specific XML parser

public oracle.toplink.essentials.platform.xml.XMLTransformernewXMLTransformer()
Return a concrete implementation of the XML transformer abstraction that is compatible with the XML Platform.

return
a platform specific XML transfomer

public java.lang.StringresolveNamespacePrefix(org.w3c.dom.Node contextNode, java.lang.String namespacePrefix)
Return the namespace URI for the specified namespace prefix relative to the context node.

param
contextNode the node to be looking for the namespace URI namespacePrefix the namespace prefix
return
the namespace URI for the specified prefix
throws
XMLPlatformException

public org.w3c.dom.NodeListselectNodesAdvanced(org.w3c.dom.Node contextNode, java.lang.String xPath, oracle.toplink.essentials.platform.xml.XMLNamespaceResolver xmlNamespaceResolver)
Execute advanced XPath statements that are required for TopLink EIS.

param
contextNode the node relative to which the XPath statement will be executed. xPath the XPath statement namespaceResolver used to resolve namespace prefixes to the corresponding namespace URI
return
the XPath result
throws
XMLPlatformException

public org.w3c.dom.NodeselectSingleNodeAdvanced(org.w3c.dom.Node contextNode, java.lang.String xPath, oracle.toplink.essentials.platform.xml.XMLNamespaceResolver xmlNamespaceResolver)
Execute advanced XPath statements that are required for TopLink EIS.

param
contextNode
param
xPath
param
xmlNamespaceResolver
return
throws
XMLPlatformException

public booleanvalidateDocument(org.w3c.dom.Document document, java.net.URL xmlSchemaURL, org.xml.sax.ErrorHandler errorHandler)
Validate the document against the XML Schema

param
document the document to be validated xmlSchemaURL the XML Schema errorHandler a mechanism for selectively ignoring errors
return
true if the document is valid, else false
throws
XMLPlatformException