use of org.jpmml.evaluator.HasPMML in project openscoring by openscoring.
the class ModelRegistry method store.
public void store(Model model, OutputStream os) throws JAXBException {
Evaluator evaluator = model.getEvaluator();
if (evaluator instanceof HasPMML) {
HasPMML hasPMML = (HasPMML) evaluator;
PMML pmml = hasPMML.getPMML();
marshal(pmml, os);
}
}