|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectantsnest.antinfo.DefaultAttributeDefinition
public class DefaultAttributeDefinition
Implementation of AttributeDefinition
AttributeDefinition| Field Summary | |
|---|---|
String |
name
The name of this attribute |
| Constructor Summary | |
|---|---|
DefaultAttributeDefinition(boolean required,
String name)
Constructs a new definition |
|
| Method Summary | |
|---|---|
void |
addCondition(String condition)
Adds a condition to this attribute |
String[] |
getConditions()
Gets the conditions that make this attribute required |
String |
getName()
Gets the name of this attribute |
boolean |
hasConditions()
Whether there are any conditions that make this attribute required |
boolean |
isRequired()
Whether this attribute is required |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String name
| Constructor Detail |
|---|
public DefaultAttributeDefinition(boolean required,
String name)
required - whether the attribute is requiredname - the name of this attribute| Method Detail |
|---|
public String getName()
getName in interface AttributeDefinitionpublic boolean isRequired()
isRequired in interface AttributeDefinitionpublic boolean hasConditions()
hasConditions in interface AttributeDefinitionpublic String[] getConditions()
getConditions in interface AttributeDefinitionpublic void addCondition(String condition)
condition - the condition to add
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||