org.topbraid.strings.classexpressions.completion
Class RangeCompletionManager

java.lang.Object
  extended by org.topbraid.strings.classexpressions.completion.RangeCompletionManager
All Implemented Interfaces:
ICompletionManager

public class RangeCompletionManager
extends java.lang.Object
implements ICompletionManager


Constructor Summary
RangeCompletionManager()
           
 
Method Summary
 java.util.Set filterValidResources(com.hp.hpl.jena.rdf.model.Statement s, java.util.Set lexicallyMatchingResources)
          Removes those resources from the list of suggestions that are invalid to insert at the given context.
 boolean isSuitable(com.hp.hpl.jena.rdf.model.Statement s)
          Checks whether this completion manager can handle completing values in the given Statement context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeCompletionManager

public RangeCompletionManager()
Method Detail

filterValidResources

public java.util.Set filterValidResources(com.hp.hpl.jena.rdf.model.Statement s,
                                          java.util.Set lexicallyMatchingResources)
Description copied from interface: ICompletionManager
Removes those resources from the list of suggestions that are invalid to insert at the given context.

Specified by:
filterValidResources in interface ICompletionManager
Returns:
the valid resources (may be the same as the input Set)

isSuitable

public boolean isSuitable(com.hp.hpl.jena.rdf.model.Statement s)
Description copied from interface: ICompletionManager
Checks whether this completion manager can handle completing values in the given Statement context. For example, implementations would test whether the predicate is SWRL.body or the former object is a class etc. If the method returns true then the filter method will be invoked (and the method must be prepared to handle the input timely).

Specified by:
isSuitable in interface ICompletionManager
Parameters:
s - the Statement (may very well be an EmptyObjectStatement)
Returns:
true if this is able to handle the input
See Also:
EmptyObjectStatement