Class PropertyMetaData
- java.lang.Object
-
- net.officefloor.web.value.retrieve.PropertyMetaData
-
public class PropertyMetaData extends java.lang.Object
Meta-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.Method
getMethod(java.lang.Class<?> type)
Obtains theMethod
.PropertyMetaData[]
getProperties()
Obtains the Properties on the resulting property object.java.lang.String
getPropertyName()
Obtains the property name.<A> A
getValueAnnotation(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
-Method
for 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
Method
base 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
-Annotation
type.- Parameters:
annotationType
-Annotation
.- Returns:
Annotation
ornull
.
-
getMethod
public java.lang.reflect.Method getMethod(java.lang.Class<?> type) throws java.lang.Exception
Obtains 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.
-
-