public class PropertyController extends Object implements ValueController, SetOwner
| Constructor and Description |
|---|
PropertyController(Object objOwner,
String name,
Class type,
Method set,
Method get) |
| Modifier and Type | Method and Description |
|---|---|
static Iterable<ValueController> |
buildControllers(Object obj) |
static Map<String,ValueController> |
buildControllersMap(Object obj) |
static Iterable<PropertyController> |
buildPropertiesList(Class cls) |
Method |
getGetMethod() |
String |
getName()
Возвращает название
|
Object |
getOwner() |
Method |
getSetMethod() |
Class |
getType()
Вовращает тип значения
|
Object |
getValue()
Возвращает значение
|
void |
setOwner(Object newOwner) |
void |
setValue(Object value)
Устанавливает значение
|
public Method getGetMethod()
public Object getOwner()
public Method getSetMethod()
public String getName()
ValueControllergetName in interface ValueControllerpublic Class getType()
ValueControllergetType in interface ValueControllerpublic Object getValue() throws Throwable
ValueControllergetValue in interface ValueControllerThrowable - Если не возможно прочестьpublic void setValue(Object value) throws Throwable
ValueControllersetValue in interface ValueControllervalue - значениеThrowable - Если не возможно установитьpublic static Map<String,ValueController> buildControllersMap(Object obj)
public static Iterable<PropertyController> buildPropertiesList(Class cls)
public static Iterable<ValueController> buildControllers(Object obj)
Copyright © 2018. All rights reserved.