public interface

PluginParseHelper

com.atlassian.jira.project.template.descriptor.PluginParseHelper
Known Indirect Subclasses

Summary

Fields
public static final PluginParseHelper NULL_PARSE_HELPER Null PluginParseHelper that just returns null everywhere.
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.

Fields

public static final PluginParseHelper NULL_PARSE_HELPER

Null PluginParseHelper that just returns null everywhere.

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
Throws
PluginParseException if the attribute is not defined

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