|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openeai.OpenEaiObject
org.openeai.xml.XmlElementLocator
public class 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 |
getElementByAttributeNameValueRecursive(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 |
|---|
getAppName, getDebug, getFromAddr, 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 NOT recursive meaning that it will NOT "drill" down into all child Elements of the starting element passed in.
e - Element the Element at which to start the search. This means the search will
be start from this Element and continue until there are no more children within this Element.attrName - String the name of the child Attribute that's being searched for.attrValue - String the value that's expected to exist in that Attribute.
public final org.jdom.Element getElementByAttributeNameValueRecursive(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.
e - Element the Element at which to start the search. This means the search will
be start from this Element and continue until there are no more children within this Element.attrName - String the name of the child Attribute that's being searched for.attrValue - String the value that's expected to exist in that Attribute.
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.
e - Element the Element at which to start the search. This means the search will
be start from this Element and continue until there are no more children within this Element.attrValue - String the value being searched for in any child Attribute of the Element passed in.
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.
e - Element the Element at which to start the search. This means the search will
be start from this Element and continue until there are no more children within this Element.name - String the name of the child Element that's being searched for.
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.
e - Element the Element at which to start the search. This means the search will
be start from this Element and continue until there are no more children within this Element.name - String the name of the child Element that's being searched for.value - String the value that's expected to exist in that Element.
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.
e - Element the Element at which to start the search. This means the search will
be start from this Element and continue until there are no more children within this Element.value - String the value that's expected to exist in any child Element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||