public class Property extends Object
| Constructor and Description |
|---|
Property(Class klass,
String fieldName)
Constructor to access field with get/set
|
public Property(Class klass, String fieldName)
klass - Class to be manipulatedfieldName - Field to be accessedIllegalArgumentException - if either param is nullPropertyNotFoundException - if property isn't foundpublic Class getType()
public Object getValue(Object instance)
instance - Instance to get valuepublic void setValue(Object instance, Object value)
instance - Instance to set new valuevalue - new valuepublic String getFieldName()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.