Package javax.faces.view.facelets
Class MetadataTarget
java.lang.Object
javax.faces.view.facelets.MetadataTarget
- Since:
- 2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract PropertyDescriptor
getProperty
(String name) Return a beansPropertyDescriptor
for the property with name given by argumentname
.abstract Class
getPropertyType
(String name) Return aClass
for the property with name given by argumentname
.abstract Method
getReadMethod
(String name) Return aMethod
for the getter of the property with name given by argumentname
.abstract Class
Return theClass
of the metadata target.abstract Method
getWriteMethod
(String name) Return aMethod
for the setter of the property with name given by argumentname
.abstract boolean
isTargetInstanceOf
(Class type) Return true if the target for this metadata element is an instance of the argumenttype
.
-
Constructor Details
-
MetadataTarget
public MetadataTarget()
-
-
Method Details
-
getProperty
Return a beans
PropertyDescriptor
for the property with name given by argumentname
.- Parameters:
name
- the name of the property for which thePropertyDescriptor
must be returned.- Returns:
- the
PropertyDescriptor
.
-
isTargetInstanceOf
Return true if the target for this metadata element is an instance of the argument
type
.- Parameters:
type
- theClass
to test for the instance of.- Returns:
- true if the type is a target instance, false otherwise.
-
getTargetClass
Return the
Class
of the metadata target.- Returns:
- the target Class.
-
getPropertyType
Return a
Class
for the property with name given by argumentname
.- Parameters:
name
- the name of the property for which theClass
must be returned.- Returns:
- the Class of the property.
-
getWriteMethod
Return a
Method
for the setter of the property with name given by argumentname
.- Parameters:
name
- the name of the property for which theMethod
must be returned.- Returns:
- the write
Method
.
-
getReadMethod
Return a
Method
for the getter of the property with name given by argumentname
.- Parameters:
name
- the name of the property for which theMethod
must be returned.- Returns:
- the read
Method
.
-