Class PropertyMetaData

java.lang.Object
net.officefloor.web.value.retrieve.PropertyMetaData

public class PropertyMetaData extends Object
Meta-data for the property.
Author:
Daniel Sagenschneider
  • Constructor Details

    • PropertyMetaData

      public PropertyMetaData(String propertyName, Method typeMethod, PropertyMetaData[] properties)
      Initiate.
      Parameters:
      propertyName - Property name.
      typeMethod - Method for the type.
      properties - Properties on the resulting property object.
  • Method Details

    • getPropertyName

      public String getPropertyName()
      Obtains the property name.
      Returns:
      Property name.
    • getValueType

      public 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(Class<A> annotationType)

      Obtains the value Annotation.

      Type Parameters:
      A - Annotation type.
      Parameters:
      annotationType - Annotation.
      Returns:
      Annotation or null.
    • getMethod

      public Method getMethod(Class<?> type) throws Exception
      Obtains the Method.
      Parameters:
      type - Type to obtain the Method.
      Returns:
      Method.
      Throws:
      Exception - If fails to obtain the Method.
    • getProperties

      public PropertyMetaData[] getProperties()
      Obtains the Properties on the resulting property object.
      Returns:
      Properties on the resulting property object.