com.hp.hpl.jena.ontology
Class OntTools.PredicatesFilter
java.lang.Object
com.hp.hpl.jena.util.iterator.Filter<Statement>
com.hp.hpl.jena.ontology.OntTools.PredicatesFilter
- Enclosing class:
- OntTools
public static class OntTools.PredicatesFilter
- extends Filter<Statement>
A filter which accepts statements whose predicate matches one of a collection
of predicates held by the filter object.
Fields inherited from class com.hp.hpl.jena.util.iterator.Filter |
any |
Method Summary |
boolean |
accept(Statement s)
Answer true iff the object o is acceptable. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_preds
public java.util.Collection<Property> m_preds
OntTools.PredicatesFilter
public OntTools.PredicatesFilter(java.util.Collection<Property> preds)
- Accept statements with any predicate from
preds
OntTools.PredicatesFilter
public OntTools.PredicatesFilter(Property[] preds)
- Accept statements with any predicate from
preds
OntTools.PredicatesFilter
public OntTools.PredicatesFilter(Property pred)
- Accept statements with predicate
pred
accept
public boolean accept(Statement s)
- Description copied from class:
Filter
- Answer true iff the object
o
is acceptable. This method
may also throw an exception if the argument is of a wrong type; it
is not required to return false
in such a case.
- Specified by:
accept
in class Filter<Statement>
Copyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP