com.petpet.c3po.adaptor.rules
Class FormatVersionResolutionRule
java.lang.Object
com.petpet.c3po.adaptor.rules.FormatVersionResolutionRule
- All Implemented Interfaces:
- PostProcessingRule, ProcessingRule
public class FormatVersionResolutionRule
- extends Object
- implements PostProcessingRule
A post processing rule to correct a FITS reported conflict in the format
version that was marked as ok. This rule is turned on per default and can be
disabled via the .c3poconfig file with the following key set to false:
'c3po.rule.format_version_resolution'.
- Author:
- Petar Petrov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormatVersionResolutionRule
public FormatVersionResolutionRule()
getPriority
public int getPriority()
- Has a high priotity.
- Specified by:
getPriority in interface ProcessingRule
- Returns:
- the priority of this rule.
process
public Element process(Element e)
- Make sure that all format_version have the correct status. Especially when
there is a CONFLICT
- Specified by:
process in interface PostProcessingRule
- Parameters:
e - the element to process.
- Returns:
- the processed element.
Copyright © 2013. All Rights Reserved.