public class EntityField
extends java.lang.Object
EntityField
.Modifier and Type | Class and Description |
---|---|
static class |
EntityField.Type |
Constructor and Description |
---|
EntityField(java.lang.String name,
EntityField.Type type,
java.util.function.Function<java.util.Locale,java.lang.String> filterableAndSortableFieldNameFunction)
Creates a new
EntityField |
EntityField(java.lang.String name,
EntityField.Type type,
java.util.function.Function<java.util.Locale,java.lang.String> sortableFieldNameFunction,
java.util.function.Function<java.util.Locale,java.lang.String> filterableFieldNameFunction)
Creates a new
EntityField |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilterableName(java.util.Locale locale)
Returns the filterable name of the
EntityField |
java.lang.String |
getName()
Returns the name of the
EntityField |
java.lang.String |
getSortableName(java.util.Locale locale)
Returns the sortable name of the
EntityField |
EntityField.Type |
getType()
Returns the
EntityField.Type of the EntityField |
public EntityField(java.lang.String name, EntityField.Type type, java.util.function.Function<java.util.Locale,java.lang.String> filterableAndSortableFieldNameFunction)
EntityField
name
- - the name of the EntityFieldtype
- - the EntityField.Type
filterableAndSortableFieldNameFunction
- - the Function
to
convert the entity field name to a filterable/sortable field name
given a localepublic EntityField(java.lang.String name, EntityField.Type type, java.util.function.Function<java.util.Locale,java.lang.String> sortableFieldNameFunction, java.util.function.Function<java.util.Locale,java.lang.String> filterableFieldNameFunction)
EntityField
name
- - the name of the EntityFieldtype
- - the EntityField.Type
sortableFieldNameFunction
- - the Function
to convert the
entity field name to a sortable field name given a
localefilterableFieldNameFunction
- - the Function
to convert the
entity field name to a filterable field name given a
localepublic java.lang.String getFilterableName(java.util.Locale locale)
EntityField
locale
- EntityField
public java.lang.String getName()
EntityField
EntityField
public java.lang.String getSortableName(java.util.Locale locale)
EntityField
locale
- EntityField
public EntityField.Type getType()
EntityField.Type
of the EntityField
EntityField.Type