public abstract class AbstractModel extends java.lang.Object implements Model
Constructor and Description |
---|
AbstractModel() |
Modifier and Type | Method and Description |
---|---|
protected Model |
copy(Model model) |
protected java.util.LinkedList |
copyList(java.util.LinkedList list) |
protected java.util.LinkedList |
merge(java.util.LinkedList child,
java.util.LinkedList parent)
Merge two lists.
|
protected java.util.LinkedList |
merge(java.util.LinkedList child,
java.util.LinkedList parent,
boolean addAtEnd)
Merge two lists.
|
protected Model |
merge(Model child,
Model parent)
Merge two model elements.
|
protected java.lang.Object |
merge(java.lang.Object child,
java.lang.Object parent)
Merge two objects.
|
protected java.lang.String |
merge(java.lang.String child,
java.lang.String parent)
Merge two strings.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCopy, isMergeableWith, merge
protected java.lang.Object merge(java.lang.Object child, java.lang.Object parent)
child
- the child object to mergeparent
- the parent object to mergeprotected java.lang.String merge(java.lang.String child, java.lang.String parent)
child
- the child string to mergeparent
- the parent string to mergeprotected Model merge(Model child, Model parent)
child
- the child model element to mergeparent
- the parent model element to mergeprotected java.util.LinkedList merge(java.util.LinkedList child, java.util.LinkedList parent)
child
- the child list to mergeparent
- the parent list to mergeprotected java.util.LinkedList merge(java.util.LinkedList child, java.util.LinkedList parent, boolean addAtEnd)
child
- the child list to mergeparent
- the parent list to mergeaddAtEnd
- if true new items will be added at the end of the list, otherwise the beginningprotected java.util.LinkedList copyList(java.util.LinkedList list)