Interface PluginParseHelper
- All Known Implementing Classes:
DefaultPluginParseHelper
public interface PluginParseHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PluginParseHelper
Null PluginParseHelper that just returns null everywhere. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of a the attribute with the given name.Returns a PluginParseHelper for the element with the given name.optAttribute
(String name) Returns the value of the attribute with the given name, or null.optElement
(String name) Returns a PluginParseHelper for the element with the given name if it exists, Option.none() if it doesn't.com.atlassian.plugin.module.Element
Returns the raw DOM4J element.text()
Returns the text within the current element.
-
Field Details
-
NULL_PARSE_HELPER
Null PluginParseHelper that just returns null everywhere.
-
-
Method Details
-
element
Returns a PluginParseHelper for the element with the given name.- Parameters:
name
- an element name- Returns:
- a PluginParseHelper
-
optElement
Returns a PluginParseHelper for the element with the given name if it exists, Option.none() if it doesn't.- Parameters:
name
- an element name- Returns:
- an Option<PluginParseHelper>
-
attribute
Returns the value of a the attribute with the given name.- Parameters:
name
- the attribute name- Returns:
- the attribute value
- Throws:
com.atlassian.plugin.PluginParseException
- if the attribute is not defined
-
optAttribute
Returns the value of the attribute with the given name, or null.- Parameters:
name
- the attribute name- Returns:
- the attribute value
-
text
String text()Returns the text within the current element.- Returns:
- the text
-
rawElement
com.atlassian.plugin.module.Element rawElement()Returns the raw DOM4J element.- Returns:
- the raw Element
-