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 PropertyDescriptor
getProperty(String name)
Return a beansPropertyDescriptor
for the property with name given by argumentname
.Class
getPropertyType(String name)
Return aClass
for the property with name given by argumentname
.Method
getReadMethod(String name)
Return aMethod
for the getter of the property with name given by argumentname
.Class
getTargetClass()
Return theClass
of the metadata target.Method
getWriteMethod(String name)
Return aMethod
for the setter of the property with name given by argumentname
.boolean
isTargetInstanceOf(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:MetadataTarget
Return a beans
PropertyDescriptor
for the property with name given by argumentname
.- Specified by:
getProperty
in classMetadataTarget
- Parameters:
name
- the name of the property for which thePropertyDescriptor
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 classMetadataTarget
- Parameters:
type
- theClass
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 classMetadataTarget
- 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 argumentname
.- Specified by:
getPropertyType
in classMetadataTarget
- Parameters:
name
- the name of the property for which theClass
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 argumentname
.- Specified by:
getWriteMethod
in classMetadataTarget
- Parameters:
name
- the name of the property for which theMethod
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 argumentname
.- Specified by:
getReadMethod
in classMetadataTarget
- Parameters:
name
- the name of the property for which theMethod
must be returned.- Returns:
- the read
Method
.
-
-