org.dmg.pmml.HasFieldReference Maven / Gradle / Ivy
/*
* 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);
}
}