com.atlassian.jira.plugin.util
Class ModuleDescriptorXMLUtils

java.lang.Object
  extended by com.atlassian.jira.plugin.util.ModuleDescriptorXMLUtils

public class ModuleDescriptorXMLUtils
extends Object


Field Summary
static int DEFAULT_ORDER
           
 
Method Summary
static int getOrder(org.dom4j.Element element)
          Given an XML Element, find a child element called 'order', and get the value of it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ORDER

public static final int DEFAULT_ORDER
See Also:
Constant Field Values
Method Detail

getOrder

public static int getOrder(org.dom4j.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_ORDER is returned.


Copyright © 2002-2012 Atlassian. All Rights Reserved.