Java Doc for HashMapElement.java in  » J2EE » Enhydra-Application-Framework » org » enhydra » xml » 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 » J2EE » Enhydra Application Framework » org.enhydra.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.enhydra.xml.NodeImpl
      org.enhydra.xml.ElementImpl
         org.enhydra.xml.HashMapElement

All known Subclasses:   org.enhydra.xml.SearchElement,
HashMapElement
public class HashMapElement extends ElementImpl (Code)

author:
   Tweety
author:
   A class representing a node in a meta-data tree, which implements
author:
   the
author:
  

Namespaces are ignored in this implementation. The terms "tag
author:
   name" and "node name" are always considered to be synonymous.
version:
   1.0



Field Summary
protected  HashMapchildren
    

Constructor Summary
public  HashMapElement()
     Constructs an empty HashMapElement.
public  HashMapElement(HashMapElement element)
     Constructs a HashMapElement from the given node, without creating entire children subtree.
public  HashMapElement(Document ownerDoc, String name)
     Constructs an HashMapElement with the given document owner and node name.
protected  HashMapElement(Document ownerDoc, String nodeName, short type, String value)
     Constructs an HashMapElement with the given document owner, node name, node type and node value.
public  HashMapElement(Node node)
    
public  HashMapElement(Node node, boolean deep)
     Constructs an HashMapElement from a given node, as a Node, and deep as boolean.

Method Summary
public  NodecloneNode(boolean deep)
     Returns a duplicate of this node.
public  NodeListgetChildrenByTagName(String name)
     Returns the list of all children nodes with the given tag name.
Parameters:
  name - tag name.
public  NodeListgetElementsByTagName(String name)
     Returns all Element nodes with given name, searching by all sub nodes from this node.
Parameters:
  name - tag name.
public  ElementgetFirstChildByTagName(String name)
     Returns the first child Element with the given tag name.
Parameters:
  name - tag name.
public  ElementgetNextSameNameNode()
     Returns the next Element node (if exists) with the same tag name.
public  StringgetText()
     Returns the concatenation of values of all text type children.
public  booleanhasElementChildNodes()
     Returns true if this node has child nodes.
public  NodeinsertBefore(Node newChild, Node refChild)
     Inserts the node newChild before the existing child node refChild.
protected  NodenewElementInstance(Node node)
     Creates new instance of the HashMapElement class from the given Node. node, as a Node.
public static  ElementnewInstance(Document document)
     Creates new instance of HashMapElement from a given document as a Document.
Parameters:
  document - document.
public  NoderemoveChild(Node oldChild)
     Removes the child node indicated by oldChild from the list of children, and returns it.
Parameters:
  oldChild - the Node to be removed.
public  NodereplaceChild(Node newChild, Node oldChild)
     Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.
Parameters:
  newChild - the Node to insert.
Parameters:
  oldChild - the Node to be replaced.
public  voidsetText(String text)
     Set the value of the first text child node to the given text, and remove all other text child nodes.

Field Detail
children
protected HashMap children(Code)
All Element type children of this Element




Constructor Detail
HashMapElement
public HashMapElement()(Code)
Constructs an empty HashMapElement.



HashMapElement
public HashMapElement(HashMapElement element)(Code)
Constructs a HashMapElement from the given node, without creating entire children subtree. element, as a HashMapElement.



HashMapElement
public HashMapElement(Document ownerDoc, String name)(Code)
Constructs an HashMapElement with the given document owner and node name.
Parameters:
  ownerDoc - the document owner of the node, as a Document.
Parameters:
  nodeName - the name of the node, as a String.



HashMapElement
protected HashMapElement(Document ownerDoc, String nodeName, short type, String value)(Code)
Constructs an HashMapElement with the given document owner, node name, node type and node value.
Parameters:
  ownerDoc - the document owner of the node, as a Document.
Parameters:
  nodeName - the name of the node, as a String.
Parameters:
  type - the type of the node, as a short.
Parameters:
  value - the value of the node, as a String.



HashMapElement
public HashMapElement(Node node)(Code)
Constructs an HashMapElement from a given node (creates the children subtree too), as a Node node, as a Node.



HashMapElement
public HashMapElement(Node node, boolean deep)(Code)
Constructs an HashMapElement from a given node, as a Node, and deep as boolean. node, as a Node.
Parameters:
  deep - if true, recursively clone the subtreeunder the specified node; if false, clone only thenode itself.




Method Detail
cloneNode
public Node cloneNode(boolean deep)(Code)
Returns a duplicate of this node. The duplicate node has no parent (getParentNode returns null). If a shallow clone is being performed (deep is false), the new node will not have any children or siblings. If a deep clone is being performed, the new node will form the root of a complete cloned subtree.
Parameters:
  deep - if true, recursively clone the subtreeunder the specified node; if false, clone only thenode itself. the duplicate node.



