Class PropertyMetaData
- java.lang.Object
-
- net.officefloor.web.value.retrieve.PropertyMetaData
-
public class PropertyMetaData extends java.lang.ObjectMeta-data for the property.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description PropertyMetaData(java.lang.String propertyName, java.lang.reflect.Method typeMethod, PropertyMetaData[] properties)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.MethodgetMethod(java.lang.Class<?> type)Obtains theMethod.PropertyMetaData[]getProperties()Obtains the Properties on the resulting property object.java.lang.StringgetPropertyName()Obtains the property name.<A> AgetValueAnnotation(java.lang.Class<A> annotationType)Obtains the valueAnnotation.java.lang.Class<?>getValueType()Obtains the typeMethod.
-
-
-
Constructor Detail
-
PropertyMetaData
public PropertyMetaData(java.lang.String propertyName, java.lang.reflect.Method typeMethod, PropertyMetaData[] properties)Initiate.- Parameters:
propertyName- Property name.typeMethod-Methodfor the type.properties- Properties on the resulting property object.
-
-
Method Detail
-
getPropertyName
public java.lang.String getPropertyName()
Obtains the property name.- Returns:
- Property name.
-
getValueType
public java.lang.Class<?> getValueType()
Obtains the type
Method.This is the
Methodbase on the type and may be abstract.- Returns:
- Type
Method.
-
getValueAnnotation
public <A> A getValueAnnotation(java.lang.Class<A> annotationType)
Obtains the value
Annotation.- Type Parameters:
A-Annotationtype.- Parameters:
annotationType-Annotation.- Returns:
Annotationornull.
-
getMethod
public java.lang.reflect.Method getMethod(java.lang.Class<?> type) throws java.lang.ExceptionObtains theMethod.- Parameters:
type- Type to obtain theMethod.- Returns:
Method.- Throws:
java.lang.Exception- If fails to obtain theMethod.
-
getProperties
public PropertyMetaData[] getProperties()
Obtains the Properties on the resulting property object.- Returns:
- Properties on the resulting property object.
-
-