|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<HudsonConfigElement> de.smartics.ci.config.hudson.HudsonConfigElement
public enum HudsonConfigElement
Definition of XML elements of a Hudson configuration.
Enum Constant Summary | |
---|---|
ENTRY Identifies the entry XML element. |
Method Summary | |
---|---|
static org.jdom.Element |
findElement(org.jdom.Element rootElement, org.jdom.Element element, org.jdom.Element targetRootElement) Finds the element within the target root element. |
String |
getName() Returns the name of the XML element this enum element identifies. |
static HudsonConfigElement |
valueFor(String elementName) Returns the element for the given name. |
static HudsonConfigElement |
valueOf(String name) Returns the enum constant of this type with the specified name. |
static HudsonConfigElement[] |
values() Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final HudsonConfigElement ENTRY
entry
XML element.
Method Detail |
---|
public static HudsonConfigElement[] values()
for (HudsonConfigElement c : HudsonConfigElement.values()) System.out.println(c);
public static HudsonConfigElement valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
public String getName()
public static HudsonConfigElement valueFor(String elementName) throws IllegalArgumentException
elementName
- the name of the request element.
IllegalArgumentException
- if the
elementName
does not match a known element name.
public static org.jdom.Element findElement(org.jdom.Element rootElement, org.jdom.Element element, org.jdom.Element targetRootElement) throws org.jdom.JDOMException
rootElement
is analog to targetRootElement
. This method finds the analog element of element
within the target document.
rootElement
- the root element to the element.
element
- the element relative to the
rootElement
.
targetRootElement
- the root element within which the element specified by
element
is requested. This root element is the root element of the target document.
element
within
targetRootElement
.
org.jdom.JDOMException
- on any problem accessing any element information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |