|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectantsnest.datastructure.Condition
public class Condition
Represents a condition based on nested element prescence or attribute values
| Constructor Summary | |
|---|---|
Condition(String entityName,
boolean nestedElement)
Constructs a new condition |
|
| Method Summary | |
|---|---|
void |
checkIfMet(ChangeEvent event)
Checks whether this condition has been met |
boolean |
equals(Object obj)
Whether this condition is the same as another |
String |
getEntityName()
Gets the name of the entity being queried |
boolean |
getMustNotHaveValue()
Gets whether the condition is an attribute not having a value |
String |
getRequiredValue()
Gets the value an attribute must have to satisfy this condition |
boolean |
isNestedElement()
Gets whether the entity being queried is a nested element |
void |
setMustNotHaveValue(boolean mustNotHaveValue)
Sets whether the condition is an attribute not having a value |
void |
setRequiredValue(String requiredValue)
Sets the value an attribute must have to satisfy this condition |
boolean |
wasMet()
Gets whether this condition was met on the last check |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Condition(String entityName,
boolean nestedElement)
entityName - the name of the entity being queriednestedElement - whether the entity is a nested element| Method Detail |
|---|
public String getEntityName()
public boolean isNestedElement()
public boolean getMustNotHaveValue()
public void setMustNotHaveValue(boolean mustNotHaveValue)
mustNotHaveValue - whether the condition is sopublic String getRequiredValue()
public void setRequiredValue(String requiredValue)
requiredValue - the valuepublic boolean wasMet()
public void checkIfMet(ChangeEvent event)
event - an event encapsulating a change in the build file structurepublic boolean equals(Object obj)
equals in class Objectobj - the other object to compare to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||