|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<XmlConfig.ResolveKey>
ch.javasoft.xml.config.XmlConfig.ResolveKey
public static enum XmlConfig.ResolveKey
Key elements be used in {...} brackets, will be resolved by the corresponding content. Can be used to address the working directory, application name, system properties, command line arguments/options respectively.
In xml, the names of the keys equal the enum constant names, but replacing _ with -.
| Enum Constant Summary | |
|---|---|
app_name
|
|
arg
|
|
date
|
|
list
|
|
now
|
|
opt
|
|
sys_prop
|
|
time
|
|
work_dir
|
|
| Method Summary | |
|---|---|
boolean |
matches(String value)
|
String |
resolve(Attribute att,
String path,
String value,
XmlConfig config)
|
static XmlConfig.ResolveKey |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static XmlConfig.ResolveKey[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
String |
xmlName()
The key name in xml, same as enum constant name, but _ replaced by - |
| 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 XmlConfig.ResolveKey work_dir
public static final XmlConfig.ResolveKey app_name
public static final XmlConfig.ResolveKey sys_prop
public static final XmlConfig.ResolveKey date
public static final XmlConfig.ResolveKey time
public static final XmlConfig.ResolveKey now
public static final XmlConfig.ResolveKey arg
public static final XmlConfig.ResolveKey opt
public static final XmlConfig.ResolveKey list
| Method Detail |
|---|
public static XmlConfig.ResolveKey[] values()
for (XmlConfig.ResolveKey c : XmlConfig.ResolveKey.values()) System.out.println(c);
public static XmlConfig.ResolveKey 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 nullpublic String xmlName()
public String resolve(Attribute att,
String path,
String value,
XmlConfig config)
throws XmlConfigException
XmlConfigExceptionpublic boolean matches(String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||