|
||||||||||
| 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.RuntimeClassInfoImpl.RuntimePropertySeed
static final class RuntimeClassInfoImpl.RuntimePropertySeed
| Constructor Summary | |
|---|---|
RuntimeClassInfoImpl.RuntimePropertySeed(PropertySeed<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method> core,
Accessor acc)
|
|
| Method Summary | ||
|---|---|---|
Accessor |
getAccessor()
|
|
Location |
getLocation()
Gets the location object that this object points to. |
|
java.lang.String |
getName()
The name of the property is a spec defined concept --- although it doesn't do so explicitly in anywhere. |
|
java.lang.reflect.Type |
getRawType()
Gets the actual data type of the field. |
|
Locatable |
getUpstream()
Gets the upstream Location information. |
|
boolean |
hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Returns true if the property has the specified annotation. |
|
|
readAnnotation(java.lang.Class<A> annotationType)
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 |
| Constructor Detail |
|---|
public RuntimeClassInfoImpl.RuntimePropertySeed(PropertySeed<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method> core,
Accessor acc)
| Method Detail |
|---|
public java.lang.String getName()
PropertySeed
getName in interface PropertySeed<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>PropertyInfo.getName()public <A extends java.lang.annotation.Annotation> A readAnnotation(java.lang.Class<A> annotationType)
AnnotationSourceWhen 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 AnnotationSourcepublic boolean hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotationSource
Short for readAnnotation(annotationType)!=null,
but this method is typically faster.
hasAnnotation in interface AnnotationSourcepublic java.lang.reflect.Type getRawType()
PropertySeedThe 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<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>public Location getLocation()
Locatable
getLocation in interface Locatablepublic Locatable getUpstream()
LocatableLocation information.
getUpstream in interface Locatablepublic Accessor getAccessor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||