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

java.lang.Object
  extended by org.inria.ns.reflex.processor.PropertyResolver.Impl
      extended by org.inria.ns.reflex.modules.sys.OutputProperty
All Implemented Interfaces:
PropertyResolver
Direct Known Subclasses:
ErrProperty, OutProperty

public abstract class OutputProperty
extends PropertyResolver.Impl

Support for system output streams.

Updates

Setting to a new print stream cause saving the actual value.

Setting to "" or null cause restoring the previous value.

Implementation details

Usually, the output is overriden once, this is why the saved value is not a stack ; it becomes a stack is exceptionally the output would be overriden several times.

Author:
Philippe Poulard

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

Constructor Detail

OutputProperty

public OutputProperty()
Method Detail

setPropertyValue

public void setPropertyValue(DataSet dataSet,
                             QName propertyName,
                             Object value)
                      throws RecoverableException
Redirect the standard output.

Specified by:
setPropertyValue in interface PropertyResolver
Overrides:
setPropertyValue in class PropertyResolver.Impl
Parameters:
dataSet - The set of datas used when the action is running.
propertyName - The name of the property.
value - The new value of the property : a file or an output stream or a print stream or a writer
Throws:
RecoverableException - When the property cause an error.
See Also:
PropertyResolver.Impl.setPropertyValue(org.inria.ns.reflex.processor.DataSet, org.inria.ns.reflex.xml.QName, java.lang.Object)