public class PropertyModelImpl extends java.lang.Object implements PropertyModel
| Constructor and Description |
|---|
PropertyModelImpl(BeanModel model,
java.lang.String name,
PropertyConduit conduit,
Messages messages) |
| Modifier and Type | Method and Description |
|---|---|
PropertyModel |
dataType(java.lang.String dataType)
Changes the data type for the property.
|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass)
Searches for the specified annotation, returning the matching annotation instance.
|
PropertyConduit |
getConduit()
Returns an object used to read or update the property.
|
java.lang.String |
getDataType()
Returns a logical name for the type of UI needed to view or edit the property.
|
java.lang.String |
getId()
Returns the id used to access other resources (this is based on the property name, but with any excess
punctuation stripped out).
|
java.lang.String |
getLabel()
Returns a user-presentable label for the property.
|
java.lang.String |
getPropertyName()
Returns the name of the property (which may, in fact, be a property expression).
|
java.lang.Class |
getPropertyType()
Returns the type of the property.
|
boolean |
isSortable()
Returns true if the property can be used for sorting.
|
PropertyModel |
label(java.lang.String label)
Changes the label for the property to the provided value.
|
BeanModel |
model()
Returns the containing model, often used for "fluent" construction of the model.
|
PropertyModel |
sortable(boolean sortable)
Updates sortable and returns the model for further changes.
|
public PropertyModelImpl(BeanModel model, java.lang.String name, PropertyConduit conduit, Messages messages)
public java.lang.String getId()
PropertyModelgetId in interface PropertyModelpublic java.lang.Class getPropertyType()
PropertyModelgetPropertyType in interface PropertyModelpublic PropertyConduit getConduit()
PropertyModelgetConduit in interface PropertyModelpublic PropertyModel label(java.lang.String label)
PropertyModellabel in interface PropertyModellabel - new label for propertypublic java.lang.String getLabel()
PropertyModelgetLabel in interface PropertyModelpublic java.lang.String getPropertyName()
PropertyModelgetPropertyName in interface PropertyModelpublic BeanModel model()
PropertyModelmodel in interface PropertyModelpublic PropertyModel dataType(java.lang.String dataType)
PropertyModeldataType in interface PropertyModelpublic java.lang.String getDataType()
PropertyModelgetDataType in interface PropertyModelpublic boolean isSortable()
PropertyModelisSortable in interface PropertyModelpublic PropertyModel sortable(boolean sortable)
PropertyModelsortable in interface PropertyModelpublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
AnnotationProvidergetAnnotation in interface AnnotationProviderannotationClass - used to select the annotation to return${project.version} - Copyright © 2003-2015 The Apache Software Foundation.