|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.bind.v2.model.impl.GetterSetterPropertySeed<TypeT,ClassDeclT,FieldT,MethodT>
class GetterSetterPropertySeed<TypeT,ClassDeclT,FieldT,MethodT>
PropertyInfo
implementation backed by a getter and a setter.
We allow the getter or setter to be null, in which case the bean
can only participate in unmarshalling (or marshalling)
Field Summary | |
---|---|
protected MethodT |
getter
|
protected MethodT |
setter
|
Constructor Summary | |
---|---|
GetterSetterPropertySeed(ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent,
MethodT getter,
MethodT setter)
|
Method Summary | ||
---|---|---|
Location |
getLocation()
Gets the location object that this object points to. |
|
String |
getName()
The name of the property is a spec defined concept --- although it doesn't do so explicitly in anywhere. |
|
TypeT |
getRawType()
Gets the actual data type of the field. |
|
Locatable |
getUpstream()
Use the enclosing class as the upsream Location . |
|
boolean |
hasAnnotation(Class<? extends Annotation> annotationType)
Returns true if the property has the specified annotation. |
|
|
readAnnotation(Class<A> annotation)
Gets the value of the specified annotation from the given property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final MethodT getter
protected final MethodT setter
Constructor Detail |
---|
GetterSetterPropertySeed(ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent, MethodT getter, MethodT setter)
Method Detail |
---|
public TypeT getRawType()
PropertySeed
The data of the property is stored by using this type.
The difference between the RuntimePropertyInfo.getIndividualType()
and this method is clear when the property is a multi-value property.
The RuntimePropertyInfo.getIndividualType()
method returns the type of the item,
but this method returns the actual collection type.
getRawType
in interface PropertySeed<TypeT,ClassDeclT,FieldT,MethodT>
public <A extends Annotation> A readAnnotation(Class<A> annotation)
AnnotationSource
When this method is used for a property that consists of a getter and setter, it returns the annotation on either of those methods. If both methods have the same annotation, it is an error.
readAnnotation
in interface AnnotationSource
public boolean hasAnnotation(Class<? extends Annotation> annotationType)
AnnotationSource
Short for readAnnotation(annotationType)!=null
,
but this method is typically faster.
hasAnnotation
in interface AnnotationSource
public String getName()
PropertySeed
getName
in interface PropertySeed<TypeT,ClassDeclT,FieldT,MethodT>
PropertyInfo.getName()
public Locatable getUpstream()
Location
.
getUpstream
in interface Locatable
public Location getLocation()
Locatable
getLocation
in interface Locatable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |