|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.anteater.test.GroupUtils
Various static utility methods for manipulating lists of Properties and Namespaces.
Constructor Summary | |
GroupUtils()
|
Method Summary | |
static ArrayList |
getNamedUserProps(String groupId,
ArrayList propList,
org.apache.tools.ant.Project proj)
Return a List of user properties (-Dfoo=bar, etc) whose names match those found in the specified list, in the specified group |
static Namespace |
getNamespace(ArrayList nsList,
String prefix)
Retrieves the Namespace from the specified list. |
static org.apache.tools.ant.taskdefs.Property |
getProperty(ArrayList propList,
String name)
Retrieves the Property from the specified list. |
static org.apache.tools.ant.taskdefs.Property |
getUserProperty(String groupId,
String propId,
org.apache.tools.ant.Project proj)
Retrieve a user property with a certain name and group from a Project |
static ArrayList |
mergeNamespaces(ArrayList parents,
ArrayList children)
Do the 'merging' of two sets of properties, preferring the second set. |
static ArrayList |
mergeProps(ArrayList parents,
ArrayList children)
Do the 'merging' of two sets of properties, preferring the second set. |
static ArrayList |
mergeUses(ArrayList parents,
ArrayList children)
Merge two lists of Feature s (requirements). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GroupUtils()
Method Detail |
public static ArrayList mergeNamespaces(ArrayList parents, ArrayList children)
parents
- Parent Group's Namespaceschildren
- Child Group's Namespaces
public static ArrayList mergeUses(ArrayList parents, ArrayList children)
Feature
s (requirements).
parents
- Parent Group's Featureschildren
- Child Group's Features
public static ArrayList mergeProps(ArrayList parents, ArrayList children)
parents
- Parent Group's Propertieschildren
- Child Group's Properties
public static ArrayList getNamedUserProps(String groupId, ArrayList propList, org.apache.tools.ant.Project proj)
groupId
- Group of property, eg 'default'propList
- List of Properties, whose names will be searched for
corresponding user properties.proj
- Project to search
propList
public static org.apache.tools.ant.taskdefs.Property getUserProperty(String groupId, String propId, org.apache.tools.ant.Project proj)
groupId
- Group of property, eg 'default'propId
- Name of property, eg 'debug'proj
- Ant Project to search properties from
null
if none was foundpublic static org.apache.tools.ant.taskdefs.Property getProperty(ArrayList propList, String name)
Property
from the specified list.
propList
- The List of Propertiesname
- The name of the property to retrieve
null
if not found.public static Namespace getNamespace(ArrayList nsList, String prefix)
Namespace
from the specified list.
nsList
- The List of namespacesprefix
- The prefix of the namespace to retrieve
null
if not found.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |