Package org.cyclos.impl.utils.validation
Class CustomFieldPropertyAccess
- java.lang.Object
-
- org.cyclos.impl.utils.validation.CustomFieldPropertyAccess
-
- All Implemented Interfaces:
PropertyAccess
public class CustomFieldPropertyAccess extends Object implements PropertyAccess
APropertyAccessstrategy for custom fields
-
-
Constructor Summary
Constructors Constructor Description CustomFieldPropertyAccess(CustomField<?,?,?> customField, String valuesProperty, CustomFieldValueHandler customFieldValueHandler, boolean sanitize)CustomFieldPropertyAccess(CustomField<?,?,?> customField, CustomFieldValueHandler customFieldValueHandler, boolean sanitize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICustomFieldValue<?,?,?,?>findCustomValue(Object object)Returns the custom field value for this propertyObjectget(Object object)Returns the property value for a given objectICustomFieldgetIdentifier()Returns the identifier for this property accessStringgetPropertyName()Returns the internal name that should be considered the property name or id
-
-
-
Constructor Detail
-
CustomFieldPropertyAccess
public CustomFieldPropertyAccess(CustomField<?,?,?> customField, CustomFieldValueHandler customFieldValueHandler, boolean sanitize)
-
CustomFieldPropertyAccess
public CustomFieldPropertyAccess(CustomField<?,?,?> customField, String valuesProperty, CustomFieldValueHandler customFieldValueHandler, boolean sanitize)
-
-
Method Detail
-
findCustomValue
public ICustomFieldValue<?,?,?,?> findCustomValue(Object object)
Returns the custom field value for this property
-
get
public Object get(Object object)
Description copied from interface:PropertyAccessReturns the property value for a given object- Specified by:
getin interfacePropertyAccess
-
getIdentifier
public ICustomField getIdentifier()
Description copied from interface:PropertyAccessReturns the identifier for this property access- Specified by:
getIdentifierin interfacePropertyAccess
-
getPropertyName
public String getPropertyName()
Description copied from interface:PropertyAccessReturns the internal name that should be considered the property name or id- Specified by:
getPropertyNamein interfacePropertyAccess
-
-