com.petpet.c3po.adaptor.rules
Class FormatVersionResolutionRule

java.lang.Object
  extended by 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

Constructor Summary
FormatVersionResolutionRule()
           
 
Method Summary
 int getPriority()
          Has a high priotity.
 Element process(Element e)
          Make sure that all format_version have the correct status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatVersionResolutionRule

public FormatVersionResolutionRule()
Method Detail

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.