Package com.aerospike.mapper.tools
Class PropertyDefinition
java.lang.Object
com.aerospike.mapper.tools.PropertyDefinition
public class PropertyDefinition extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PropertyDefinition.SetterParamType
-
Constructor Summary
Constructors Constructor Description PropertyDefinition(String name, IBaseAeroMapper mapper)
-
Method Summary
Modifier and Type Method Description Annotation[]
getAnnotations()
Type
getGenericType()
Method
getGetter()
Method
getSetter()
PropertyDefinition.SetterParamType
getSetterParamType()
Class<?>
getType()
Get the type of this property.TypeMapper
getTypeMapper()
void
setGetter(Method getter)
void
setSetter(Method setter)
void
validate(String className, ClassConfig config, boolean allowNoSetter)
Validate that this is a valid property
-
Constructor Details
-
PropertyDefinition
-
-
Method Details
-
getGetter
-
setGetter
-
getSetter
-
setSetter
-
getSetterParamType
-
getType
Get the type of this property. The getter and setter must agree on the property and this method is only valid after thevalidate
method has been called. -
getTypeMapper
-
getAnnotations
-
getGenericType
-
validate
Validate that this is a valid property
-