|
||||||||||
| 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(java.lang.String prop)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
get(java.lang.Object[] key)
Returns the requested string. |
boolean |
invert(java.lang.Object[] key)
Inverts a boolean property. |
boolean |
is(java.lang.Object[] key)
Returns the requested boolean. |
int |
num(java.lang.Object[] key)
Returns the requested integer. |
int[] |
nums(java.lang.Object[] key)
Returns the requested integer array. |
java.lang.Object |
object(java.lang.String key)
Returns the requested object. |
void |
set(java.lang.Object[] key,
boolean val)
Sets the specified boolean for the specified key. |
void |
set(java.lang.Object[] key,
int val)
Sets the specified integer for the specified key. |
void |
set(java.lang.Object[] key,
int[] val)
Sets the specified integer array for the specified key. |
void |
set(java.lang.Object[] key,
java.lang.String val)
Sets the specified value for the specified key. |
void |
set(java.lang.Object[] key,
java.lang.String[] val)
Sets the specified string array for the specified key. |
void |
set(java.lang.String key,
java.lang.Object val)
Sets the specified value for the specified key. |
java.lang.String[] |
strings(java.lang.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(java.lang.String prop)
prop - property file| Method Detail |
|---|
public void write()
public java.lang.Object object(java.lang.String key)
key - key to be found
public java.lang.String get(java.lang.Object[] key)
key - key to be found
public int num(java.lang.Object[] key)
key - key to be found
public boolean is(java.lang.Object[] key)
key - key to be found
public java.lang.String[] strings(java.lang.Object[] key)
key - key to be found
public int[] nums(java.lang.Object[] key)
key - key to be found
public void set(java.lang.Object[] key,
java.lang.String val)
key - key to be foundval - value to be written
public void set(java.lang.Object[] key,
int val)
key - key to be foundval - value to be written
public void set(java.lang.Object[] key,
boolean val)
key - key to be foundval - value to be written
public void set(java.lang.Object[] key,
java.lang.String[] val)
key - key to be foundval - value to be written
public void set(java.lang.Object[] key,
int[] val)
key - key to be foundval - value to be written
public void set(java.lang.String key,
java.lang.Object val)
key - key to be foundval - value to be writtenpublic boolean invert(java.lang.Object[] key)
key - key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||