XProperties 1.0.3

at.spardat.properties
Class AbstractPropertyProcessor

java.lang.Object
  extended byat.spardat.properties.AbstractPropertyProcessor
Direct Known Subclasses:
ConditionProcessor, IncludeProcessor, MetaProcessor, PostfixProcessor, PraefixProcessor, VariableProcessor

public abstract class AbstractPropertyProcessor
extends java.lang.Object

A property processor is used to process each read property key and value. Property processors may be chained. Each property processor may change the key or value or stop further processing for the given property.


Constructor Summary
protected AbstractPropertyProcessor()
           
protected AbstractPropertyProcessor(AbstractPropertyProcessor next)
           
 
Method Summary
protected abstract  boolean doProcessProperty(PropertyData data, Property property)
          process a property with this property processor
 boolean processProperty(PropertyData data, Property property)
          process a property with this property processor
 void setNextProcessor(AbstractPropertyProcessor next)
          sets a processor which will be called if this processor successfully processed a property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPropertyProcessor

protected AbstractPropertyProcessor()

AbstractPropertyProcessor

protected AbstractPropertyProcessor(AbstractPropertyProcessor next)
Method Detail

setNextProcessor

public void setNextProcessor(AbstractPropertyProcessor next)
sets a processor which will be called if this processor successfully processed a property

Parameters:
next - the next processor (in the chain)

processProperty

public boolean processProperty(PropertyData data,
                               Property property)
                        throws PropertyException
process a property with this property processor

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 and any chained module) was successfull. False if the process failed.
Throws:
PropertyException
Since:
version_number

doProcessProperty

protected abstract boolean doProcessProperty(PropertyData data,
                                             Property property)
                                      throws PropertyException
process a property with this property processor

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
Since:
version_number

XProperties 1.0.3