Class MetadataTargetImpl


  • public class MetadataTargetImpl
    extends MetadataTarget
    Version:
    $Id$
    Author:
    Jacob Hookom
    • Method Detail

      • isTargetInstanceOf

        public boolean isTargetInstanceOf​(Class type)
        Description copied from class: MetadataTarget

        Return true if the target for this metadata element is an instance of the argument type.

        Specified by:
        isTargetInstanceOf in class MetadataTarget
        Parameters:
        type - the Class to test for the instance of.
        Returns:
        true if the type is a target instance, false otherwise.
      • getPropertyType

        public Class getPropertyType​(String name)
        Description copied from class: MetadataTarget

        Return a Class for the property with name given by argument name.

        Specified by:
        getPropertyType in class MetadataTarget
        Parameters:
        name - the name of the property for which the Class must be returned.
        Returns:
        the Class of the property.
      • getWriteMethod

        public Method getWriteMethod​(String name)
        Description copied from class: MetadataTarget

        Return a Method for the setter of the property with name given by argument name.

        Specified by:
        getWriteMethod in class MetadataTarget
        Parameters:
        name - the name of the property for which the Method must be returned.
        Returns:
        the write Method.
      • getReadMethod

        public Method getReadMethod​(String name)
        Description copied from class: MetadataTarget

        Return a Method for the getter of the property with name given by argument name.

        Specified by:
        getReadMethod in class MetadataTarget
        Parameters:
        name - the name of the property for which the Method must be returned.
        Returns:
        the read Method.