Package com.groiss.ml.field
Interface Field
- All Known Implementing Classes:
ProcessField
public interface Field
Specifies the data source for an
Attribute
. Such a source is used to retrieve the value for an
attribute or to store that value (but only if isAllowedAsOutputField()
returns true for the field instance).-
Method Summary
Modifier and TypeMethodDescription<T> Attribute<T>
AnAttribute
object which represents this field in a given context (e.g. when nominal there must exist some values)Returns the name of the field of the data source.A human readable string representing the name of the field of the data sourcedefault String
A string of form fieldname|sourceReturns the name of the class of the data source.A human readable string representing the class of the data sourcedefault boolean
Returns true if this field is allowed as output within in a given context
-
Method Details
-
getFieldName
String getFieldName()Returns the name of the field of the data source.- Returns:
- the field which is to consider
-
getFieldNamePretty
String getFieldNamePretty()A human readable string representing the name of the field of the data source- Returns:
- a String representing the field name as it should be displayed
-
getSource
String getSource()Returns the name of the class of the data source.- Returns:
- a class name which indicates where to assign the field to
-
getSourcePretty
String getSourcePretty()A human readable string representing the class of the data source- Returns:
- a String representing the source as it should be displayed
-
getAttribute
AnAttribute
object which represents this field in a given context (e.g. when nominal there must exist some values)- Returns:
- the
Attribute
-
getFullFieldName
A string of form fieldname|source- Returns:
- a string of form fieldname|source
-
isAllowedAsOutputField
default boolean isAllowedAsOutputField()Returns true if this field is allowed as output within in a given context- Returns:
- true is usable as output field
-