public interface PropertyMetaModel<T> extends IValueAccessor<T>
| Modifier and Type | Field and Description |
|---|---|
static PropertyMetaValidator[] |
NO_VALIDATORS |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getActualType()
Returns the actual type of the property's value.
|
<A> A |
getAnnotation(Class<A> annclass)
If the property has some kind of "annotation" (which in here does not need to be a Java annotation, but
which can also be some other java class containing data) this returns it.
|
List<Object> |
getAnnotations()
If the property has some kind of "annotations" (which in here does not need to be a Java annotation, but
which can also be some other java class containing data) this returns all of them.
|
ClassMetaModel |
getClassModel()
The ClassModel that this property is a property of.
|
String[] |
getColumnNames()
Return the column name(s) for this property if this is a persisted column in a persistent class.
|
Class<? extends IComboDataSet<?>> |
getComboDataSet()
If this should be represented by a combo this can be set to represent the default combo dataset.
|
List<DisplayPropertyMetaModel> |
getComboDisplayProperties()
For a relation, this is the list of properties that should be shown.
|
Class<? extends ILabelStringRenderer<?>> |
getComboLabelRenderer()
When this relation-property is presented as a single field this can contain a class to render
that field as a string.
|
Class<? extends INodeContentRenderer<?>> |
getComboNodeRenderer()
When set this renderer should be used to render the nodes in the combobox.
|
String |
getComponentTypeHint()
When present this gives a hint to the component factories to help with choosing a
proper component to select a single record of the type specified by this
property.
|
PropertyControlFactory |
getControlFactory()
If a specific control factory is to be used to create controls for this item this returns that factory.
|
IConverter<T> |
getConverter()
Returns the user-specified converter to use when converting this property's value to and from string.
|
String |
getDefaultHint()
Returns the default hint text (which pops up when the mouse is held over the control that inputs this
item).
|
String |
getDefaultLabel()
Return any default label (the text to use before the control that inputs this property) for this
property.
|
int |
getDisplayLength()
Returns the #chars to be displayed by default for this item.
|
String |
getDomainValueLabel(Locale loc,
Object val)
Retrieves the properly localized string representing a domain value in a type which has a fixed set
of domain values (like enum or boolean).
|
Object[] |
getDomainValues()
If the type for this property has a fixed set of domain values (like boolean or enum) this contains
all possible values for this property.
|
Type |
getGenericActualType()
The abomination that is Java Generics requires a separate dysfunctional type system to represent
generic typing, at the few places it is available.
|
int |
getLength()
Return the defined length for the item PROVIDED IT WAS SET - THIS SUFFERS FROM AN UTTER FUCKUP IN THE JPA "STANDARD".
|
List<SearchPropertyMetaModel> |
getLookupFieldKeySearchProperties()
When used in a
LookupInput field, this fields are used to create the keyword search inputs. |
List<SearchPropertyMetaModel> |
getLookupFieldSearchProperties()
When used in a
LookupInput field, this fields are used to create the search inputs. |
List<DisplayPropertyMetaModel> |
getLookupSelectedProperties()
When this class is to be selected as a parent in an UP relation using an InputLookup
control this describes the properties to use to display the currently selected
record in the edit page.
|
Class<? extends INodeContentRenderer<?>> |
getLookupSelectedRenderer()
When this class is to be selected as a parent in an UP relation using an InputLookup
control this describes the renderer to use to display the currently selected
record in the edit page.
|
List<DisplayPropertyMetaModel> |
getLookupTableProperties()
When used in a
LookupInput field, this fields are used to show the result of a Search in the DataTable. |
String |
getName()
Returns the name of the property.
|
YesNoType |
getNowrap() |
NumericPresentation |
getNumericPresentation()
Used for numeric types, this returns how to present the number and defines the number's class, like
a monetary amount.
|
int |
getPrecision()
Return the specified precision of the numeric field.
|
IQueryManipulator<T> |
getQueryManipulator()
For Lookup and Combo fields, this can return a QueryManipulator instance that will alter the base
query for the thing to show.
|
YesNoType |
getReadOnly()
Reports whether a property is readonly.
|
String |
getRegexpUserString()
Use the string to use as the pattern indicator in regexp-validator error messages.
|
String |
getRegexpValidator()
Returns the regexp to use to validate input.
|
PropertyRelationType |
getRelationType()
Tells if this property represents some kind of database relation (a "parent" property referring to the master of this child record, or a property
representing the list of children).
|
int |
getScale()
For numeric types, this returns any defined scale.
|
SortableType |
getSortable()
Returns whether the property should be sortable when used in a default table, and defines
the initial sort direction of the property.
|
TemporalPresentationType |
getTemporal()
If this is defined as some Date type this further defines the domain (date only, date time etc).
|
PropertyMetaValidator[] |
getValidators()
Get all validators to run on this property's input after conversion.
|
ClassMetaModel |
getValueModel()
If applicable, the value type's class model.
|
boolean |
isPrimaryKey()
Returns T if we know this property to be the PK.
|
boolean |
isRequired()
Whether the property is defined as requiring a value.
|
boolean |
isTransient()
If marked as transient in the persistent class this returns true
|
isReadOnly, setValuegetValuestatic final PropertyMetaValidator[] NO_VALIDATORS
@Nonnull ClassMetaModel getClassModel()
@Nullable ClassMetaModel getValueModel()
@Nonnull Class<T> getActualType()
@Nullable Type getGenericActualType()
@Nonnull String getDefaultLabel()
@Nullable String getDefaultHint()
int getLength()
int getPrecision()
int getScale()
int getDisplayLength()
@Nonnull SortableType getSortable()
@Nullable IConverter<T> getConverter()
boolean isRequired()
boolean isPrimaryKey()
@Nonnull PropertyRelationType getRelationType()
@Nullable Object[] getDomainValues()
@Nullable String getDomainValueLabel(Locale loc, Object val)
loc - val - @Nonnull TemporalPresentationType getTemporal()
@Nonnull NumericPresentation getNumericPresentation()
@Nullable Class<? extends IComboDataSet<?>> getComboDataSet()
@Nullable Class<? extends ILabelStringRenderer<?>> getComboLabelRenderer()
@Nullable Class<? extends INodeContentRenderer<?>> getComboNodeRenderer()
@Nonnull List<DisplayPropertyMetaModel> getComboDisplayProperties()
@Nonnull YesNoType getReadOnly()
boolean isTransient()
@Nullable String getComponentTypeHint()
@Nullable Class<? extends INodeContentRenderer<?>> getLookupSelectedRenderer()
@Nonnull List<DisplayPropertyMetaModel> getLookupSelectedProperties()
@Nonnull List<DisplayPropertyMetaModel> getLookupTableProperties()
LookupInput field, this fields are used to show the result of a Search in the DataTable.@Nonnull List<SearchPropertyMetaModel> getLookupFieldSearchProperties()
LookupInput field, this fields are used to create the search inputs.@Nonnull List<SearchPropertyMetaModel> getLookupFieldKeySearchProperties()
LookupInput field, this fields are used to create the keyword search inputs.@Nonnull PropertyMetaValidator[] getValidators()
@Nullable String getRegexpValidator()
@Nullable String getRegexpUserString()
@Nullable PropertyControlFactory getControlFactory()
@Nullable <A> A getAnnotation(@Nonnull Class<A> annclass)
A - annclass - @Nonnull List<Object> getAnnotations()
String[] getColumnNames()
@Nullable IQueryManipulator<T> getQueryManipulator()
Copyright © 2017 etc.to. All rights reserved.