org.codehaus.plexus.cdc.merge.support
public interface Mergeable
Not all the elements/tags are expected to implement this interface.
It should be implemented by elements/tags that need to have a certain control on how elements of the same type are merged with them.
Version: $Id: Mergeable.java 3522 2006-07-12 15:06:21Z brett $
Method Summary | |
---|---|
DescriptorTag[] | getAllowedTags()
Returns an array of tags/elements that are allowed under the current
element.
|
Element | getElement()
Returns the wrapped up JDom Element instance that was used to create this Mergeable.
|
void | merge(Mergeable me)
Merges an element of same type.
|
void | merge(Mergeable me, MergeStrategy strategy) |
Returns: the allowedTags
Returns: the wrapped up JDom Element instance.
Parameters: me Another entity that is mergeable.
Throws: MergeException if there was an error merging the mergeables.
Parameters: me Recessive Mergeable instance. strategy MergeStrategy to apply for merging.
Throws: MergeException if there was an error while merging.