org.dmg.pmml.HasFieldReference Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pmml-model-gwt Show documentation
Show all versions of pmml-model-gwt Show documentation
JPMML GWT compatible class model
/*
* Copyright (c) 2017 Villu Ruusmann
*/
package org.dmg.pmml;
/**
*
* A marker interface for PMML elements that reference a field by name.
*
*/
public interface HasFieldReference> {
default
String requireField(){
throw new UnsupportedOperationException();
}
String getField();
E setField(String field);
default
E setField(Field> field){
return setField(field != null ? field.requireName() : null);
}
}