Package jakarta.faces.view.facelets
Class MetadataTarget
java.lang.Object
jakarta.faces.view.facelets.MetadataTarget
- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract PropertyDescriptorgetProperty(String name) Return a beansPropertyDescriptorfor the property with name given by argumentname.abstract ClassgetPropertyType(String name) Return aClassfor the property with name given by argumentname.abstract MethodgetReadMethod(String name) Return aMethodfor the getter of the property with name given by argumentname.abstract ClassReturn theClassof the metadata target.abstract MethodgetWriteMethod(String name) Return aMethodfor the setter of the property with name given by argumentname.abstract booleanisTargetInstanceOf(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
PropertyDescriptorfor the property with name given by argumentname.- Parameters:
name- the name of the property for which thePropertyDescriptormust be returned.- Returns:
- the
PropertyDescriptor.
-
isTargetInstanceOf
Return true if the target for this metadata element is an instance of the argument
type.- Parameters:
type- theClassto test for the instance of.- Returns:
- true if the type is a target instance, false otherwise.
-
getTargetClass
Return the
Classof the metadata target.- Returns:
- the target Class.
-
getPropertyType
Return a
Classfor the property with name given by argumentname.- Parameters:
name- the name of the property for which theClassmust be returned.- Returns:
- the Class of the property.
-
getWriteMethod
Return a
Methodfor the setter of the property with name given by argumentname.- Parameters:
name- the name of the property for which theMethodmust be returned.- Returns:
- the write
Method.
-
getReadMethod
Return a
Methodfor the getter of the property with name given by argumentname.- Parameters:
name- the name of the property for which theMethodmust be returned.- Returns:
- the read
Method.
-