|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.fhg.igd.util.WhatIs
public class WhatIs
A place to stash global definitions of paths and other
parameters. This class is initialized by means of a
file that adheres to the syntax defined in class
Properties. Initialization is done via the
method.
public static void
main(String[] argv)
| Field Summary | |
|---|---|
static String |
OPT_DESCR
The options descriptor. |
private static Map |
whatis_
The Map that stores the key to value mappings. |
| Constructor Summary | |
|---|---|
private |
WhatIs()
No-one creates instances of this class. |
| Method Summary | |
|---|---|
protected static void |
init(Map defs)
Initialize this class with a Map that contains
all the mappings server by it. |
static Set |
keySet()
Returns the set of keys of the global static definitions. |
static void |
main(String[] argv)
The command line interface to initializing WhatIs. |
static CanonicalPath |
pathValue(String key)
Returns the CanonicalPath defined under the
given key. |
static String |
stringValue(String key)
Returns the value of the given key in the global static definitions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String OPT_DESCR
private static Map whatis_
Map that stores the key to value mappings.
| Constructor Detail |
|---|
private WhatIs()
| Method Detail |
|---|
protected static final void init(Map defs)
Map that contains
all the mappings server by it. This method can be called
only once with a valid Map instance. This
method must be called before any other methods.
defs - The Map of definitions.public static final CanonicalPath pathValue(String key)
CanonicalPath defined under the
given key. Access is public so do not put confidential
information into the WhatIs list.
key - The key that identifies the desired path in the
list of global static definitions.
CanonicalPaththat is defined under
the given key.public static final String stringValue(String key)
null.
key - The key that identifies the desired value in the
list of global static definitions.
WhatIs list.
NullPointerException - iff key is
null.public static final Set keySet()
WhatIs list.public static void main(String[] argv)
WhatIs.
The following parameters are accepted:
WhatIs. This can be done only once for
each run of the VM.
WhatIs to the
console.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||