Class AbstractRegionDigraphVisitor<C>
- java.lang.Object
-
- org.apache.karaf.features.internal.region.AbstractRegionDigraphVisitor<C>
-
- All Implemented Interfaces:
org.eclipse.equinox.region.RegionDigraphVisitor
public abstract class AbstractRegionDigraphVisitor<C> extends Object implements org.eclipse.equinox.region.RegionDigraphVisitor
AbstractRegionDigraphVisitor
is an abstract base class forRegionDigraphVisitor
implementations
-
-
Constructor Summary
Constructors Constructor Description AbstractRegionDigraphVisitor(Collection<C> candidates)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
contains(org.eclipse.equinox.region.Region region, C candidate)
Determines whether the given region contains the given candidate.Collection<C>
getAllowed()
protected abstract boolean
isAllowed(C candidate, org.eclipse.equinox.region.RegionFilter filter)
Determines whether the given candidate is allowed by the givenRegionFilter
.void
postEdgeTraverse(org.eclipse.equinox.region.RegionFilter regionFilter)
boolean
preEdgeTraverse(org.eclipse.equinox.region.RegionFilter regionFilter)
boolean
visit(org.eclipse.equinox.region.Region region)
-
-
-
Constructor Detail
-
AbstractRegionDigraphVisitor
public AbstractRegionDigraphVisitor(Collection<C> candidates)
-
-
Method Detail
-
getAllowed
public Collection<C> getAllowed()
-
visit
public boolean visit(org.eclipse.equinox.region.Region region)
- Specified by:
visit
in interfaceorg.eclipse.equinox.region.RegionDigraphVisitor
-
preEdgeTraverse
public boolean preEdgeTraverse(org.eclipse.equinox.region.RegionFilter regionFilter)
- Specified by:
preEdgeTraverse
in interfaceorg.eclipse.equinox.region.RegionDigraphVisitor
-
postEdgeTraverse
public void postEdgeTraverse(org.eclipse.equinox.region.RegionFilter regionFilter)
- Specified by:
postEdgeTraverse
in interfaceorg.eclipse.equinox.region.RegionDigraphVisitor
-
contains
protected abstract boolean contains(org.eclipse.equinox.region.Region region, C candidate)
Determines whether the given region contains the given candidate.- Parameters:
region
- theRegion
candidate
- the candidate- Returns:
true
if and only if the given region contains the given candidate
-
isAllowed
protected abstract boolean isAllowed(C candidate, org.eclipse.equinox.region.RegionFilter filter)
Determines whether the given candidate is allowed by the givenRegionFilter
.- Parameters:
candidate
- the candidatefilter
- the filter- Returns:
true
if and only if the given candidate is allowed by the given filter
-
-