org.fenfire.loom
Class StatementSelector.SimpleSelector

java.lang.Object
  |
  +--org.fenfire.loom.StatementSelector.SimpleSelector
All Implemented Interfaces:
StatementSelector
Direct Known Subclasses:
PropertySetSelector
Enclosing class:
StatementSelector

public static class StatementSelector.SimpleSelector
extends java.lang.Object
implements StatementSelector

The posward or negward connections of focus to show, in order. Returns a set of statements, not a set of nodes.

XXX refactor-- slow because we iterate though ALL triples in the graph.


Nested Class Summary
 
Nested classes inherited from class org.fenfire.loom.StatementSelector
StatementSelector.SimpleSelector
 
Field Summary
 
Fields inherited from interface org.fenfire.loom.StatementSelector
simpleSelector
 
Constructor Summary
StatementSelector.SimpleSelector()
           
 
Method Summary
protected  boolean accept(Statement s)
           
 java.util.Collection getConnections(Resource focus, int dir)
          The posward or negward connections of focus to show, in order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementSelector.SimpleSelector

public StatementSelector.SimpleSelector()
Method Detail

accept

protected boolean accept(Statement s)

getConnections

public java.util.Collection getConnections(Resource focus,
                                           int dir)
Description copied from interface: StatementSelector
The posward or negward connections of focus to show, in order. Returns a collection of statements, not a set of nodes.

Specified by:
getConnections in interface StatementSelector