cz.cuni.amis.introspection
Class PropertyShadow

Package class diagram package PropertyShadow
java.lang.Object
  extended by cz.cuni.amis.introspection.Feature
      extended by cz.cuni.amis.introspection.Property
          extended by cz.cuni.amis.introspection.PropertyShadow

public class PropertyShadow
extends Property

Used for caching value of given property.

Author:
ik

Field Summary
 
Fields inherited from class cz.cuni.amis.introspection.Feature
name
 
Constructor Summary
PropertyShadow(Property prop)
           
 
Method Summary
 Class getType()
           
 Object getValue()
          Get value of property.
 void setValue(Object newValue)
          Set value of property.
 void synchronize()
          Updates shadowed value with current property value.
 
Methods inherited from class cz.cuni.amis.introspection.Feature
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyShadow

public PropertyShadow(Property prop)
               throws IntrospectionException
Throws:
IntrospectionException
Method Detail

synchronize

public void synchronize()
                 throws IntrospectionException
Updates shadowed value with current property value. Sets the new value if if was changed.

Throws:
IntrospectionException

getValue

public Object getValue()
                throws IntrospectionException
Description copied from class: Property
Get value of property.

Specified by:
getValue in class Property
Returns:
Value of property
Throws:
IntrospectionException

setValue

public void setValue(Object newValue)
              throws IntrospectionException
Description copied from class: Property
Set value of property.

Specified by:
setValue in class Property
Throws:
IntrospectionException

getType

public Class getType()
              throws IntrospectionException
Specified by:
getType in class Property
Returns:
Type of this property.
Throws:
IntrospectionException


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.