Top Description Constructors Methods
jakarta.faces.view.facelets

public abstract Class MetadataTarget

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.faces.facelets.tag.MetadataTargetImpl
Imports
java.beans.PropertyDescriptor, java.lang.reflect.Method

Information used with MetaRule for determining how and what Metadata should be wired.

Since
2.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract PropertyDescriptor

Returns:

the PropertyDescriptor.
getProperty
(String
the name of the property for which the PropertyDescriptor must be returned.
name
)

Return a beans PropertyDescriptor for the property with name given by argument name.

public abstract Class<T>

Returns:

the Class of the property.
getPropertyType
(String
the name of the property for which the Class must be returned.
name
)

Return a Class for the property with name given by argument name.

public abstract Method

Returns:

the read Method.
getReadMethod
(String
the name of the property for which the Method must be returned.
name
)

Return a Method for the getter of the property with name given by argument name.

public abstract Class<T>

Returns:

the target Class.
getTargetClass
()

Return the Class of the metadata target.

public abstract Method

Returns:

the write Method.
getWriteMethod
(String
the name of the property for which the Method must be returned.
name
)

Return a Method for the setter of the property with name given by argument name.

public abstract boolean

Returns:

true if the type is a target instance, false otherwise.
isTargetInstanceOf
(Class<T>
the Class to test for the instance of.
type
)

Return true if the target for this metadata element is an instance of the argument type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MetadataTargetback to summary
public MetadataTarget()

Method Detail

getPropertyback to summary
public abstract PropertyDescriptor getProperty(String name)

Return a beans PropertyDescriptor for the property with name given by argument name.

Parameters
name:String

the name of the property for which the PropertyDescriptor must be returned.

Returns:PropertyDescriptor

the PropertyDescriptor.

getPropertyTypeback to summary
public abstract Class<T> getPropertyType(String name)

Return a Class for the property with name given by argument name.

Parameters
name:String

the name of the property for which the Class must be returned.

Returns:Class<T>

the Class of the property.

getReadMethodback to summary
public abstract Method getReadMethod(String name)

Return a Method for the getter of the property with name given by argument name.

Parameters
name:String

the name of the property for which the Method must be returned.

Returns:Method

the read Method.

getTargetClassback to summary
public abstract Class<T> getTargetClass()

Return the Class of the metadata target.

Returns:Class<T>

the target Class.

getWriteMethodback to summary
public abstract Method getWriteMethod(String name)

Return a Method for the setter of the property with name given by argument name.

Parameters
name:String

the name of the property for which the Method must be returned.

Returns:Method

the write Method.

isTargetInstanceOfback to summary
public abstract boolean isTargetInstanceOf(Class<T> type)

Return true if the target for this metadata element is an instance of the argument type.

Parameters
type:Class<T>

the Class to test for the instance of.

Returns:boolean

true if the type is a target instance, false otherwise.