Java Doc for NodeOverNodeInfo.java in  » XML » saxonb » net » sf » saxon » dom » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » saxonb » net.sf.saxon.dom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.saxon.dom.NodeOverNodeInfo

All known Subclasses:   net.sf.saxon.dom.TextOverNodeInfo,  net.sf.saxon.dom.DocumentOverNodeInfo,  net.sf.saxon.dom.ElementOverNodeInfo,  net.sf.saxon.dom.PIOverNodeInfo,  net.sf.saxon.dom.AttrOverNodeInfo,
NodeOverNodeInfo
abstract public class NodeOverNodeInfo implements Node(Code)
This class implements the DOM Node interface as a wrapper around a Saxon NodeInfo object


Field Summary
protected  NodeInfonode
    


Method Summary
public  NodeappendChild(Node newChild)
     Adds the node newChild to the end of the list of children of this node.
public  NodecloneNode(boolean deep)
     Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes.
public  shortcompareDocumentPosition(Node other)
     Compare the position of the (other) node in document order with the reference node (this node). DOM Level 3 method.
Parameters:
  other - the other node.
protected static  voiddisallowUpdate()
    
public  NamedNodeMapgetAttributes()
     Return a NamedNodeMap containing the attributes of this node (if it is an Element ) or null otherwise.
public  StringgetBaseURI()
     Get the base URI for the node.
public  NodeListgetChildNodes()
     Return a NodeList that contains all children of this node.
public  ElementgetDocumentElement()
     Get the outermost element.
public  ObjectgetFeature(String feature, String version)
     Get a feature of this node.
public  NodegetFirstChild()
    
public  NodegetLastChild()
    
public  StringgetLocalName()
     Get the local name of this node, following the DOM rules The local name of the node.
public  StringgetNamespaceURI()
     The namespace URI of this node, or null if it is unspecified.
public  NodegetNextSibling()
     Get next sibling node (DOM method) The next sibling node.
public  StringgetNodeName()
     Get the name of this node, following the DOM rules The name of the node.
public  shortgetNodeType()
     Get the type of this node (DOM method).
public  StringgetNodeValue()
     Get the node value as defined in the DOM.
public  DocumentgetOwnerDocument()
     Return the Document object associated with this node.
public  NodegetParentNode()
     Find the parent node of this node (DOM method).
public  StringgetPrefix()
     The namespace prefix of this node, or null if it is unspecified.
public  NodegetPreviousSibling()
     Get the previous sibling of the node (DOM method) The previous sibling node.
public  StringgetTextContent()
     Get the text content of a node.
public  NodeInfogetUnderlyingNodeInfo()
    
public  ObjectgetUserData(String key)
     Get user data associated with this node.
public  booleanhasAttributes()
     Returns whether this node has any attributes.
public  booleanhasChildNodes()
     Determine whether the node has any children.
public  NodeinsertBefore(Node newChild, Node refChild)
     Insert the node newChild before the existing child node refChild.
public  booleanisDefaultNamespace(String namespaceURI)
     Test whether a particular namespace is the default namespace.
public  booleanisEqualNode(Node arg)
     Compare whether two nodes have the same content.
public  booleanisId()
     Determine whether this (attribute) node is an ID.
final public  booleanisSameNode(Node other)
     Determine whether this is the same node as another node.
public  booleanisSupported(String feature, String version)
     Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.
Parameters:
  feature - The name of the feature to test.
public  StringlookupNamespaceURI(String prefix)
     Find the URI corresponding to a given in-scope prefix
Parameters:
  prefix - The namespace prefix whose namespace URI is required.
public  StringlookupPrefix(String namespaceURI)
     Get the (first) prefix assigned to a specified namespace URI, or null if the namespace is not in scope.
public  voidnormalize()
     Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes.
public  NoderemoveChild(Node oldChild)
     Remove the child node indicated by oldChild from the list of children, and returns it.
public  NodereplaceChild(Node newChild, Node oldChild)
     Replace the child node oldChild with newChild in the list of children, and returns the oldChild node.
public  voidsetNodeValue(String nodeValue)
     Set the node value.
public  voidsetPrefix(String prefix)
     Set the namespace prefix of this node.
public  voidsetTextContent(String textContent)
     Set the text content of a node.
public  voidsetUnderlyingNodeInfo(NodeInfo node)
    
public  ObjectsetUserData(String key, Object data, UserDataHandler handler)
     Set user data.
public  booleansupports(String feature, String version)
    
public static  NodeOverNodeInfowrap(NodeInfo node)
    

Field Detail
node
protected NodeInfo node(Code)





