org.guvnor.tools.views.model
Enum TreeObject.Type
java.lang.Object
java.lang.Enum<TreeObject.Type>
org.guvnor.tools.views.model.TreeObject.Type
- All Implemented Interfaces:
- Serializable, Comparable<TreeObject.Type>
- Enclosing class:
- TreeObject
public static enum TreeObject.Type
- extends Enum<TreeObject.Type>
|
Method Summary |
static TreeObject.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TreeObject.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
NONE
public static final TreeObject.Type NONE
REPOSITORY
public static final TreeObject.Type REPOSITORY
GLOBALS
public static final TreeObject.Type GLOBALS
PACKAGES
public static final TreeObject.Type PACKAGES
SNAPSHOTS
public static final TreeObject.Type SNAPSHOTS
PACKAGE
public static final TreeObject.Type PACKAGE
SNAPSHOT_PACKAGE
public static final TreeObject.Type SNAPSHOT_PACKAGE
SNAPSHOT
public static final TreeObject.Type SNAPSHOT
RESOURCE
public static final TreeObject.Type RESOURCE
values
public static TreeObject.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TreeObject.Type c : TreeObject.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TreeObject.Type valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.