Class PropertyMetadata
java.lang.Object
com.vaadin.featurepack.data.jpacontainer.metadata.PropertyMetadata
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PersistentPropertyMetadata
This class represents the metadata of a property. If the property is
transient, this is an ordinary JavaBean property consisting of a getter
method and optionally a setter method. If the property is persistent,
additional information is provided by the
PersistentPropertyMetadata
interface.- Since:
- 1.0
- Author:
- Petter Holmström (Vaadin Ltd)
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean<T extends Annotation>
TgetAnnotation(Class<T> annotationClass) Gets the annotation of the specified annotation class, if available.The annotations of the property, if any.getName()The name of the property.Class<?> getType()The type of the property.inthashCode()booleanReturns whether the property is writable or not.
-
Field Details
-
getterName
-
setterName
-
getterDeclaringClass
-
setterDeclaringClass
-
-
Method Details
-
readResolve
- Throws:
ObjectStreamException
-
getName
The name of the property. -
getType
The type of the property. -
getAnnotations
The annotations of the property, if any.- See Also:
-
getAnnotation
Gets the annotation of the specified annotation class, if available.- Parameters:
annotationClass- the annotation class.- Returns:
- the annotation, or null if not found.
- See Also:
-
isWritable
public boolean isWritable()Returns whether the property is writable or not. Transient properties (i.e. JavaBean properties) are only writable if they have a setter method.- Returns:
- true if the property is writable, false if it is not.
-
getPropertyKind
-
equals
-
hashCode
public int hashCode()
-