public class

DefaultPluginParseHelper

extends Object
implements PluginParseHelper
java.lang.Object
   ↳ com.atlassian.jira.project.template.descriptor.DefaultPluginParseHelper

Summary

[Expand]
Inherited Fields
From interface com.atlassian.jira.project.template.descriptor.PluginParseHelper
Public Constructors
DefaultPluginParseHelper(Element element, String xpath)
Public Methods
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.
Element rawElement()
Returns the raw DOM4J element.
String text()
Returns the text within the current element.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.project.template.descriptor.PluginParseHelper

Public Constructors

public DefaultPluginParseHelper (Element element, String xpath)

Public Methods

public String attribute (String name)

Returns the value of a the attribute with the given name.

Parameters
name the attribute name
Returns
  • the attribute value

public PluginParseHelper element (String name)

Returns a PluginParseHelper for the element with the given name.

Parameters
name an element name
Returns
  • a PluginParseHelper

public String optAttribute (String name)

Returns the value of the attribute with the given name, or null.

Parameters
name the attribute name
Returns
  • the attribute value

public Optional<PluginParseHelper> optElement (String name)

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>

public Element rawElement ()

Returns the raw DOM4J element.

Returns
  • the raw Element

public String text ()

Returns the text within the current element.

Returns
  • the text