net.sf.fikin.pojostate.state
Class DynamicState.DynamicProperty

java.lang.Object
  extended by net.sf.fikin.pojostate.state.AbstractDecoratorProperty
      extended by net.sf.fikin.pojostate.state.DynamicState.DynamicProperty
All Implemented Interfaces:
java.lang.Comparable, MethodMeta, Property
Enclosing class:
DynamicState

public class DynamicState.DynamicProperty
extends AbstractDecoratorProperty

Implements dynamic read-execute value

It expect MethodMeta, the actual POJO is accessed from nestling class.

Upon call to getValue() it will execute underlying method, obtain the return value, apply formatting to it and then deliver it to the caller. created on Mar 1, 2007

Since:
Version:
$Revision: 1.2 $
Author:
fiykov

Constructor Summary
DynamicState.DynamicProperty(MethodMeta method)
          instantiate new property object
 
Method Summary
 java.lang.String getValue()
          get key's formatted value
 
Methods inherited from class net.sf.fikin.pojostate.state.AbstractDecoratorProperty
compareTo, getDescription, getFormat, getMethod, getMethodMeta, getName, obtainValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicState.DynamicProperty

public DynamicState.DynamicProperty(MethodMeta method)
instantiate new property object

Parameters:
method -
Method Detail

getValue

public java.lang.String getValue()
                          throws DecorationException
get key's formatted value

Returns:
key's value
Throws:
DecorationException


Copyright © 2005 Nikolay Fiykov. All Rights Reserved.