com.hp.hpl.jena.ontology
Class OntTools.PredicatesFilter

java.lang.Object
  extended by com.hp.hpl.jena.util.iterator.Filter<Statement>
      extended by com.hp.hpl.jena.ontology.OntTools.PredicatesFilter
Enclosing class:
OntTools

public static class OntTools.PredicatesFilter
extends com.hp.hpl.jena.util.iterator.Filter<Statement>

A filter which accepts statements whose predicate matches one of a collection of predicates held by the filter object.


Field Summary
 Collection<Property> m_preds
           
 
Fields inherited from class com.hp.hpl.jena.util.iterator.Filter
any
 
Constructor Summary
OntTools.PredicatesFilter(Collection<Property> preds)
          Accept statements with any predicate from preds
OntTools.PredicatesFilter(Property pred)
          Accept statements with predicate pred
OntTools.PredicatesFilter(Property[] preds)
          Accept statements with any predicate from preds
 
Method Summary
 boolean accept(Statement s)
           
 
Methods inherited from class com.hp.hpl.jena.util.iterator.Filter
and, any, filterKeep, isAny
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_preds

public Collection<Property> m_preds
Constructor Detail

OntTools.PredicatesFilter

public OntTools.PredicatesFilter(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

Method Detail

accept

public boolean accept(Statement s)
Specified by:
accept in class com.hp.hpl.jena.util.iterator.Filter<Statement>


Licenced under the Apache License, Version 2.0