Class DefaultPluginParseHelper
java.lang.Object
com.atlassian.jira.project.template.descriptor.DefaultPluginParseHelper
- All Implemented Interfaces:
PluginParseHelper
-
Field Summary
Fields inherited from interface com.atlassian.jira.project.template.descriptor.PluginParseHelper
NULL_PARSE_HELPER
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPluginParseHelper
(com.atlassian.plugin.module.Element element, String xpath) -
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.
-
Constructor Details
-
DefaultPluginParseHelper
-
-
Method Details
-
element
Description copied from interface:PluginParseHelper
Returns a PluginParseHelper for the element with the given name.- Specified by:
element
in interfacePluginParseHelper
- Parameters:
name
- an element name- Returns:
- a PluginParseHelper
-
optElement
Description copied from interface:PluginParseHelper
Returns a PluginParseHelper for the element with the given name if it exists, Option.none() if it doesn't.- Specified by:
optElement
in interfacePluginParseHelper
- Parameters:
name
- an element name- Returns:
- an Option<PluginParseHelper>
-
attribute
Description copied from interface:PluginParseHelper
Returns the value of a the attribute with the given name.- Specified by:
attribute
in interfacePluginParseHelper
- Parameters:
name
- the attribute name- Returns:
- the attribute value
-
optAttribute
Description copied from interface:PluginParseHelper
Returns the value of the attribute with the given name, or null.- Specified by:
optAttribute
in interfacePluginParseHelper
- Parameters:
name
- the attribute name- Returns:
- the attribute value
-
text
Description copied from interface:PluginParseHelper
Returns the text within the current element.- Specified by:
text
in interfacePluginParseHelper
- Returns:
- the text
-
rawElement
public com.atlassian.plugin.module.Element rawElement()Description copied from interface:PluginParseHelper
Returns the raw DOM4J element.- Specified by:
rawElement
in interfacePluginParseHelper
- Returns:
- the raw Element
-