SourceCriteriaAux.java from Kneobase at Krugle
Show SourceCriteriaAux.java syntax highlighted
/*
* Created on 05-abr-2005
*
*/
package com.kneobase.driver;
import java.util.Collection;
import com.kneobase.KneobaseException;
import com.kneobase.driver.content.A_SourceCriteria;
import com.kneobase.driver.content.I_ContentSource;
/**
* @author Ernesto De Santis (ernesto.desantis@colaborativa.net)
*
*/
public class SourceCriteriaAux extends A_SourceCriteria {
private Collection contents;
private boolean throwExceptionInIterator = false;
public Collection getCompositeContents(I_ContentSource contentSource)
throws KneobaseException {
if(throwExceptionInIterator)
throw new KneobaseException("exception");
return contents;
}
public void setContents(Collection collection) {
contents = collection;
}
public void setThrowExceptionInIterator(boolean b) {
throwExceptionInIterator = b;
}
}
See more files for this project here