Java Doc for SearchElement.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
            org.enhydra.xml.SearchElement

All known Subclasses:   org.enhydra.xml.XMLConfig,
SearchElement
public class SearchElement extends HashMapElement (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
public static  StringATTR_SEPARATOR
    
public static  StringEQUAL_SEPARATOR
    
public static  StringTAG_SEPARATOR
    

Constructor Summary
public  SearchElement()
     Constructs an empty SearchElement.
public  SearchElement(Document ownerDoc, String name)
     Constructs an SearchElement with a given document owner and node name.
public  SearchElement(Node node)
     Constructs an SearchElement with a given Node.
public  SearchElement(SearchElement node)
     Constructs an SearchElement with a given SearchElement.

Method Summary
public  ElementgetFirstSubElementByTagName(String namePath)
     Returns the first Element in the subtree of this node, with the given tag name.
Parameters:
  namePath - relative path to the Element.
public  ElementgetFirstSubElementsByCondition(String condition)
     Returns the first Element in the subtree of this node, that satisfy the given condition.
Parameters:
  condition - condition.
public  NodeListgetSubElementsByAttrValue(String attrPath, String attrValue)
     Returns a list of Elements in the subtree of this node, which contain attribute with the given name and value.
Parameters:
  attrPath - relative path to the attribute name.
Parameters:
  attrValue - attribute value.
public  NodeListgetSubElementsByCondition(String condition)
     Returns a list of Elements in the subtree of this node, that satisfy the given condition.
Parameters:
  condition - condition.
public  NodeListgetSubElementsByTagName(String namePath)
     Returns a list of elements in the subtree of this node, with the given tag name.
Parameters:
  namePath - relative path to the Element (through children).
public  NodeListgetSubElementsByTagText(String tagPath, String tagValue)
     Returns a list of Elements in the subtree of this node, with the given tag name and value.
Parameters:
  tagPath - relative path to the tag name.
Parameters:
  tagValue - Element value.
public  StringgetText(String namePath)
     Return the text of the Element found on the given path.
Parameters:
  namePath - relative path to the Element node.
protected  NodenewElementInstance(Node node)
     Returns new SearchElement instance from a given Node.
public static  ElementnewInstance(Document document)
     Creates new instance of SearchElement from a given document as a Document.
Parameters:
  document - document.
public  voidsetAttr(String namePath, String value)
     Sets the value of an attribute found on the given path.
public  voidsetText(String namePath, String text)
     Sets the given text to the Element found on the given path.

Field Detail
ATTR_SEPARATOR
public static String ATTR_SEPARATOR(Code)



EQUAL_SEPARATOR
public static String EQUAL_SEPARATOR(Code)



TAG_SEPARATOR
public static String TAG_SEPARATOR(Code)




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



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



SearchElement
public SearchElement(Node node)(Code)
Constructs an SearchElement with a given Node.
Parameters:
  node - Node.



SearchElement
public SearchElement(SearchElement node)(Code)
Constructs an SearchElement with a given SearchElement.
Parameters:
  node - SearchElement.




Method Detail
getFirstSubElementByTagName
public Element getFirstSubElementByTagName(String namePath)(Code)
Returns the first Element in the subtree of this node, with the given tag name.
Parameters:
  namePath - relative path to the Element. the first Element in the subtree of this node,with the given tag name.



getFirstSubElementsByCondition
public Element getFirstSubElementsByCondition(String condition)(Code)
Returns the first Element in the subtree of this node, that satisfy the given condition.
Parameters:
  condition - condition. the first Element in the subtree of this node,that satisfy the given condition.



getSubElementsByAttrValue
public NodeList getSubElementsByAttrValue(String attrPath, String attrValue)(Code)
Returns a list of Elements in the subtree of this node, which contain attribute with the given name and value.
Parameters:
  attrPath - relative path to the attribute name.
Parameters:
  attrValue - attribute value. list of Elements in the subtree of this node,which contain attribute with the given name and value.



getSubElementsByCondition
public NodeList getSubElementsByCondition(String condition)(Code)
Returns a list of Elements in the subtree of this node, that satisfy the given condition.
Parameters:
  condition - condition. list of Elements in the subtree of this node,that satisfy the given condition.



getSubElementsByTagName
public NodeList getSubElementsByTagName(String namePath)(Code)
Returns a list of elements in the subtree of this node, with the given tag name.
Parameters:
  namePath - relative path to the Element (through children). list of elements in the subtree of this node, with the given tag name.



getSubElementsByTagText
public NodeList getSubElementsByTagText(String tagPath, String tagValue)(Code)
Returns a list of Elements in the subtree of this node, with the given tag name and value.
Parameters:
  tagPath - relative path to the tag name.
Parameters:
  tagValue - Element value. list of Elements in the subtree of this node,with the given tag name and value.



getText
public String getText(String namePath)(Code)
Return the text of the Element found on the given path.
Parameters:
  namePath - relative path to the Element node. text of the Element found on the given path.



newElementInstance
protected Node newElementInstance(Node node)(Code)
Returns new SearchElement instance from a given Node.
Parameters:
  node - Node.



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



setAttr
public void setAttr(String namePath, String value)(Code)
Sets the value of an attribute found on the given path.
Parameters:
  namePath - relative path to the attribute.
Parameters:
  text - new value.



setText
public void setText(String namePath, String text)(Code)
Sets the given text to the Element found on the given path.
Parameters:
  namePath - relative path to the Element node.
Parameters:
  text - new text.



Fields inherited from org.enhydra.xml.HashMapElement
protected HashMap children(Code)(Java Doc)

Methods inherited from org.enhydra.xml.HashMapElement
public Node cloneNode(boolean deep)(Code)(Java Doc)
public NodeList getChildrenByTagName(String name)(Code)(Java Doc)
public NodeList getElementsByTagName(String name)(Code)(Java Doc)
public Element getFirstChildByTagName(String name)(Code)(Java Doc)
public Element getNextSameNameNode()(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public boolean hasElementChildNodes()(Code)(Java Doc)
public Node insertBefore(Node newChild, Node refChild)(Code)(Java Doc)
protected Node newElementInstance(Node node)(Code)(Java Doc)
public static Element newInstance(Document document)(Code)(Java Doc)
public Node removeChild(Node oldChild)(Code)(Java Doc)
public Node replaceChild(Node newChild, Node oldChild)(Code)(Java Doc)
public void setText(String text)(Code)(Java Doc)

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.