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)
| Modifier and Type | Field and Description |
|---|---|
| protected final MethodT | |
| private ClassInfoImpl | |
| protected final MethodT |
| Access | Constructor and Description |
|---|---|
| pack-priv | GetterSetterPropertySeed(ClassInfoImpl<TypeT, ClassDeclT, FieldT, MethodT> parent, MethodT getter, MethodT setter)
|
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public Location | getLocation()
Implements org. Gets the location object that this object points to. |
| public String | getName()
Implements org. The name of the property is a spec defined concept --- although it doesn't do so explicitly in anywhere. |
| private String | |
| public TypeT | getRawType()
Implements org. Gets the actual data type of the field. |
| public Locatable | getUpstream()
Implements org. Use the enclosing class as the upsream |
| public boolean | hasAnnotation(Class<? extends Annotation> annotationType)
Implements org. Returns true if the property has the specified annotation. |
| public <A extends Annotation> A | readAnnotation(Class<A> annotation)
Implements org. Gets the value of the specified annotation from the given property. |
| getter | back to summary |
|---|---|
| protected final MethodT getter | |
| parent | back to summary |
|---|---|
| private ClassInfoImpl<TypeT, ClassDeclT, FieldT, MethodT> parent | |
| setter | back to summary |
|---|---|
| protected final MethodT setter | |
| GetterSetterPropertySeed | back to summary |
|---|---|
| pack-priv GetterSetterPropertySeed(ClassInfoImpl<TypeT, ClassDeclT, FieldT, MethodT> parent, MethodT getter, MethodT setter) | |
| camelize | back to summary |
|---|---|
| private static String camelize(String s) | |
| getLocation | back to summary |
|---|---|
| public Location getLocation() Implements org. Doc from org. Gets the location object that this object points to. This operation could be inefficient and costly.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. The name of the property is a spec defined concept --- although it doesn't do so explicitly in anywhere.
| |
| getName | back to summary |
|---|---|
| private String getName(MethodT m) | |
| getRawType | back to summary |
|---|---|
| public TypeT getRawType() Implements org. Doc from org. Gets the actual data type of the field. The data of the property is stored by using this type.
The difference between the
| |
| getUpstream | back to summary |
|---|---|
| public Locatable getUpstream() Implements org. Use the enclosing class as the upsream
| |
| hasAnnotation | back to summary |
|---|---|
| public boolean hasAnnotation(Class<? extends Annotation> annotationType) Implements org. Doc from org. Returns true if the property has the specified annotation.
Short for
| |
| readAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A readAnnotation(Class<A> annotation) Implements org. Doc from org. Gets the value of the specified annotation from the given property. 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.
| |