|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.javamatch.query.MatchQuery
Class MatchQuery is extended by classes that can execute match queries on objects, and return a value based on how good the match is. A query may be single-pass or two-pass. The default query is single-pass
Constructor Summary | |
MatchQuery()
|
Method Summary | |
abstract float |
getMatchValue(java.lang.Object targetObject)
Returns the match value of this match query, when executed on the given object. |
protected java.lang.Object |
getObjectValue(java.lang.Object srcObject,
java.lang.String memberName)
Returns the value of the member with the given name, in the given object |
boolean |
isTwoPass()
Returns if this MatchQuery is two-pass. |
void |
prePass(java.lang.Object matchedObject)
Performs the pre-pass of a two-pass query. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MatchQuery()
Method Detail |
public abstract float getMatchValue(java.lang.Object targetObject) throws MatchException
targetObject
- the object agains which the query is executed
MatchException
- when the value could not be retrievedpublic boolean isTwoPass()
public void prePass(java.lang.Object matchedObject) throws MatchException
matchedObject
- the object theat is currently matched
MatchException
- when the prePass failedprotected java.lang.Object getObjectValue(java.lang.Object srcObject, java.lang.String memberName) throws MatchException
srcObject
- the object of which the member value is retrievedmemberName
- the name of the member that is retrieved
MatchException
- when the execution of the member failed
|
Hosted by |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |