public class LiteralPropertyConduit extends PropertyConduitDelegate implements InternalPropertyConduit
| Constructor and Description |
|---|
LiteralPropertyConduit(TypeCoercer typeCoercer,
Class propertyType,
AnnotationProvider annotationProvider,
String description,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object instance)
Reads the property from the instance.
|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
Searches for the specified annotation, returning the matching annotation instance.
|
Type |
getPropertyGenericType()
Returns the generic type of the property
|
String |
getPropertyName()
Returns the name of the property read or updated by the conduit or null.
|
Class |
getPropertyType()
Returns the type of the property read or updated by the conduit.
|
void |
set(Object instance,
Object value)
Changes the current value of the property.
|
String |
toString() |
coerce, invert, rangepublic LiteralPropertyConduit(TypeCoercer typeCoercer, Class propertyType, AnnotationProvider annotationProvider, String description, Object value)
public Object get(Object instance)
PropertyConduitget in interface PropertyConduitinstance - object containing the propertypublic void set(Object instance, Object value)
PropertyConduitset in interface PropertyConduitinstance - object containing the propertyvalue - to change the property topublic Class getPropertyType()
PropertyConduitgetPropertyType in interface PropertyConduitpublic Type getPropertyGenericType()
PropertyConduit2getPropertyGenericType in interface PropertyConduit2Method.getGenericReturnType(),
Field.getGenericType()public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AnnotationProvidergetAnnotation in interface AnnotationProviderannotationClass - used to select the annotation to returnpublic String getPropertyName()
InternalPropertyConduitnull.getPropertyName in interface InternalPropertyConduitnull5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.