public interface Resettable
A marker interface for Visitors that accrue state, and therefore should be reset to the initial (empty-) state when applying to multiple PMML elements.
Visitor visitor = ...;
Collection<PMMLElement> objects = ...;
for(PMMLElement object : objects){
if(visitor instanceof Resettable){
Resettable resettable = (Resettable)visitor;
resettable.reset();
}
visitor.applyTo(object);
}
| Modifier and Type | Method and Description |
|---|---|
void |
reset() |
Copyright © 2022. All rights reserved.