|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.AProp
public abstract class AProp
This class assembles properties which are used all around the project. They are initially read from and finally written to disk.
Constructor Summary | |
---|---|
AProp(String prop)
Constructor. |
Method Summary | |
---|---|
String |
get(Object[] key)
Returns the requested string. |
boolean |
invert(Object[] key)
Inverts a boolean property. |
boolean |
is(Object[] key)
Returns the requested boolean. |
int |
num(Object[] key)
Returns the requested integer. |
int[] |
nums(Object[] key)
Returns the requested integer array. |
Object |
object(String key)
Returns the requested object. |
void |
set(Object[] key,
boolean val)
Sets the specified boolean for the specified key. |
void |
set(Object[] key,
int val)
Sets the specified integer for the specified key. |
void |
set(Object[] key,
int[] val)
Sets the specified integer array for the specified key. |
void |
set(Object[] key,
String val)
Sets the specified value for the specified key. |
void |
set(Object[] key,
String[] val)
Sets the specified string array for the specified key. |
void |
set(String key,
Object val)
Sets the specified value for the specified key. |
String[] |
strings(Object[] key)
Returns the requested string array. |
void |
write()
Writes the properties to disk. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AProp(String prop)
prop
argument is set to null, reading is omitted.
prop
- property file extensionMethod Detail |
---|
public final void write()
public final Object object(String key)
key
- key to be found
public final String get(Object[] key)
key
- key to be found
public final int num(Object[] key)
key
- key to be found
public final boolean is(Object[] key)
key
- key to be found
public final String[] strings(Object[] key)
key
- key to be found
public final int[] nums(Object[] key)
key
- key to be found
public final void set(Object[] key, String val)
key
- key to be foundval
- value to be writtenpublic final void set(Object[] key, int val)
key
- key to be foundval
- value to be writtenpublic final void set(Object[] key, boolean val)
key
- key to be foundval
- value to be writtenpublic final void set(Object[] key, String[] val)
key
- key to be foundval
- value to be writtenpublic final void set(Object[] key, int[] val)
key
- key to be foundval
- value to be writtenpublic final void set(String key, Object val)
key
- key to be foundval
- value to be writtenpublic final boolean invert(Object[] key)
key
- key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |