A Property represents a single member variable of a class, possibly including its
accessor methods (getX, setX). The name stored in this class is the actual name of the property
as given for the class, not an alias.
Objects of this class have a total ordering which defaults to ordering based on the name of the property.
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(Property
the object to be compared. o)Implements java. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public abstract Object | |
| public abstract Class | |
| public abstract < class of the annotation A extends Annotation> A | Returns: property's annotation for the given type ornull if it's not presentthe type of the annotation to be returned annotationType)Returns property's annotation for the given type or |
| public abstract List | Returns: the annotations that are present on this property or emptyList if there're no
annotationsReturns the annotations that are present on this property or empty |
| public String | |
| public Class | |
| public int | |
| public boolean | |
| public boolean | |
| public abstract void | |
| public String |
| name | back to summary |
|---|---|
| private final String name | |
| type | back to summary |
|---|---|
| private final Class<?> type | |
| Property | back to summary |
|---|---|
| public Property(String name, Class<?> type) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Property o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| public abstract Object get(Object object) | |
| getActualTypeArguments | back to summary |
|---|---|
| public abstract Class | |
| getAnnotation | back to summary |
|---|---|
| public abstract <A extends Annotation> A getAnnotation(Class<A> annotationType) Returns property's annotation for the given type or
| |
| getAnnotations | back to summary |
|---|---|
| public abstract List Returns the annotations that are present on this property or empty
| |
| getName | back to summary |
|---|---|
| public String getName() | |
| getType | back to summary |
|---|---|
| public Class | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isReadable | back to summary |
|---|---|
| public boolean isReadable() | |
| isWritable | back to summary |
|---|---|
| public boolean isWritable() | |
| set | back to summary |
|---|---|
| public abstract void set(Object object, Object value) throws Exception | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |