public class DefaultPluginParseHelper extends Object implements PluginParseHelper
NULL_PARSE_HELPER| Constructor and Description |
|---|
DefaultPluginParseHelper(org.dom4j.Element element,
String xpath) |
| Modifier and Type | Method and Description |
|---|---|
String |
attribute(String name)
Returns the value of a the attribute with the given name.
|
PluginParseHelper |
element(String name)
Returns a PluginParseHelper for the element with the given name.
|
String |
optAttribute(String name)
Returns the value of the attribute with the given name, or null.
|
Optional<PluginParseHelper> |
optElement(String name)
Returns a PluginParseHelper for the element with the given name if it exists, Option.none() if it doesn't.
|
org.dom4j.Element |
rawElement()
Returns the raw DOM4J element.
|
String |
text()
Returns the text within the current element.
|
public DefaultPluginParseHelper(org.dom4j.Element element,
String xpath)
public PluginParseHelper element(String name)
PluginParseHelperelement in interface PluginParseHelpername - an element namepublic Optional<PluginParseHelper> optElement(String name)
PluginParseHelperoptElement in interface PluginParseHelpername - an element namepublic String attribute(String name)
PluginParseHelperattribute in interface PluginParseHelpername - the attribute namepublic String optAttribute(String name)
PluginParseHelperoptAttribute in interface PluginParseHelpername - the attribute namepublic String text()
PluginParseHelpertext in interface PluginParseHelperpublic org.dom4j.Element rawElement()
PluginParseHelperrawElement in interface PluginParseHelperCopyright © 2002-2021 Atlassian. All Rights Reserved.