public class MetadataTargetImpl extends MetadataTarget
Constructor and Description |
---|
MetadataTargetImpl(Class type) |
Modifier and Type | Method and Description |
---|---|
PropertyDescriptor |
getProperty(String name)
Return a beans
|
Class |
getPropertyType(String name)
Return a |
Method |
getReadMethod(String name)
Return a |
Class |
getTargetClass()
Return the |
Method |
getWriteMethod(String name)
Return a |
boolean |
isTargetInstanceOf(Class type)
Return true if the target for this metadata
element is an instance of the argument |
public MetadataTargetImpl(Class type) throws IntrospectionException
IntrospectionException
public PropertyDescriptor getProperty(String name)
MetadataTarget
Return a beans
PropertyDescriptor
for the property with name given by
argument name
.
getProperty
in class MetadataTarget
name
- the name of the property for which the
PropertyDescriptor
must be returned.PropertyDescriptor
.public boolean isTargetInstanceOf(Class type)
MetadataTarget
Return true if the target for this metadata
element is an instance of the argument type
.
isTargetInstanceOf
in class MetadataTarget
type
- the Class
to test for the instance of.public Class getTargetClass()
MetadataTarget
Return the Class
of the
metadata target.
getTargetClass
in class MetadataTarget
public Class getPropertyType(String name)
MetadataTarget
Return a Class
for the property
with name given by argument name
.
getPropertyType
in class MetadataTarget
name
- the name of the property for which the Class
must be returned.public Method getWriteMethod(String name)
MetadataTarget
Return a Method
for the setter
of the property with name given by argument name
.
getWriteMethod
in class MetadataTarget
name
- the name of the property for which the Method
must be returned.Method
.public Method getReadMethod(String name)
MetadataTarget
Return a Method
for the getter
of the property with name given by argument name
.
getReadMethod
in class MetadataTarget
name
- the name of the property for which the Method
must be returned.Method
.Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.