Class TableColumn
- java.lang.Object
-
- org.faktorips.runtime.model.type.ModelElement
-
- org.faktorips.runtime.model.table.TableColumn
-
public class TableColumn extends ModelElement
Description of one column of a runtime table.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTableColumn(TableStructure tableStructure, java.lang.String name, java.lang.Class<?> datatype, java.lang.reflect.Method getter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.util.LinkedHashMap<java.lang.String,TableColumn>createModelsFrom(TableStructure tableStructure, java.lang.Class<? extends ITable<?>> tableObjectClass, java.lang.Class<?> tableRowClass)java.lang.Class<?>getDatatype()protected java.lang.reflect.MethodgetGetterMethod()protected MessagesHelpergetMessageHelper()protected java.lang.StringgetMessageKey(DocumentationKind messageType)java.lang.ObjectgetValue(java.lang.Object row)-
Methods inherited from class org.faktorips.runtime.model.type.ModelElement
createMessageHelper, getDeprecation, getDescription, getDocumentation, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getName, getRelevantProductObject, invokeField, invokeMethod, isDeprecated, toString
-
-
-
-
Constructor Detail
-
TableColumn
protected TableColumn(TableStructure tableStructure, java.lang.String name, java.lang.Class<?> datatype, java.lang.reflect.Method getter)
-
-
Method Detail
-
getDatatype
public java.lang.Class<?> getDatatype()
- Returns:
- the class for this column's values
-
getGetterMethod
protected java.lang.reflect.Method getGetterMethod()
-
getValue
public java.lang.Object getValue(java.lang.Object row)
- Returns:
- the value of this column in the given row
-
createModelsFrom
protected static java.util.LinkedHashMap<java.lang.String,TableColumn> createModelsFrom(TableStructure tableStructure, java.lang.Class<? extends ITable<?>> tableObjectClass, java.lang.Class<?> tableRowClass)
-
getMessageKey
protected java.lang.String getMessageKey(DocumentationKind messageType)
- Specified by:
getMessageKeyin classModelElement
-
getMessageHelper
protected MessagesHelper getMessageHelper()
- Specified by:
getMessageHelperin classModelElement
-
-