org.weda.property
Interface PropertyValue

All Known Implementing Classes:
PropertyValueImpl

public interface PropertyValue

Цель: получение значение свойства

Author:
tim

Method Summary
 void addGetOperationListener(java.lang.Class objectClass, java.lang.String propertyName, PropertyGetOperationListener listener)
           
 java.lang.Integer compileGetter(java.lang.Class baseClass, java.lang.String propertyPath)
          Метод компилирует propertyPath.
 java.lang.Integer compileSetter(java.lang.Class baseClass, java.lang.String propertyPath)
           
 java.lang.Object getValue(java.lang.Object baseObject, java.lang.Integer propertyPathId)
          Метод возвращает значение свойства.
 void removeGetListener(PropertyGetOperationListener listener)
           
 void setValue(java.lang.Object baseObject, java.lang.Integer propertyPathId, java.lang.Object value)
           
 

Method Detail

getValue

java.lang.Object getValue(java.lang.Object baseObject,
                          java.lang.Integer propertyPathId)
                          throws PropertyValueException
Метод возвращает значение свойства. Путь до свойства должен быть предварительно откомпилирован.

Parameters:
propertyPathId - - строка идентифицирующая скомпилированный путь до свойства.
Throws:
PropertyValueException
See Also:
#compile(Class, String)

setValue

void setValue(java.lang.Object baseObject,
              java.lang.Integer propertyPathId,
              java.lang.Object value)
              throws PropertyValueException
Throws:
PropertyValueException

compileGetter

java.lang.Integer compileGetter(java.lang.Class baseClass,
                                java.lang.String propertyPath)
                                throws PropertyValueException
Метод компилирует propertyPath.

Parameters:
propertyPath - - путь до свойства. Т.е. свойство может быть составным, нампример: Допустим есть объект касса Company в котором есть свойство address (тип которого Address) у которого в свою очередь есть свойтво street. Тогда propertyPath будет выгядеть следующим образом: address.street
Throws:
PropertyValueException

compileSetter

java.lang.Integer compileSetter(java.lang.Class baseClass,
                                java.lang.String propertyPath)
                                throws PropertyValueException
Throws:
PropertyValueException

addGetOperationListener

void addGetOperationListener(java.lang.Class objectClass,
                             java.lang.String propertyName,
                             PropertyGetOperationListener listener)
                             throws PropertyValueException
Throws:
PropertyValueException

removeGetListener

void removeGetListener(PropertyGetOperationListener listener)


Copyright © 2005-2006 . All Rights Reserved.