|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.catalog.util.SearchIDDeltaVisitor
public class SearchIDDeltaVisitor
Easy of use visitor for search IResolveDeltas.
After a run found == Delta that best matches the provided handle.
Will be null if no matches were found that were interesting. Where: interesting != NO_CHANGE
You can use this code as an example of a good IResolveDeltaVisitor.
Constructor Summary | |
---|---|
SearchIDDeltaVisitor(java.net.URL id)
|
Method Summary | |
---|---|
IResolveDelta |
getFound()
Best match IResolveDelta for handle, may be null if search came up empty. |
static IResolveDelta |
search(java.net.URL id,
IResolveChangeEvent event)
Quick method that uses this visitor to search an event. |
boolean |
visit(IResolveDelta delta)
Visits the given resolve delta. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchIDDeltaVisitor(java.net.URL id)
Method Detail |
---|
public IResolveDelta getFound()
public boolean visit(IResolveDelta delta)
IResolveDeltaVisitor
visit
in interface IResolveDeltaVisitor
true
if the resource delta's children should be visited;
false
if they should be skipped.public static IResolveDelta search(java.net.URL id, IResolveChangeEvent event)
This serves as a good example of using a visitor.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |