org.apache.anteater.test
Class DefaultGroup

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.types.DataType
              |
              +--org.apache.anteater.test.BaseDataType
                    |
                    +--org.apache.anteater.test.Group
                          |
                          +--org.apache.anteater.test.DefaultGroup
All Implemented Interfaces:
Groupable

public class DefaultGroup
extends Group

Default, primordial group, from which all others inherit. It may be overridden by defining a group with id 'default'.

Version:
$Revision: 1.12 $ $Date: 2002/11/08 15:55:14 $
Author:
Jeff Turner

Field Summary
static String DEFAULT_GROUP_NAME
          Ant Id by which the default group can be referred to.
protected static String DEFAULT_PROPERTIES_PATH
           
 
Fields inherited from class org.apache.anteater.test.Group
_id, _loggers, _namespaces, _props, _sessions, _tasks, _uses
 
Fields inherited from class org.apache.anteater.test.BaseDataType
debug, debugWasSet
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Method Summary
static DefaultGroup getDefaultGroup(org.apache.tools.ant.Project proj)
          Retrieve (possibly creating) the default group.
 Group getGroup()
          Always returns null.
 String getId()
          Retrieve the id which Ant refers to this object by.
 ArrayList getLoggers()
          Retrieve Loggers.
 ArrayList getNamespaces()
          Return a set of Properties, representing those either native to this Group, or inherited from a subgroup.
 ArrayList getProperties()
          Return a set of Properties, representing those either native to this Group, or inherited from a subgroup.
 String getProperty(String name)
          Retrieves the specified property, first looking in System.properties to use any user-specified value, and then looking in the default property list.
 ArrayList getUses()
           
 
Methods inherited from class org.apache.anteater.test.Group
add, addConfiguredGroup, addLogger, addNamespace, addProperty, addSession, addTask, addUses, getSession, setGroup, setId, setInherits, toString
 
Methods inherited from class org.apache.anteater.test.BaseDataType
debug, getDataTypeName, getDebug, getRef, print, println, setDebug, setGroup, setRefid
 
Methods inherited from class org.apache.tools.ant.types.DataType
circularReference, dieOnCircularReference, getCheckedRef, getDescription, isReference, noChildrenAllowed, setDescription, tooManyAttributes
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_GROUP_NAME

public static final String DEFAULT_GROUP_NAME
Ant Id by which the default group can be referred to.

See Also:
Constant Field Values

DEFAULT_PROPERTIES_PATH

protected static final String DEFAULT_PROPERTIES_PATH
See Also:
Constant Field Values
Method Detail

getDefaultGroup

public static DefaultGroup getDefaultGroup(org.apache.tools.ant.Project proj)
Retrieve (possibly creating) the default group.

Throws:
RuntimeException - if a fatal error occurred loading the defaults.properties resource.

getGroup

public Group getGroup()
Always returns null.

Overrides:
getGroup in class Group

getProperties

public ArrayList getProperties()
Description copied from class: Group
Return a set of Properties, representing those either native to this Group, or inherited from a subgroup. Thus this function will recurse through the Group hierarchy, and "higher" groups' Properties will mask those of lower groups'.

Overrides:
getProperties in class Group

getLoggers

public ArrayList getLoggers()
Description copied from class: Group
Retrieve Loggers. If any loggers were added specifically to this group, they will be returned, otherwise this group's parents' loggers will be returned.

Overrides:
getLoggers in class Group

getUses

public ArrayList getUses()
Overrides:
getUses in class Group

getNamespaces

public ArrayList getNamespaces()
Description copied from class: Group
Return a set of Properties, representing those either native to this Group, or inherited from a subgroup. Thus this function will recurse through the Group hierarchy, and "higher" groups' Properties will mask those of lower groups'.

Overrides:
getNamespaces in class Group

getProperty

public String getProperty(String name)
Retrieves the specified property, first looking in System.properties to use any user-specified value, and then looking in the default property list.

Returns:
A property value, or if nothing is found, null.

getId

public String getId()
Description copied from class: Group
Retrieve the id which Ant refers to this object by.

Overrides:
getId in class Group


Ant Functional Tester -- see Project home page for details