Package com.atlassian.jira.plugin.util
Class ModuleDescriptorXMLUtils
java.lang.Object
com.atlassian.jira.plugin.util.ModuleDescriptorXMLUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetClass(com.atlassian.plugin.module.Element element) Given an XML Element, find an attribute called 'class', and get its value of it.static intgetOrder(com.atlassian.plugin.module.Element element) Given an XML Element, find a child element called 'order', and get the value of it.
-
Field Details
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER- See Also:
-
-
Method Details
-
getOrder
public static int getOrder(com.atlassian.plugin.module.Element element) Given an XML Element, find a child element called 'order', and get the value of it. eg:<project-tabpanel ...> <order>10</order> </project-tabpanel>- Parameters:
element- The parent element (in this case 'project-tabpanel')- Returns:
- The order. In the example above, this would be '10'. If no order is specified in the XML, then
DEFAULT_ORDERis returned.
-
getClass
Given an XML Element, find an attribute called 'class', and get its value of it.- Parameters:
element- The parent element.- Returns:
- The `class` attribute value or empty if not found.
-