getChildrenByTagName
public NodeList getChildrenByTagName(String name)(Code)
Returns the list of all children nodes with the given tag name.
Parameters:
  name - tag name. the list of all children nodes with the given tag name.



getElementsByTagName
public NodeList getElementsByTagName(String name)(Code)
Returns all Element nodes with given name, searching by all sub nodes from this node.
Parameters:
  name - tag name. all Element vith given name as NodeList.



getFirstChildByTagName
public Element getFirstChildByTagName(String name)(Code)
Returns the first child Element with the given tag name.
Parameters:
  name - tag name. the first child Element with the given tag name.



getNextSameNameNode
public Element getNextSameNameNode()(Code)
Returns the next Element node (if exists) with the same tag name. the next Element node (if exists) with the same tag name.



getText
public String getText()(Code)
Returns the concatenation of values of all text type children. the concatenation of values of all text type children.



hasElementChildNodes
public boolean hasElementChildNodes()(Code)
Returns true if this node has child nodes. true if this node has children.



insertBefore
public Node insertBefore(Node newChild, Node refChild)(Code)
Inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.
Parameters:
  newChild - the Node to insert.
Parameters:
  refChild - the reference Node. the node being inserted.
exception:
  IllegalArgumentException - if newChild isnull.



newElementInstance
protected Node newElementInstance(Node node)(Code)
Creates new instance of the HashMapElement class from the given Node. node, as a Node. new instance of the HashMapElement class.



newInstance
public static Element newInstance(Document document)(Code)
Creates new instance of HashMapElement from a given document as a Document.
Parameters:
  document - document. new Element node as a root of the Document.



removeChild
public Node removeChild(Node oldChild)(Code)
Removes the child node indicated by oldChild from the list of children, and returns it.
Parameters:
  oldChild - the Node to be removed. the node removed.
exception:
  IllegalArgumentException - if oldChild isnull.



replaceChild
public Node replaceChild(Node newChild, Node oldChild)(Code)
Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.
Parameters:
  newChild - the Node to insert.
Parameters:
  oldChild - the Node to be replaced. the node replaced.
exception:
  IllegalArgumentException - if newChild isnull.



setText
public void setText(String text)(Code)
Set the value of the first text child node to the given text, and remove all other text child nodes.
Parameters:
  text - new text.



Fields inherited from org.enhydra.xml.ElementImpl
final public static int MASK_NAME(Code)(Java Doc)
final public static int MASK_NAME_START(Code)(Java Doc)
protected HashMap attributes(Code)(Java Doc)

Methods inherited from org.enhydra.xml.ElementImpl
protected void beginToString(StringBuffer sb, Indent indent)(Code)(Java Doc)
public Node cloneNode(boolean deep)(Code)(Java Doc)
public short compareDocumentPosition(Node arg0) throws DOMException(Code)(Java Doc)
protected void endToString(StringBuffer sb, Indent indent)(Code)(Java Doc)
public String getAttribute(String name)(Code)(Java Doc)
public String getAttributeNS(String namespaceURI, String localName)(Code)(Java Doc)
public Attr getAttributeNode(String name)(Code)(Java Doc)
public Attr getAttributeNodeNS(String namespaceURI, String localName)(Code)(Java Doc)
public NamedNodeMap getAttributes()(Code)(Java Doc)
public String getBaseURI()(Code)(Java Doc)
public NodeList getElementsByTagName(String name)(Code)(Java Doc)
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)(Code)(Java Doc)
public Object getFeature(String arg0, String arg1)(Code)(Java Doc)
public String getNamespaceURI()(Code)(Java Doc)
public TypeInfo getSchemaTypeInfo()(Code)(Java Doc)
public String getTagName()(Code)(Java Doc)
public String getTextContent() throws DOMException(Code)(Java Doc)
public Object getUserData(String arg0)(Code)(Java Doc)
public boolean hasAttribute(String name)(Code)(Java Doc)
public boolean hasAttributeNS(String namespaceURI, String localName)(Code)(Java Doc)
public boolean hasAttributes()(Code)(Java Doc)
public boolean hasElementChildNodes()(Code)(Java Doc)
public Node insertBefore(Node newChild, Node refChild)(Code)(Java Doc)
public boolean isDefaultNamespace(String arg0)(Code)(Java Doc)
public boolean isEqualNode(Node arg0)(Code)(Java Doc)
public boolean isSameNode(Node arg0)(Code)(Java Doc)
public static boolean isValidName(String name)(Code)(Java Doc)
public String lookupNamespaceURI(String arg0)(Code)(Java Doc)
public String lookupPrefix(String arg0)(Code)(Java Doc)
public static Element newInstance(Document document)(Code)(Java Doc)
public void removeAttribute(String name)(Code)(Java Doc)
public void removeAttributeNS(String namespaceURI, String localName)(Code)(Java Doc)
public Attr removeAttributeNode(Attr oldAttr)(Code)(Java Doc)
public Node removeChild(Node oldChild)(Code)(Java Doc)
public Node replaceChild(Node newChild, Node oldChild)(Code)(Java Doc)
public void setAttribute(String name, String value)(Code)(Java Doc)
public void setAttributeNS(String namespaceURI, String qualifiedName, String value)(Code)(Java Doc)
public Attr setAttributeNode(Attr newAttr) throws DOMException(Code)(Java Doc)
public Attr setAttributeNodeNS(Attr newAttr)(Code)(Java Doc)
public void setIdAttribute(String arg0, boolean arg1) throws DOMException(Code)(Java Doc)
public void setIdAttributeNS(String arg0, String arg1, boolean arg2) throws DOMException(Code)(Java Doc)
public void setIdAttributeNode(Attr arg0, boolean arg1) throws DOMException(Code)(Java Doc)
public void setTextContent(String arg0) throws DOMException(Code)(Java Doc)
public Object setUserData(String arg0, Object arg1, UserDataHandler arg2)(Code)(Java Doc)

