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 SummaryModifier 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- 
getMergeResultStrategyMergeResult getMergeResultStrategy()Return the specified merge result strategy
- 
getArrayConflictStrategyJSONArrayConflictStrategy getArrayConflictStrategy()Return the the Conflict Strategy to apply to JSONArray nodes
- 
getObjectConflictStrategyJSONObjectConflictStrategy getObjectConflictStrategy()Return the Conflict Strategy to apply to JSONObject nodes
- 
mergeNodesReturn the merged result- Type Parameters:
- T- The JSON node type
- Parameters:
- primary- the primary node in the merge operation
- secondary- the secondary node in the merge operation
- Returns:
- the merged node
 
 
-