org.inria.ns.reflex.modules.sys
Class DateProperty

java.lang.Object
  extended by org.inria.ns.reflex.processor.PropertyResolver.Impl
      extended by org.inria.ns.reflex.modules.sys.DateProperty
All Implemented Interfaces:
PropertyResolver

public class DateProperty
extends PropertyResolver.Impl

The $sys:date property is used to retrieve the current date.

The date returned is today.

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.processor.PropertyResolver
PropertyResolver.Impl
 
Constructor Summary
DateProperty()
           
 
Method Summary
 Object getPropertyValue(DataSet dataSet, QName propertyName)
          Return the current date.
 
Methods inherited from class org.inria.ns.reflex.processor.PropertyResolver.Impl
removeProperty, setPropertyValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateProperty

public DateProperty()
Method Detail

getPropertyValue

public Object getPropertyValue(DataSet dataSet,
                               QName propertyName)
Return the current date.

Specified by:
getPropertyValue in interface PropertyResolver
Overrides:
getPropertyValue in class PropertyResolver.Impl
Parameters:
dataSet - The set of datas used when the action is running.
propertyName - The name of the property.
Returns:
The current date.