- All Implemented Interfaces:
Serializable,Comparable<PropertyMemberInfo>,Constable
Members of this enum define the way the corresponding property is subject to
the contracts regarding the canonical
Object methods like
Object.equals(Object), Object.hashCode() and
Object.toString() and the Serializable contract- Author:
- Oliver Wolff
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefines a default property contract, saying it is not transient and defines the Object-identity,Object.equals(Object),Object.hashCode()andObject.toString()Defines a property that is not transient, and is not part of the object-identity and should therefore be ignored in the methodsObject.equals(Object),Object.hashCode()Defines a transient property that is not part of the object-identity and should therefore be ignored in the methodsObject.equals(Object)and the serialization.The actual state can not be defined. -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyMemberInforesolveForBean(Class<?> beanType, String propertyName) ResolvesPropertyMemberInfofor a given property withMoreReflection.static PropertyMemberInfoReturns the enum constant of this class with the specified name.static PropertyMemberInfo[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Defines a default property contract, saying it is not transient and defines the Object-identity,Object.equals(Object),Object.hashCode()andObject.toString() -
NO_IDENTITY
Defines a property that is not transient, and is not part of the object-identity and should therefore be ignored in the methodsObject.equals(Object),Object.hashCode() -
TRANSIENT
Defines a transient property that is not part of the object-identity and should therefore be ignored in the methodsObject.equals(Object)and the serialization. -
UNDEFINED
The actual state can not be defined.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
resolveForBean
ResolvesPropertyMemberInfofor a given property withMoreReflection. This method can solely distinguish between the statesUNDEFINED,DEFAULTandTRANSIENT.NO_IDENTITYmust be defined from the caller if necessary;- Parameters:
beanType- to be checked, must not be nullpropertyName- to be checked, must not be null- Returns:
- the corresponding
PropertyReadWritefor a given property
-