Package com.googlecode.objectify.impl
Class AbstractProperty
- java.lang.Object
-
- com.googlecode.objectify.impl.AbstractProperty
-
- All Implemented Interfaces:
Property
- Direct Known Subclasses:
FieldProperty
,MethodProperty
public abstract class AbstractProperty extends Object implements Property
Some common behavior of properties
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A extends Annotation>
AgetAnnotation(Class<A> annoClass)
Get an annotation on this type, or null if there is no annotation of that typeAnnotation[]
getAnnotations()
Enumerate the annotationsString[]
getLoadNames()
Get all the names associated with this property (ie, due to @AlsoLoad).String
getName()
Get the primary name associated with this property
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Property
Get the primary name associated with this property
-
getLoadNames
public String[] getLoadNames()
Description copied from interface:Property
Get all the names associated with this property (ie, due to @AlsoLoad). Includes the primary name unless it is @IgnoreLoad.- Specified by:
getLoadNames
in interfaceProperty
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> annoClass)
Description copied from interface:Property
Get an annotation on this type, or null if there is no annotation of that type- Specified by:
getAnnotation
in interfaceProperty
-
getAnnotations
public Annotation[] getAnnotations()
Description copied from interface:Property
Enumerate the annotations- Specified by:
getAnnotations
in interfaceProperty
-
-