Method Detail
appendChild
public Node appendChild(Node newChild) throws DOMException(Code)
Adds the node newChild to the end of the list of children of this node. DOM method: always fails.
Parameters:
  newChild - The node to add. The node added.
exception:
  org.w3c.dom.DOMException -
NO_MODIFICATION_ALLOWED_ERR: Always raised.



cloneNode
public Node cloneNode(boolean deep)(Code)
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. The duplicate node has no parent. Not implemented: always returns null. (Because trees are read-only, there would be no way of using the resulting node.)
Parameters:
  deep - If true , recursively clone the subtree underthe specified node; if false , clone only the nodeitself (and its attributes, if it is an Element ). The duplicate node.



compareDocumentPosition
public short compareDocumentPosition(Node other) throws DOMException(Code)
Compare the position of the (other) node in document order with the reference node (this node). DOM Level 3 method.
Parameters:
  other - the other node. -1 (this node is first), 0 (same node), +1 (other node is first)
throws:
  org.w3c.dom.DOMException -



disallowUpdate
protected static void disallowUpdate() throws DOMException(Code)
Internal method used to indicate that update operations are not allowed



getAttributes
public NamedNodeMap getAttributes()(Code)
Return a NamedNodeMap containing the attributes of this node (if it is an Element ) or null otherwise. (DOM method)



getBaseURI
public String getBaseURI()(Code)
Get the base URI for the node. Default implementation for child nodes gets the base URI of the parent node.



getChildNodes
public NodeList getChildNodes()(Code)
Return a NodeList that contains all children of this node. If there are no children, this is a NodeList containing no nodes. DOM Method.



getDocumentElement
public Element getDocumentElement()(Code)
Get the outermost element. (DOM method) the Element for the outermost element of the document. If the document isnot well-formed, this returns the first element child of the root if there is one, otherwisenull.



getFeature
public Object getFeature(String feature, String version)(Code)
Get a feature of this node. DOM Level 3 method, always returns null.
Parameters:
  feature - the required feature
Parameters:
  version - the version of the required feature the value of the feature. Always null in this implementation



getFirstChild
public Node getFirstChild()(Code)
Get first child (DOM method) the first child node of this node, or null if it has no children



getLastChild
public Node getLastChild()(Code)
Get last child (DOM method) last child of this node, or null if it has no children



getLocalName
public String getLocalName()(Code)
Get the local name of this node, following the DOM rules The local name of the node. For an element this is the element name, for an attributeit is the attribute name, as a QName. Other node types return conventional names suchas "#text" or "#comment"



getNamespaceURI
public String getNamespaceURI()(Code)
The namespace URI of this node, or null if it is unspecified. DOM method.
This is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. It is merely the namespace URI given at creation time.
For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as createElement from the Document interface, this is always null . Per the Namespaces in XML Specification an attribute does not inherit its namespace from the element it is attached to. If an attribute is not explicitly given a namespace, it simply has no namespace.
since:
   DOM Level 2



getNextSibling
public Node getNextSibling()(Code)
Get next sibling node (DOM method) The next sibling node. Returns null if the current node is the lastchild of its parent.



getNodeName
public String getNodeName()(Code)
Get the name of this node, following the DOM rules The name of the node. For an element this is the element name, for an attributeit is the attribute name, as a QName. Other node types return conventional names suchas "#text" or "#comment"



getNodeType
public short getNodeType()(Code)
Get the type of this node (DOM method). Note, the numbers assigned to node kinds in Saxon (see module Type) are the same as those assigned in the DOM



getNodeValue
public String getNodeValue()(Code)
Get the node value as defined in the DOM. This is not necessarily the same as the XPath string-value.



getOwnerDocument
public Document getOwnerDocument()(Code)
Return the Document object associated with this node. (DOM method)



getParentNode
public Node getParentNode()(Code)
Find the parent node of this node (DOM method). The Node object describing the containing element or root node.



getPrefix
public String getPrefix()(Code)
The namespace prefix of this node, or null if it is unspecified.
For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as createElement from the Document interface, this is always null.
since:
   DOM Level 2



getPreviousSibling
public Node getPreviousSibling()(Code)
Get the previous sibling of the node (DOM method) The previous sibling node. Returns null if the current node is the firstchild of its parent.



getTextContent
public String getTextContent() throws DOMException(Code)
Get the text content of a node. This is a DOM Level 3 method. The definition is the same as the definition of the string value of a node in XPath, except in the case of document nodes. the string value of the node, or null in the case of document nodes.
throws:
  org.w3c.dom.DOMException -



