Package javax.faces.view.facelets
Class MetadataTarget
- java.lang.Object
-
- javax.faces.view.facelets.MetadataTarget
-
public abstract class MetadataTarget extends java.lang.Object- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description MetadataTarget()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.beans.PropertyDescriptorgetProperty(java.lang.String name)Return a beansPropertyDescriptorfor the property with name given by argumentname.abstract java.lang.ClassgetPropertyType(java.lang.String name)Return aClassfor the property with name given by argumentname.abstract java.lang.reflect.MethodgetReadMethod(java.lang.String name)Return aMethodfor the getter of the property with name given by argumentname.abstract java.lang.ClassgetTargetClass()Return theClassof the metadata target.abstract java.lang.reflect.MethodgetWriteMethod(java.lang.String name)Return aMethodfor the setter of the property with name given by argumentname.abstract booleanisTargetInstanceOf(java.lang.Class type)Return true if the target for this metadata element is an instance of the argumenttype.
-
-
-
Method Detail
-
getProperty
public abstract java.beans.PropertyDescriptor getProperty(java.lang.String name)
Return a beans
PropertyDescriptorfor the property with name given by argumentname.- Parameters:
name- the name of the property for which thePropertyDescriptormust be returned.
-
isTargetInstanceOf
public abstract boolean isTargetInstanceOf(java.lang.Class type)
Return true if the target for this metadata element is an instance of the argument
type.- Parameters:
type- theClassto test for the instance of.
-
getTargetClass
public abstract java.lang.Class getTargetClass()
Return the
Classof the metadata target.
-
getPropertyType
public abstract java.lang.Class getPropertyType(java.lang.String name)
Return a
Classfor the property with name given by argumentname.- Parameters:
name- the name of the property for which theClassmust be returned.
-
getWriteMethod
public abstract java.lang.reflect.Method getWriteMethod(java.lang.String name)
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.
-
getReadMethod
public abstract java.lang.reflect.Method getReadMethod(java.lang.String name)
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.
-
-