org.weda.property.impl
Class PropertyValueImpl

java.lang.Object
  extended by org.weda.property.impl.PropertyValueImpl
All Implemented Interfaces:
PropertyValue

public class PropertyValueImpl
extends java.lang.Object
implements PropertyValue

Author:
Mikhail Titov

Constructor Summary
PropertyValueImpl()
           
 
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)
           
protected  PropertyOperation[] createGetters(java.lang.Class baseClass, java.lang.String propertyPath, boolean lastSetter)
           
protected  java.lang.String formStrId(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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyValueImpl

public PropertyValueImpl()
Method Detail

getValue

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

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

setValue

public void setValue(java.lang.Object baseObject,
                     java.lang.Integer propertyPathId,
                     java.lang.Object value)
              throws PropertyValueException
Specified by:
setValue in interface PropertyValue
Throws:
PropertyValueException

createGetters

protected PropertyOperation[] createGetters(java.lang.Class baseClass,
                                            java.lang.String propertyPath,
                                            boolean lastSetter)
                                     throws PropertyValueException
Throws:
PropertyValueException

formStrId

protected java.lang.String formStrId(java.lang.Class baseClass,
                                     java.lang.String propertyPath)

compileGetter

public java.lang.Integer compileGetter(java.lang.Class baseClass,
                                       java.lang.String propertyPath)
                                throws PropertyValueException
Description copied from interface: PropertyValue
Метод компилирует propertyPath.

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

compileSetter

public java.lang.Integer compileSetter(java.lang.Class baseClass,
                                       java.lang.String propertyPath)
                                throws PropertyValueException
Specified by:
compileSetter in interface PropertyValue
Throws:
PropertyValueException

addGetOperationListener

public void addGetOperationListener(java.lang.Class objectClass,
                                    java.lang.String propertyName,
                                    PropertyGetOperationListener listener)
                             throws PropertyValueException
Specified by:
addGetOperationListener in interface PropertyValue
Throws:
PropertyValueException

removeGetListener

public void removeGetListener(PropertyGetOperationListener listener)
Specified by:
removeGetListener in interface PropertyValue


Copyright © 2005-2006 . All Rights Reserved.