antsnest.antinfo
Class DefaultTaskDefinition

java.lang.Object
  extended by antsnest.antinfo.DefinitionBasics
      extended by antsnest.antinfo.DefaultTaskDefinition
All Implemented Interfaces:
Definition, TaskDefinition, Comparable

public class DefaultTaskDefinition
extends DefinitionBasics
implements TaskDefinition

Implementation of TaskDefinition

Author:
Chris Clohosy
See Also:
DefinitionBasics, TaskDefinition

Field Summary
 
Fields inherited from class antsnest.antinfo.DefinitionBasics
attributes, classname, deprecated, name, nestedElements
 
Constructor Summary
DefaultTaskDefinition(String category, String name)
          Constructs a new task definition
 
Method Summary
 String getCategory()
          Gets the category this task belongs in
 boolean isDeprecated()
          Whether this task is deprecated
 
Methods inherited from class antsnest.antinfo.DefinitionBasics
addAttribute, addNestedElement, compareTo, equals, getAttribute, getAttributes, getClassname, getName, getNestedElement, getNestedElements, setClassname, setDeprecated, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface antsnest.antinfo.Definition
getAttribute, getAttributes, getClassname, getName, getNestedElement, getNestedElements
 

Constructor Detail

DefaultTaskDefinition

public DefaultTaskDefinition(String category,
                             String name)
Constructs a new task definition

Parameters:
category - the category this task belongs in
name - the name of this task
Method Detail

getCategory

public String getCategory()
Gets the category this task belongs in

Specified by:
getCategory in interface TaskDefinition
Returns:
a String, the category name

isDeprecated

public boolean isDeprecated()
Whether this task is deprecated

Specified by:
isDeprecated in interface Definition
Overrides:
isDeprecated in class DefinitionBasics
Returns:
a boolean, whether it is deprecated