public interface PluginParseHelper
Modifier and Type | Field and Description |
---|---|
static PluginParseHelper |
NULL_PARSE_HELPER
Null PluginParseHelper that just returns null everywhere.
|
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.
|
static final PluginParseHelper NULL_PARSE_HELPER
PluginParseHelper element(String name)
name
- an element nameOptional<PluginParseHelper> optElement(String name)
name
- an element nameString attribute(String name) throws com.atlassian.plugin.PluginParseException
name
- the attribute namecom.atlassian.plugin.PluginParseException
- if the attribute is not definedString optAttribute(String name)
name
- the attribute nameString text()
org.dom4j.Element rawElement()
Copyright © 2002-2024 Atlassian. All Rights Reserved.