|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.openeai.OpenEaiObject
|
+--org.openeai.xml.XmlElementLocator
An XmlElementLocator class. Contains helper methods to find elements within an Xml document.
| Field Summary |
| Fields inherited from class org.openeai.OpenEaiObject |
logger |
| Constructor Summary | |
XmlElementLocator()
Constructor |
|
| Method Summary | |
org.jdom.Element |
getElementByAttributeNameValue(org.jdom.Element e,
java.lang.String attrName,
java.lang.String attrValue)
Convenience method that searches for and returns an Element that has a child Attribute of "attrName" with a value of "attrValue". |
org.jdom.Element |
getElementByAttributeValue(org.jdom.Element e,
java.lang.String attrValue)
Convenience method that searches for and returns an Element that has any child Attributes with a value of "attrValue". |
org.jdom.Element |
getElementByName(org.jdom.Element e,
java.lang.String name)
Convenience method that searches for and returns an Element that has a child Element with a name that matches the name passed in. |
org.jdom.Element |
getElementByNameValue(org.jdom.Element e,
java.lang.String name,
java.lang.String value)
Convenience method that searches for and returns an Element that has a child Element of "name" with a value of "value". |
org.jdom.Element |
getElementByValue(org.jdom.Element e,
java.lang.String value)
Convenience method that searches for and returns an Element that has a child Element with a value of "value". |
| Methods inherited from class org.openeai.OpenEaiObject |
addLog4jProperty, getAppName, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XmlElementLocator()
| Method Detail |
public final org.jdom.Element getElementByAttributeNameValue(org.jdom.Element e,
java.lang.String attrName,
java.lang.String attrValue)
The search is recursive meaning that it will "drill" down into all child Elements of the starting element passed in as well.
public final org.jdom.Element getElementByAttributeValue(org.jdom.Element e,
java.lang.String attrValue)
The search is recursive meaning that it will "drill" down into all child Elements of the starting element passed in as well.
public final org.jdom.Element getElementByName(org.jdom.Element e,
java.lang.String name)
The search is recursive meaning that it will "drill" down into all child Elements of the starting element passed in as well.
public final org.jdom.Element getElementByNameValue(org.jdom.Element e,
java.lang.String name,
java.lang.String value)
The search is recursive meaning that it will "drill" down into all child Elements of the starting element passed in as well.
public final org.jdom.Element getElementByValue(org.jdom.Element e,
java.lang.String value)
The search is recursive meaning that it will "drill" down into all child Elements of the starting element passed in as well.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||