Package org.ghotibeaun.json.merge
Interface MergeProcess
- All Known Implementing Classes:
AbstractMergeProcessor,MergeProcessor
public interface MergeProcess
Interface for merge processing
- Author:
- Jim Earley (xml.jim@gmail.com)
-
Method Summary
Modifier and Type Method Description JSONArrayConflictStrategygetArrayConflictStrategy()Return the the Conflict Strategy to apply to JSONArray nodesMergeResultgetMergeResultStrategy()Return the specified merge result strategyJSONObjectConflictStrategygetObjectConflictStrategy()Return the Conflict Strategy to apply to JSONObject nodes<T extends JSONNode>
TmergeNodes(T primary, T secondary)Return the merged result
-
Method Details
-
getMergeResultStrategy
MergeResult getMergeResultStrategy()Return the specified merge result strategy -
getArrayConflictStrategy
JSONArrayConflictStrategy getArrayConflictStrategy()Return the the Conflict Strategy to apply to JSONArray nodes -
getObjectConflictStrategy
JSONObjectConflictStrategy getObjectConflictStrategy()Return the Conflict Strategy to apply to JSONObject nodes -
mergeNodes
Return the merged result- Type Parameters:
T- The JSON node type- Parameters:
primary- the primary node in the merge operationsecondary- the secondary node in the merge operation- Returns:
- the merged node
-