|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectantsnest.antinfo.DefaultAntInfo
public class DefaultAntInfo
Implementation of AntInfo
AntInfo| Constructor Summary | |
|---|---|
DefaultAntInfo()
Constructs an information object |
|
| Method Summary | |
|---|---|
void |
addTask(TaskDefinition task)
Adds knowledge of a new task |
void |
addType(TypeDefinition type)
Adds knowledge of a new type |
boolean |
doesTaskExist(String task)
Whether a task exists |
boolean |
doesTypeExist(String type)
Whether a type exists |
String[] |
getCategoryNames()
Gets all the category names |
TaskDefinition |
getTask(String name)
Gets a task by name |
TaskDefinition[] |
getTasks()
Gets all the tasks known about |
TaskDefinition[] |
getTasks(String categoryName)
Gets all the tasks belonging to a particular category |
TypeDefinition |
getType(String typeName)
Gets a type if it knows about it |
TypeDefinition[] |
getTypes()
Gets all the types known about |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAntInfo()
| Method Detail |
|---|
public void addTask(TaskDefinition task)
addTask in interface AntInfotask - the task to addpublic void addType(TypeDefinition type)
addType in interface AntInfotype - the type to addpublic TypeDefinition getType(String typeName)
getType in interface AntInfotypeName - the name of the type required
public boolean doesTaskExist(String task)
doesTaskExist in interface AntInfotask - the task to check for
public boolean doesTypeExist(String type)
doesTypeExist in interface AntInfotype - the type to check for
public String[] getCategoryNames()
getCategoryNames in interface AntInfopublic TaskDefinition[] getTasks(String categoryName)
getTasks in interface AntInfocategoryName - the category name to search with
public TaskDefinition getTask(String name)
getTask in interface AntInfoname - the name of the task required
public TaskDefinition[] getTasks()
getTasks in interface AntInfopublic TypeDefinition[] getTypes()
getTypes in interface AntInfo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||