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)
PluginParseHelper
element
in interface PluginParseHelper
name
- an element namepublic Optional<PluginParseHelper> optElement(String name)
PluginParseHelper
optElement
in interface PluginParseHelper
name
- an element namepublic String attribute(String name)
PluginParseHelper
attribute
in interface PluginParseHelper
name
- the attribute namepublic String optAttribute(String name)
PluginParseHelper
optAttribute
in interface PluginParseHelper
name
- the attribute namepublic String text()
PluginParseHelper
text
in interface PluginParseHelper
public org.dom4j.Element rawElement()
PluginParseHelper
rawElement
in interface PluginParseHelper
Copyright © 2002-2022 Atlassian. All Rights Reserved.