public class EntityField
extends java.lang.Object
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)
Deprecated.
As of Judson (7.1.x)
|
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)
Deprecated.
As of Judson (7.1.x)
|
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,
java.util.function.Function<java.lang.Object,java.lang.String> filterableFieldValueFunction)
Creates a new
EntityField with separate functions for converting
the entity field's name to a sortable and filterable field name for a
locale. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilterableName(java.util.Locale locale)
Returns the entity field's filterable name.
|
java.lang.String |
getFilterableValue(java.lang.Object fieldValue)
Returns the entity field's filterable value.
|
java.lang.String |
getName()
Returns the entity field's name.
|
java.lang.String |
getSortableName(java.util.Locale locale)
Returns the entity field's sortable name for a locale.
|
EntityField.Type |
getType()
Returns the entity field's type.
|
java.lang.String |
toString() |
@Deprecated public EntityField(java.lang.String name, EntityField.Type type, java.util.function.Function<java.util.Locale,java.lang.String> filterableAndSortableFieldNameFunction)
EntityField
with a Function
to convert the
entity field's name to a filterable/sortable field name for a locale.name
- the entity field's nametype
- the typefilterableAndSortableFieldNameFunction
- the Function
@Deprecated public 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
with a Function
to convert the
entity field's name to a filterable/sortable field name for a locale.name
- the entity field's nametype
- the typesortableFieldNameFunction
- the sortable field name Function
filterableFieldNameFunction
- the filterable field name Function
public 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, java.util.function.Function<java.lang.Object,java.lang.String> filterableFieldValueFunction)
EntityField
with separate functions for converting
the entity field's name to a sortable and filterable field name for a
locale.name
- the entity field's nametype
- the typesortableFieldNameFunction
- the sortable field name Function
filterableFieldNameFunction
- the filterable field name Function
filterableFieldValueFunction
- the filterable field value Function
public java.lang.String getFilterableName(java.util.Locale locale)
locale
- the localepublic java.lang.String getFilterableValue(java.lang.Object fieldValue)
fieldValue
- the field valuepublic java.lang.String getName()
public java.lang.String getSortableName(java.util.Locale locale)
locale
- the localepublic EntityField.Type getType()
public java.lang.String toString()
toString
in class java.lang.Object