org.topbraid.strings.classexpressions.completion
Class ClassExpressionsCompletionManager
java.lang.Object
org.topbraid.strings.classexpressions.completion.ClassExpressionsCompletionManager
- All Implemented Interfaces:
- ICompletionManager
public class ClassExpressionsCompletionManager
- extends java.lang.Object
- implements ICompletionManager
|
Method Summary |
java.util.Set<com.hp.hpl.jena.rdf.model.Resource> |
filterValidResources(com.hp.hpl.jena.rdf.model.Statement s,
java.util.Set<com.hp.hpl.jena.rdf.model.Resource> resources)
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 statement)
Checks whether this completion manager can handle completing values in the
given Statement context. |
static boolean |
isSuitableS(com.hp.hpl.jena.rdf.model.Statement statement)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassExpressionsCompletionManager
public ClassExpressionsCompletionManager()
filterValidResources
public java.util.Set<com.hp.hpl.jena.rdf.model.Resource> filterValidResources(com.hp.hpl.jena.rdf.model.Statement s,
java.util.Set<com.hp.hpl.jena.rdf.model.Resource> resources)
- 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 statement)
- 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:
statement - the Statement (may very well be an EmptyObjectStatement)
- Returns:
- true if this is able to handle the input
- See Also:
EmptyObjectStatement
isSuitableS
public static boolean isSuitableS(com.hp.hpl.jena.rdf.model.Statement statement)