org.inria.ns.reflex.processor.core
Class ThisProperty

java.lang.Object
  extended by org.inria.ns.reflex.processor.PropertyResolver.Impl
      extended by org.inria.ns.reflex.processor.core.ThisProperty
All Implemented Interfaces:
PropertyResolver

public class ThisProperty
extends PropertyResolver.Impl

This resolver is used to retrieve the document that represents the current instance of the active sheet thanks to the predefined property $this.

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.processor.PropertyResolver
PropertyResolver.Impl
 
Constructor Summary
ThisProperty()
           
 
Method Summary
static PropertyResolver getPropertyResolver(QName property)
          Get the property resolver if the property to resolve is $this, null otherwise.
 Object getPropertyValue(DataSet dataSet, QName propertyName)
          Return the XML active sheet source code used.
 
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

ThisProperty

public ThisProperty()
Method Detail

getPropertyResolver

public static PropertyResolver getPropertyResolver(QName property)
Get the property resolver if the property to resolve is $this, null otherwise.

Parameters:
property - The property to test.
Returns:
The singleton instance of this class if the property is $this,null otherwise.

getPropertyValue

public Object getPropertyValue(DataSet dataSet,
                               QName propertyName)
Return the XML active sheet source code used.

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, that must be "this".
Returns:
The XML source code as a DOM document.