public interface Property
extends java.io.Serializable
Modifier and Type | Interface and Description |
---|---|
static interface |
Property.Builder
Builds a Property instance
|
static interface |
Property.ValueProvider
Provides a single value
|
Modifier and Type | Field and Description |
---|---|
static PropertyValue<java.lang.Integer> |
BIG_DECIMAL_ROUNDING_MODE
Specifies the rounding mode used for BigDecimal property values
Value type: Integer Default value: BigDecimal.ROUND_HALF_EVEN |
static PropertyValue<java.lang.String> |
DATE_FORMAT
The date format pattern to use when showing date values in tables and when creating default date input fields
Value type: String Default value: dd-MM-yyyy |
static int |
DEFAULT_FOREIGN_KEY_FETCH_DEPTH |
static int |
DEFAULT_MAXIMUM_FRACTION_DIGITS |
static PropertyValue<java.lang.Integer> |
FOREIGN_KEY_FETCH_DEPTH
Specifies the default foreign key fetch depth
Value type: Integer Default value: 1 |
static PropertyValue<java.lang.Integer> |
MAXIMUM_FRACTION_DIGITS
Specifies the default maximum number of fraction digits for double property values
Note that values are rounded when set. Value type: Integer Default value: 10 |
static PropertyValue<java.lang.String> |
TIME_FORMAT
The date format pattern to use when showing time values in tables and when creating default time input fields
Value type: String Default value: HH:mm |
static PropertyValue<java.lang.String> |
TIMESTAMP_FORMAT
The date format pattern to use when showing timestamp values in tables and when creating default timestamp input fields
Value type: String Default value: dd-MM-yyyy HH:mm |
static PropertyValue<java.lang.String> |
WILDCARD_CHARACTER
Specifies the wildcard character used by the framework
Value type: String Default value: % |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBeanProperty() |
java.lang.String |
getCaption() |
java.lang.String |
getDateTimeFormatPattern() |
java.time.format.DateTimeFormatter |
getDateTimeFormatter() |
java.lang.Object |
getDefaultValue() |
java.lang.String |
getDescription() |
java.lang.String |
getEntityId() |
java.text.Format |
getFormat() |
java.lang.Double |
getMax() |
int |
getMaximumFractionDigits() |
int |
getMaxLength() |
java.lang.Double |
getMin() |
java.lang.Character |
getMnemonic() |
int |
getPreferredColumnWidth() |
java.lang.String |
getPropertyId()
The property identifier, should be unique within an Entity.
|
int |
getType() |
java.lang.Class |
getTypeClass() |
boolean |
hasDefaultValue() |
boolean |
is(Property property) |
boolean |
is(java.lang.String propertyId) |
boolean |
isBigDecimal() |
boolean |
isBoolean() |
boolean |
isCharacter() |
boolean |
isDate() |
boolean |
isDecimal() |
boolean |
isDouble() |
boolean |
isHidden() |
boolean |
isInteger() |
boolean |
isLong() |
boolean |
isNullable() |
boolean |
isNumerical() |
boolean |
isReadOnly()
Specifies whether or not this attribute is read only
|
boolean |
isString() |
boolean |
isTemporal() |
boolean |
isTime() |
boolean |
isTimestamp() |
boolean |
isType(int type) |
void |
validateType(java.lang.Object value) |
static final int DEFAULT_MAXIMUM_FRACTION_DIGITS
static final int DEFAULT_FOREIGN_KEY_FETCH_DEPTH
static final PropertyValue<java.lang.Integer> MAXIMUM_FRACTION_DIGITS
static final PropertyValue<java.lang.Integer> BIG_DECIMAL_ROUNDING_MODE
MAXIMUM_FRACTION_DIGITS
static final PropertyValue<java.lang.String> TIME_FORMAT
static final PropertyValue<java.lang.String> TIMESTAMP_FORMAT
static final PropertyValue<java.lang.String> DATE_FORMAT
static final PropertyValue<java.lang.Integer> FOREIGN_KEY_FETCH_DEPTH
static final PropertyValue<java.lang.String> WILDCARD_CHARACTER
java.lang.String getEntityId()
java.lang.String getPropertyId()
java.lang.String getCaption()
java.lang.String getDescription()
java.lang.Class getTypeClass()
java.lang.String getBeanProperty()
void validateType(java.lang.Object value)
value
- the value to validatejava.lang.IllegalArgumentException
- in case value
is of a type incompatible with this attributeboolean is(java.lang.String propertyId)
propertyId
- the property IDboolean is(Property property)
property
- the propertyint getType()
Types
) of the value of this propertyboolean isType(int type)
type
- the type to check (Types
)boolean isNumerical()
boolean isTemporal()
boolean isDate()
boolean isTimestamp()
boolean isTime()
boolean isCharacter()
boolean isString()
boolean isLong()
boolean isInteger()
boolean isDouble()
boolean isBigDecimal()
boolean isDecimal()
boolean isBoolean()
boolean hasDefaultValue()
java.lang.Object getDefaultValue()
hasDefaultValue()
boolean isHidden()
java.lang.Double getMax()
java.lang.Double getMin()
int getMaximumFractionDigits()
int getPreferredColumnWidth()
boolean isNullable()
int getMaxLength()
java.lang.Character getMnemonic()
java.text.Format getFormat()
java.lang.String getDateTimeFormatPattern()
java.time.format.DateTimeFormatter getDateTimeFormatter()
boolean isReadOnly()