com.petpet.c3po.api.adaptor
Interface PreProcessingRule

All Superinterfaces:
ProcessingRule
All Known Implementing Classes:
EmptyValueProcessingRule, HtmlInfoProcessingRule

public interface PreProcessingRule
extends ProcessingRule

A pre processing rule is a special processing rule that should be applied before (or during ) meta data processing in an adaptor. Each adaptor gets a list of PreProcessingRule object and has to pass each parsed raw record to each rule obtained via the AbstractAdaptor.getPreProcessingRules() method. It is up to the adaptor implementation to decide, whether or not to apply the rules.

Author:
Petar Petrov

Method Summary
 boolean shouldSkip(String property, String value, String status, String tool, String version)
          Returns true if the property and value should be skipped for some reason.
 
Methods inherited from interface com.petpet.c3po.api.adaptor.ProcessingRule
getPriority
 

Method Detail

shouldSkip

boolean shouldSkip(String property,
                   String value,
                   String status,
                   String tool,
                   String version)
Returns true if the property and value should be skipped for some reason. The adaptors should invoke this method for each raw record and skip the meta data record if the method returns true.

Parameters:
property - the property of the record.
value - the value for the given property.
status - the status if it is known.
tool - the tool that provides this record.
version - the version of the tool that provides this record.
Returns:
true if the record should be skipped, false otherwise.


Copyright © 2013. All Rights Reserved.