XProperties 1.0.3

at.spardat.properties.processor
Class VariableProcessor

java.lang.Object
  extended byat.spardat.properties.AbstractPropertyProcessor
      extended byat.spardat.properties.processor.VariableProcessor

public class VariableProcessor
extends AbstractPropertyProcessor

a property processor which manages variable replacement of the form "${varname}"


Constructor Summary
VariableProcessor()
           
 
Method Summary
protected  boolean doProcessProperty(PropertyData data, Property property)
          process a property with this property processor
protected  java.lang.String replaceVars(PropertyData data, java.lang.String value)
           
 
Methods inherited from class at.spardat.properties.AbstractPropertyProcessor
processProperty, setNextProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableProcessor

public VariableProcessor()
Method Detail

doProcessProperty

protected boolean doProcessProperty(PropertyData data,
                                    Property property)
                             throws PropertyException
Description copied from class: AbstractPropertyProcessor
process a property with this property processor

Specified by:
doProcessProperty in class AbstractPropertyProcessor
Parameters:
data - the property data object for access to other properties for evaluation
property - the property which shall be processed
Returns:
true if the process in this module was successfull. False if the process failed.
Throws:
PropertyException

replaceVars

protected java.lang.String replaceVars(PropertyData data,
                                       java.lang.String value)
                                throws PropertyUnknownException
Throws:
PropertyUnknownException

XProperties 1.0.3