public abstract class MergeUtility extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MergeUtility.MergeOptions
Options for specifying some parts of the merge operation.
|
Constructor and Description |
---|
MergeUtility() |
Modifier and Type | Method and Description |
---|---|
static void |
merge(Model base,
Model additional)
Merge the additional model into the base model.
|
static void |
merge(Model base,
Model additional,
MergeUtility.MergeOptions options)
Merge the additional model into the base model.
|
static void |
mergeComments(Commentable base,
Commentable additional)
Merge the comments
|
public static void merge(Model base, Model additional)
base
- The base model.additional
- The additional model.public static void merge(Model base, Model additional, MergeUtility.MergeOptions options)
Merging is performed feature by feature. Each feature is treated separately. If the base model does not have a feature from the additional model, the complete feature is added. If the base model has a feature which is not in the additional model, the feature is left as is.
For each feature, the following actions are performed:
base
- The base model.additional
- The additional model.options
- The merge optionspublic static void mergeComments(Commentable base, Commentable additional)
base
- The base model objectadditional
- The additional model objectCopyright © 2017 The Apache Software Foundation. All rights reserved.