|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.imemex.predicates.AbstractPredicate
public abstract class AbstractPredicate
Abstract predicate implementation which does the following:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.imemex.predicates.Predicate |
|---|
Predicate.PredType |
| Constructor Summary | |
|---|---|
AbstractPredicate()
|
|
AbstractPredicate(Predicate.PredType type,
java.util.List<java.lang.String> variableNames)
|
|
AbstractPredicate(Predicate.PredType type,
java.lang.String variable1)
|
|
AbstractPredicate(Predicate.PredType type,
java.lang.String variable1,
java.lang.String variable2)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Predicate p,
boolean deep)
Compares this predicate to the given predicate p. |
Predicate.PredType |
getType()
gets type of this predicate |
java.util.List<java.lang.String> |
getVariables()
Gets all the variable names defined for the predicate. |
boolean |
renameVariable(java.lang.String oldName,
java.lang.String newName,
boolean suffix)
renames a variable, if it exists |
java.lang.String |
toString()
|
java.lang.String |
toXML()
gets XML representation |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.imemex.predicates.Predicate |
|---|
copy, eval |
| Constructor Detail |
|---|
public AbstractPredicate(Predicate.PredType type,
java.util.List<java.lang.String> variableNames)
public AbstractPredicate(Predicate.PredType type,
java.lang.String variable1)
public AbstractPredicate(Predicate.PredType type,
java.lang.String variable1,
java.lang.String variable2)
public AbstractPredicate()
| Method Detail |
|---|
public final java.util.List<java.lang.String> getVariables()
Predicate
getVariables in interface Predicatepublic Predicate.PredType getType()
Predicate
getType in interface Predicate
public boolean renameVariable(java.lang.String oldName,
java.lang.String newName,
boolean suffix)
Predicate
renameVariable in interface PredicateoldName - old variable namenewName - new variable namesuffix - true if suffix match should be used, false otherwise
true if renamed, false otherwisepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toXML()
Predicate
toXML in interface Predicate
public boolean equals(Predicate p,
boolean deep)
Predicate
equals in interface Predicatedeep - true if type, variable names, and values have to match, false if only type has to match.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||