Fields inherited from org.enhydra.xml.NodeImpl
protected NodeImpl firstChild(Code)(Java Doc)
protected NodeImpl lastChild(Code)(Java Doc)
protected NodeImpl nextSibling(Code)(Java Doc)
protected String nodeName(Code)(Java Doc)
protected String nodeValue(Code)(Java Doc)
protected int numChildren(Code)(Java Doc)
protected Document ownerDocument(Code)(Java Doc)
protected NodeImpl parent(Code)(Java Doc)
protected NodeImpl previousSibling(Code)(Java Doc)
protected short type(Code)(Java Doc)

Methods inherited from org.enhydra.xml.NodeImpl
public Node appendChild(Node newChild)(Code)(Java Doc)
protected void beginToString(StringBuffer sb, Indent indent)(Code)(Java Doc)
public Node cloneNode(boolean deep)(Code)(Java Doc)
public short compareDocumentPosition(Node arg0) throws DOMException(Code)(Java Doc)
protected void endToString(StringBuffer sb, Indent indent)(Code)(Java Doc)
public NamedNodeMap getAttributes()(Code)(Java Doc)
public String getBaseURI()(Code)(Java Doc)
public NodeList getChildNodes()(Code)(Java Doc)
public Object getFeature(String arg0, String arg1)(Code)(Java Doc)
public Node getFirstChild()(Code)(Java Doc)
public Node getLastChild()(Code)(Java Doc)
public int getLength()(Code)(Java Doc)
public String getLocalName()(Code)(Java Doc)
public String getNamespaceURI()(Code)(Java Doc)
public Node getNextSibling()(Code)(Java Doc)
public String getNodeName()(Code)(Java Doc)
public short getNodeType()(Code)(Java Doc)
public String getNodeValue()(Code)(Java Doc)
public Document getOwnerDocument()(Code)(Java Doc)
public Node getParentNode()(Code)(Java Doc)
public String getPrefix()(Code)(Java Doc)
public Node getPreviousSibling()(Code)(Java Doc)
public String getTextContent() throws DOMException(Code)(Java Doc)
public Object getUserData(String arg0)(Code)(Java Doc)
public boolean hasAttributes()(Code)(Java Doc)
public boolean hasChildNodes()(Code)(Java Doc)
protected void initNodeImplChildren(Node node)(Code)(Java Doc)
public Node insertBefore(Node newChild, Node refChild)(Code)(Java Doc)
public boolean isDefaultNamespace(String arg0)(Code)(Java Doc)
public boolean isEqualNode(Node arg0)(Code)(Java Doc)
public boolean isSameNode(Node arg0)(Code)(Java Doc)
public boolean isSupported(String feature, String version)(Code)(Java Doc)
public Node item(int index)(Code)(Java Doc)
public String lookupNamespaceURI(String arg0)(Code)(Java Doc)
public String lookupPrefix(String arg0)(Code)(Java Doc)
protected Node newCommentInstance(Node node)(Code)(Java Doc)
protected Node newDefaultInstance(Node node)(Code)(Java Doc)
protected Node newElementInstance(Node node)(Code)(Java Doc)
protected Node newTextInstance(Node node)(Code)(Java Doc)
public void normalize()(Code)(Java Doc)
public Node removeChild(Node oldChild)(Code)(Java Doc)
public Node replaceChild(Node newChild, Node oldChild)(Code)(Java Doc)
public void setNodeValue(String nodeValue)(Code)(Java Doc)
public void setPrefix(String prefix)(Code)(Java Doc)
public void setTextContent(String arg0) throws DOMException(Code)(Java Doc)
public Object setUserData(String arg0, Object arg1, UserDataHandler arg2)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String toString(String tab)(Code)(Java Doc)

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.