Package com.sun.faces.facelets.tag
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 Summary
Constructors Constructor Description MetadataTargetImpl(Class type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyDescriptorgetProperty(String name)Return a beansPropertyDescriptorfor the property with name given by argumentname.ClassgetPropertyType(String name)Return aClassfor the property with name given by argumentname.MethodgetReadMethod(String name)Return aMethodfor the getter of the property with name given by argumentname.ClassgetTargetClass()Return theClassof the metadata target.MethodgetWriteMethod(String name)Return aMethodfor the setter of the property with name given by argumentname.booleanisTargetInstanceOf(Class type)Return true if the target for this metadata element is an instance of the argumenttype.
-
-
-
Constructor Detail
-
MetadataTargetImpl
public MetadataTargetImpl(Class type) throws IntrospectionException
- Throws:
IntrospectionException
-
-
Method Detail
-
getProperty
public PropertyDescriptor getProperty(String name)
Description copied from class:MetadataTargetReturn a beans
PropertyDescriptorfor the property with name given by argumentname.- Specified by:
getPropertyin classMetadataTarget- Parameters:
name- the name of the property for which thePropertyDescriptormust be returned.- Returns:
- the
PropertyDescriptor.
-
isTargetInstanceOf
public boolean isTargetInstanceOf(Class type)
Description copied from class:MetadataTargetReturn true if the target for this metadata element is an instance of the argument
type.- Specified by:
isTargetInstanceOfin classMetadataTarget- Parameters:
type- theClassto test for the instance of.- Returns:
- true if the type is a target instance, false otherwise.
-
getTargetClass
public Class getTargetClass()
Description copied from class:MetadataTargetReturn the
Classof the metadata target.- Specified by:
getTargetClassin classMetadataTarget- Returns:
- the target Class.
-
getPropertyType
public Class getPropertyType(String name)
Description copied from class:MetadataTargetReturn a
Classfor the property with name given by argumentname.- Specified by:
getPropertyTypein classMetadataTarget- Parameters:
name- the name of the property for which theClassmust be returned.- Returns:
- the Class of the property.
-
getWriteMethod
public Method getWriteMethod(String name)
Description copied from class:MetadataTargetReturn a
Methodfor the setter of the property with name given by argumentname.- Specified by:
getWriteMethodin classMetadataTarget- Parameters:
name- the name of the property for which theMethodmust be returned.- Returns:
- the write
Method.
-
getReadMethod
public Method getReadMethod(String name)
Description copied from class:MetadataTargetReturn a
Methodfor the getter of the property with name given by argumentname.- Specified by:
getReadMethodin classMetadataTarget- Parameters:
name- the name of the property for which theMethodmust be returned.- Returns:
- the read
Method.
-
-