|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Mergeable
Interface that marks an implementing entity as 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.
Method Summary | |
---|---|
DescriptorTag[] |
getAllowedTags()
Returns an array of tags/elements that are allowed under the current element. |
org.jdom.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)
Applies the passed in MergeStrategy to merge two Mergeable instance. |
Method Detail |
---|
void merge(Mergeable me) throws MergeException
me
- Another entity that is mergeable.
MergeException
- if there was an error merging the mergeables.void merge(Mergeable me, MergeStrategy strategy) throws MergeException
MergeStrategy
to merge two Mergeable
instance.
me
- Recessive Mergeable
instance.strategy
- MergeStrategy
to apply for merging.
MergeException
- if there was an error while merging.org.jdom.Element getElement()
Element
instance that was used to create this Mergeable.
Element
instance.DescriptorTag[] getAllowedTags()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |