Class MetadataTargetImpl

java.lang.Object
jakarta.faces.view.facelets.MetadataTarget
com.sun.faces.facelets.tag.MetadataTargetImpl

public class MetadataTargetImpl extends MetadataTarget
Version:
$Id$
Author:
Jacob Hookom
  • Constructor Details

  • Method Details

    • getProperty

      public PropertyDescriptor getProperty(String name)
      Description copied from class: MetadataTarget

      Return a beans PropertyDescriptor for the property with name given by argument name.

      Specified by:
      getProperty in class MetadataTarget
      Parameters:
      name - the name of the property for which the PropertyDescriptor must be returned.
      Returns:
      the PropertyDescriptor.
    • 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.
    • getTargetClass

      public Class getTargetClass()
      Description copied from class: MetadataTarget

      Return the Class of the metadata target.

      Specified by:
      getTargetClass in class MetadataTarget
      Returns:
      the target Class.
    • 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.