asia.redact.bracket.properties.mgmt
Enum ReferenceType
java.lang.Object
java.lang.Enum<ReferenceType>
asia.redact.bracket.properties.mgmt.ReferenceType
- All Implemented Interfaces:
- Serializable, Comparable<ReferenceType>
public enum ReferenceType
- extends Enum<ReferenceType>
| EXTERNAL | Used with paths on the OS, such as /home/users/dsmith/my.properties |
| CLASSLOADED | Used with paths on the java classpath, such as /my.properties |
| DIRECT | Used with properties file formatted Strings, "mykey=val1\nkey2=val2" |
| COMMANDLINE_OVERRIDE | Used to indicate a single property we want to look for on the command line, such as "key1" |
- Author:
- Dave
|
Method Summary |
static ReferenceType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ReferenceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
EXTERNAL
public static final ReferenceType EXTERNAL
CLASSLOADED
public static final ReferenceType CLASSLOADED
DIRECT
public static final ReferenceType DIRECT
COMMANDLINE_OVERRIDE
public static final ReferenceType COMMANDLINE_OVERRIDE
values
public static ReferenceType[] 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 (ReferenceType c : ReferenceType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ReferenceType 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 © 2011-2013 David R. Smith. All Rights Reserved.