|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPropertyLocator
Instances of this interface are able to find out where the given property is defined.
| Field Summary | |
|---|---|
static int |
LOCATION_DEFAULTS
Location constant, the given key is default. |
static int |
LOCATION_NOT_DEFINED
Location constant, the given key was not found. |
static int |
LOCATION_PARENT_PROJECT
Location constant, the given key is in parent's directory project.properties file. |
static int |
LOCATION_PARENT_PROJECT_BUILD
Location constant, the given key is in parent's directory build.properties file. |
static int |
LOCATION_PROJECT
Location constant, the given key is in project.properties file. |
static int |
LOCATION_PROJECT_BUILD
Location constant, the given key is in ${basedir}/build.properties file. |
static int |
LOCATION_SYSENV
sys |
static int |
LOCATION_USER_BUILD
Location constant, the given key is in ${user.home}/build.properties file. |
| Method Summary | |
|---|---|
java.util.Set |
getKeysAtLocation(int location)
returns all the keys at the given location. |
int |
getPropertyLocation(java.lang.String key)
Returns where the key is located. |
java.lang.String |
getValueAtLocation(java.lang.String key,
int location)
get the value of the property as defined at the given location |
boolean |
isDefinedInLocation(java.lang.String key,
int location)
the return value indicates if the property is defined in the particular properties file. |
| Field Detail |
|---|
static final int LOCATION_NOT_DEFINED
static final int LOCATION_DEFAULTS
static final int LOCATION_PROJECT
static final int LOCATION_PROJECT_BUILD
static final int LOCATION_USER_BUILD
static final int LOCATION_PARENT_PROJECT
static final int LOCATION_PARENT_PROJECT_BUILD
static final int LOCATION_SYSENV
| Method Detail |
|---|
int getPropertyLocation(java.lang.String key)
boolean isDefinedInLocation(java.lang.String key,
int location)
java.util.Set getKeysAtLocation(int location)
java.lang.String getValueAtLocation(java.lang.String key,
int location)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||