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.ElementReturns the raw DOM4J element.text()Returns the text within the current element.
-
Constructor Details
-
DefaultPluginParseHelper
-
-
Method Details
-
element
Description copied from interface:PluginParseHelperReturns a PluginParseHelper for the element with the given name.- Specified by:
elementin interfacePluginParseHelper- Parameters:
name- an element name- Returns:
- a PluginParseHelper
-
optElement
Description copied from interface:PluginParseHelperReturns a PluginParseHelper for the element with the given name if it exists, Option.none() if it doesn't.- Specified by:
optElementin interfacePluginParseHelper- Parameters:
name- an element name- Returns:
- an Option<PluginParseHelper>
-
attribute
Description copied from interface:PluginParseHelperReturns the value of a the attribute with the given name.- Specified by:
attributein interfacePluginParseHelper- Parameters:
name- the attribute name- Returns:
- the attribute value
-
optAttribute
Description copied from interface:PluginParseHelperReturns the value of the attribute with the given name, or null.- Specified by:
optAttributein interfacePluginParseHelper- Parameters:
name- the attribute name- Returns:
- the attribute value
-
text
Description copied from interface:PluginParseHelperReturns the text within the current element.- Specified by:
textin interfacePluginParseHelper- Returns:
- the text
-
rawElement
public com.atlassian.plugin.module.Element rawElement()Description copied from interface:PluginParseHelperReturns the raw DOM4J element.- Specified by:
rawElementin interfacePluginParseHelper- Returns:
- the raw Element
-