Top Fields Constructors Methods
com.sun.faces.facelets.tag

public Class MetadataTargetImpl

extends MetadataTarget
Class Inheritance
Known Direct Subclasses
com.sun.faces.facelets.tag.faces.CompositeComponentTagHandler.CompositeComponentMetaRuleset.CompositeMetadataTarget
Imports
java.beans.BeanInfo, .IntrospectionException, .Introspector, .PropertyDescriptor, java.lang.reflect.Method, java.util.HashMap, .Map, jakarta.faces.view.facelets.MetadataTarget

Author
Jacob Hookom
Version
$Id$

Field Summary

Modifier and TypeField and Description
private final Map<String, PropertyDescriptor>
private final Class<?>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PropertyDescriptor
getProperty(String
the name of the property for which the PropertyDescriptor must be returned.
name
)

Implements abstract jakarta.faces.view.facelets.MetadataTarget.getProperty.

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

public Class<T>
getPropertyType(String
the name of the property for which the Class must be returned.
name
)

Implements abstract jakarta.faces.view.facelets.MetadataTarget.getPropertyType.

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

public Method
getReadMethod(String
the name of the property for which the Method must be returned.
name
)

Implements abstract jakarta.faces.view.facelets.MetadataTarget.getReadMethod.

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

public Class<T>
getTargetClass()

Implements abstract jakarta.faces.view.facelets.MetadataTarget.getTargetClass.

Return the Class of the metadata target.

public Method
getWriteMethod(String
the name of the property for which the Method must be returned.
name
)

Implements abstract jakarta.faces.view.facelets.MetadataTarget.getWriteMethod.

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

public boolean
isTargetInstanceOf(Class<T>
the Class to test for the instance of.
type
)

Implements abstract jakarta.faces.view.facelets.MetadataTarget.isTargetInstanceOf.

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

Field Detail

pdback to summary
private final Map<String, PropertyDescriptor> pd
typeback to summary
private final Class<?> type

Constructor Detail

MetadataTargetImplback to summary
public MetadataTargetImpl(Class<T> type) throws IntrospectionException

Method Detail

getPropertyback to summary
public PropertyDescriptor getProperty(String name)

Implements abstract jakarta.faces.view.facelets.MetadataTarget.getProperty.

Doc from jakarta.faces.view.facelets.MetadataTarget.getProperty.

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

Parameters
name:String

the name of the property for which the PropertyDescriptor must be returned.

Returns:PropertyDescriptor

the PropertyDescriptor.

Annotations
@Override
getPropertyTypeback to summary
public Class<T> getPropertyType(String name)

Implements abstract jakarta.faces.view.facelets.MetadataTarget.getPropertyType.

Doc from jakarta.faces.view.facelets.MetadataTarget.getPropertyType.

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

Parameters
name:String

the name of the property for which the Class must be returned.

Returns:Class<T>

the Class of the property.

Annotations
@Override
getReadMethodback to summary
public Method getReadMethod(String name)

Implements abstract jakarta.faces.view.facelets.MetadataTarget.getReadMethod.

Doc from jakarta.faces.view.facelets.MetadataTarget.getReadMethod.

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

Parameters
name:String

the name of the property for which the Method must be returned.

Returns:Method

the read Method.

Annotations
@Override
getTargetClassback to summary
public Class<T> getTargetClass()

Implements abstract jakarta.faces.view.facelets.MetadataTarget.getTargetClass.

Doc from jakarta.faces.view.facelets.MetadataTarget.getTargetClass.

Return the Class of the metadata target.

Returns:Class<T>

the target Class.

Annotations
@Override
getWriteMethodback to summary
public Method getWriteMethod(String name)

Implements abstract jakarta.faces.view.facelets.MetadataTarget.getWriteMethod.

Doc from jakarta.faces.view.facelets.MetadataTarget.getWriteMethod.

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

Parameters
name:String

the name of the property for which the Method must be returned.

Returns:Method

the write Method.

Annotations
@Override
isTargetInstanceOfback to summary
public boolean isTargetInstanceOf(Class<T> type)

Implements abstract jakarta.faces.view.facelets.MetadataTarget.isTargetInstanceOf.

Doc from jakarta.faces.view.facelets.MetadataTarget.isTargetInstanceOf.

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

Parameters
type:Class<T>

the Class to test for the instance of.

Returns:boolean

true if the type is a target instance, false otherwise.

Annotations
@Override