Interface ConflictStrategy<T,​G>

Type Parameters:
T - The JSONNode Type
G - The property Getter data type, i.e., Integer for arrays, String for Arrays
All Known Subinterfaces:
JSONArrayConflictStrategy, JSONObjectConflictStrategy
All Known Implementing Classes:
AbstractConflictStrategy, AbstractJSONArrayConflictStrategy, AbstractJSONObjectConflictStrategy, AcceptPrimaryConflictStrategy, AcceptSecondaryConflictStrategy, AppendArrayConflictStrategy, AppendObjectConflictStrategy, DeduplicateArrayConflictStrategy, InsertAfterConflictStrategy, InsertBeforeConflictStrategy

public interface ConflictStrategy<T,​G>
Author:
Jim Earley (xml.jim@gmail.com)
  • Method Summary

    Modifier and Type Method Description
    void apply​(T context, G propertyValue, JSONValue<?> primaryValue, JSONValue<?> secondaryValue)
    Apply a conflict strategy to a given JSONNode context
    MergeProcess getMergeProcessor()  
  • Method Details

    • getMergeProcessor

      MergeProcess getMergeProcessor()
    • apply

      void apply​(T context, G propertyValue, JSONValue<?> primaryValue, JSONValue<?> secondaryValue)
      Apply a conflict strategy to a given JSONNode context
      Parameters:
      context - the JSONNode that receives the "resolved" value
      propertyValue - either the key or index position of the value
      primaryValue - the value from the Primary JSONNode
      secondaryValue - the value from the Secondary JSONNode