Class 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 the Method.
      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 value Annotation.
      java.lang.Class<?> getValueType()
      Obtains the type Method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 or null.
      • getMethod

        public java.lang.reflect.Method getMethod​(java.lang.Class<?> type)
                                           throws java.lang.Exception
        Obtains the Method.
        Parameters:
        type - Type to obtain the Method.
        Returns:
        Method.
        Throws:
        java.lang.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.