getUnderlyingNodeInfo
public NodeInfo getUnderlyingNodeInfo()(Code)



getUserData
public Object getUserData(String key)(Code)
Get user data associated with this node. DOM Level 3 method, always returns null in this implementation
Parameters:
  key - identifies the user data required always null in this implementation



hasAttributes
public boolean hasAttributes()(Code)
Returns whether this node has any attributes. true if this node has any attributes,false otherwise.
since:
   DOM Level 2



hasChildNodes
public boolean hasChildNodes()(Code)
Determine whether the node has any children. true if this node has any attributes,false otherwise.



insertBefore
public Node insertBefore(Node newChild, Node refChild) throws DOMException(Code)
Insert the node newChild before the existing child node refChild. DOM method: always fails.
Parameters:
  newChild - The node to insert.
Parameters:
  refChild - The reference node, i.e., the node before which thenew node must be inserted. The node being inserted.
exception:
  org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Always raised.



isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)(Code)
Test whether a particular namespace is the default namespace. DOM Level 3 method.
Parameters:
  namespaceURI - the namespace to be tested true if this is the default namespace



isEqualNode
public boolean isEqualNode(Node arg)(Code)
Compare whether two nodes have the same content. This is a DOM Level 3 method; the implementation uses the same algorithm as the XPath deep-equals() function.
Parameters:
  arg - The node to be compared. This must wrap a Saxon NodeInfo. true if the two nodes are deep-equal.



isId
public boolean isId()(Code)
Determine whether this (attribute) node is an ID. This method is introduced in DOM Level 3. The current implementation is simplistic; it returns true if the type annotation of the node is xs:ID (subtypes not allowed).



isSameNode
final public boolean isSameNode(Node other)(Code)
Determine whether this is the same node as another node. DOM Level 3 method. true if this Node object and the supplied Node object represent thesame node in the tree.



isSupported
public boolean isSupported(String feature, String version)(Code)
Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.
Parameters:
  feature - The name of the feature to test. This is the same namewhich can be passed to the method hasFeature onDOMImplementation .
Parameters:
  version - This is the version number of the feature to test. InLevel 2, version 1, this is the string "2.0". If the version is notspecified, supporting any version of the feature will cause themethod to return true . Returns true if the specified feature is supportedon this node, false otherwise.
since:
   DOM Level 2



lookupNamespaceURI
public String lookupNamespaceURI(String prefix)(Code)
Find the URI corresponding to a given in-scope prefix
Parameters:
  prefix - The namespace prefix whose namespace URI is required. the corresponding namespace URI, or null if the prefix isnot declared.



lookupPrefix
public String lookupPrefix(String namespaceURI)(Code)
Get the (first) prefix assigned to a specified namespace URI, or null if the namespace is not in scope. DOM Level 3 method.
Parameters:
  namespaceURI - the namespace whose prefix is required the corresponding prefix



normalize
public void normalize()(Code)
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes.
since:
   DOM Level 2



removeChild
public Node removeChild(Node oldChild) throws DOMException(Code)
Remove the child node indicated by oldChild from the list of children, and returns it. DOM method: always fails.
Parameters:
  oldChild - The node being removed. The node removed.
exception:
  org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Always raised.



replaceChild
public Node replaceChild(Node newChild, Node oldChild) throws DOMException(Code)
Replace the child node oldChild with newChild in the list of children, and returns the oldChild node. Always fails.
Parameters:
  newChild - The new node to put in the child list.
Parameters:
  oldChild - The node being replaced in the list. The node replaced.
exception:
  org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Always raised.



setNodeValue
public void setNodeValue(String nodeValue) throws DOMException(Code)
Set the node value. DOM method: always fails



setPrefix
public void setPrefix(String prefix) throws DOMException(Code)
Set the namespace prefix of this node. Always fails.



setTextContent
public void setTextContent(String textContent) throws DOMException(Code)
Set the text content of a node. DOM Level 3 method, not supported.
Parameters:
  textContent -
throws:
  org.w3c.dom.DOMException -



setUnderlyingNodeInfo
public void setUnderlyingNodeInfo(NodeInfo node)(Code)



setUserData
public Object setUserData(String key, Object data, UserDataHandler handler)(Code)
Set user data. Always throws UnsupportedOperationException in this implementation
Parameters:
  key -
Parameters:
  data -
Parameters:
  handler - This implementation always throws an exception



supports
public boolean supports(String feature, String version)(Code)
Alternative to isSupported(), defined in a draft DOM spec



wrap
public static NodeOverNodeInfo wrap(NodeInfo node)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.