|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IQueryContext
interface to externalize the project files content/models to one place, and reuse in all the queries (ILocationFinder, IPropertyResolver, etc)
| Field Summary | |
|---|---|
static int |
BUILD_PROPS_OFFSET
|
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_USER_BUILD
Location constant, the given key is in ${user.home}/build.properties file. |
static int |
PROJECT_PROPS_OFFSET
|
| Method Summary | |
|---|---|
java.util.Set |
getBuildPropertyKeys()
all property keys defined in build.properties |
java.lang.String |
getBuildPropertyValue(java.lang.String key)
|
java.util.Set |
getParentBuildPropertyKeys()
all property keys defined in parent build.properties |
java.lang.String |
getParentBuildPropertyValue(java.lang.String key)
|
java.util.Set |
getParentProjectPropertyKeys()
all property keys defined in parent project.properties |
java.lang.String |
getParentProjectPropertyValue(java.lang.String key)
|
IProjectContext |
getPOMContext()
pom files, parsed xml elements and project instances from the pom files of this project |
java.io.File |
getProjectDirectory()
the directory where the POM is located |
java.util.Set |
getProjectPropertyKeys()
all property keys defined in project.properties |
java.lang.String |
getProjectPropertyValue(java.lang.String key)
|
java.util.Set |
getPropertyKeysAt(int location)
all property keys defined at given location.. |
java.lang.String |
getPropertyValue(java.lang.String key)
|
java.lang.String |
getPropertyValueAt(java.lang.String key,
int location)
|
IPropertyResolver |
getResolver()
the default property resolver for this instance of IQueryContext |
java.io.File |
getUserDirectory()
user directory, location of the build.properties file. |
java.util.Set |
getUserPropertyKeys()
all property keys defined in userdir/build.properties |
java.lang.String |
getUserPropertyValue(java.lang.String key)
|
| Field Detail |
|---|
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 PROJECT_PROPS_OFFSET
static final int BUILD_PROPS_OFFSET
| Method Detail |
|---|
java.lang.String getPropertyValue(java.lang.String key)
java.lang.String getUserPropertyValue(java.lang.String key)
java.lang.String getBuildPropertyValue(java.lang.String key)
java.lang.String getProjectPropertyValue(java.lang.String key)
java.lang.String getParentBuildPropertyValue(java.lang.String key)
java.lang.String getParentProjectPropertyValue(java.lang.String key)
java.lang.String getPropertyValueAt(java.lang.String key,
int location)
location - PomContext.getProjectDepth() * 10 + x,
where x is 0 for project.properties file and 1 for build.properties file.java.util.Set getPropertyKeysAt(int location)
location - PomContext.getProjectDepth() * 10 + x,
where x is PROJECT_PROPS_OFFSET for project.properties file and BUILD_PROPS_OFFSET for build.properties file.java.util.Set getUserPropertyKeys()
java.util.Set getBuildPropertyKeys()
java.util.Set getProjectPropertyKeys()
java.util.Set getParentBuildPropertyKeys()
java.util.Set getParentProjectPropertyKeys()
java.io.File getProjectDirectory()
java.io.File getUserDirectory()
IProjectContext getPOMContext()
IPropertyResolver getResolver()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||