|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectantsnest.antinfo.DefinitionBasics
public abstract class DefinitionBasics
Ways in which a task/type definition are similar
| Field Summary | |
|---|---|
protected List |
attributes
A list of attributes |
protected String |
classname
The classname of the task/type |
protected boolean |
deprecated
Whether this task/type is deprecated |
protected String |
name
The name of the task/type |
protected List |
nestedElements
A list of nested elements |
| Constructor Summary | |
|---|---|
DefinitionBasics()
Constructs the basics for a new definition |
|
| Method Summary | |
|---|---|
void |
addAttribute(AttributeDefinition attribute)
Adds an attribute to this task/type |
void |
addNestedElement(TypeDefinition element)
Adds a nested element to this task/type |
int |
compareTo(Object other)
Compares two definitions for ordering |
boolean |
equals(Object obj)
Whether two definitions are equal |
AttributeDefinition |
getAttribute(String name)
Gets an attribute by name |
AttributeDefinition[] |
getAttributes()
Gets all the attributes belonging to this type/task |
String |
getClassname()
Gets the classname of this task/type |
String |
getName()
Gets the name of this task/type |
TypeDefinition |
getNestedElement(String name)
Gets a nested element by name |
TypeDefinition[] |
getNestedElements()
Gets all the nested elements this task/type accepts |
boolean |
isDeprecated()
Whether this task/type is deprecated |
void |
setClassname(String classname)
Sets the classname of this task/type |
void |
setDeprecated(boolean deprecated)
Sets whether this task/type is deprecated |
String |
toString()
Displays the definition as a string |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String name
protected String classname
protected List attributes
protected List nestedElements
protected boolean deprecated
| Constructor Detail |
|---|
public DefinitionBasics()
| Method Detail |
|---|
public boolean isDeprecated()
public void setDeprecated(boolean deprecated)
deprecated - whether it is deprecatedpublic void addAttribute(AttributeDefinition attribute)
attribute - the attribute to addpublic void addNestedElement(TypeDefinition element)
element - the nested element this task/type acceptspublic String getName()
public String getClassname()
public void setClassname(String classname)
classname - the classnamepublic boolean equals(Object obj)
equals in class Objectobj - the object to compare to
public AttributeDefinition[] getAttributes()
public TypeDefinition[] getNestedElements()
public AttributeDefinition getAttribute(String name)
name - the name of the attribute to get
public TypeDefinition getNestedElement(String name)
name - the name of the element to get
public String toString()
toString in class Objectpublic int compareTo(Object other)
compareTo in interface Comparableother - the object to compare this definition to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||