org.dmg.pmml.HasId Maven / Gradle / Ivy
/*
* Copyright (c) 2013 KNIME.com AG, Zurich, Switzerland
*/
package org.dmg.pmml;
/**
*
* A marker interface for PMML elements that specify the id
attribute.
*
*
*
* In a collection of {@link HasId} elements, all non-null
identifier values must be unique.
* However, there may be multiple {@link HasId} elements with null
identifier values.
*
*
* @see Indexable
*/
public interface HasId, V> {
default
boolean hasId(){
V id = getId();
return (id != null);
}
/**
* @return The value of the id
attribute. Could be null
.
*/
V getId();
E setId(V id);
}