public class RequirementElement extends AbstractMergeableElement
element
Constructor and Description |
---|
RequirementElement(org.jdom.Element element) |
Modifier and Type | Method and Description |
---|---|
DescriptorTag[] |
getAllowedTags()
Returns an array of tags/elements that are allowed under the current
element.
|
protected boolean |
isExpectedElementType(Mergeable me)
Determines if the passed in
Mergeable was of same type as this
class. |
void |
merge(Mergeable me)
Merges an element of same type.
|
isRecessiveElementInConflict, isRecessiveElementInConflict, merge, mergeableElementComesFromRecessive
addContent, addContent, addContent, addContent, addContent, addNamespaceDeclaration, clone, cloneContent, detach, equals, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getChild, getChild, getChildren, getChildren, getChildren, getChildText, getChildText, getChildTextNormalize, getChildTextNormalize, getChildTextTrim, getChildTextTrim, getContent, getContent, getContent, getContentSize, getDefaultMergeStrategy, getDescendants, getDescendants, getDocument, getElement, getElementNamesForConflictResolution, getName, getNamespace, getNamespace, getNamespacePrefix, getNamespaceURI, getParent, getParentElement, getQualifiedName, getText, getTextNormalize, getTextTrim, getValue, hashCode, indexOf, isAncestor, isRootElement, removeAttribute, removeAttribute, removeAttribute, removeChild, removeChild, removeChildren, removeChildren, removeContent, removeContent, removeContent, removeContent, removeNamespaceDeclaration, setAttribute, setAttribute, setAttribute, setAttributes, setContent, setContent, setContent, setContent, setName, setNamespace, setText, toString
public DescriptorTag[] getAllowedTags()
Mergeable
public void merge(Mergeable me) throws MergeException
Mergeable
merge
in interface Mergeable
merge
in class AbstractMergeableElement
me
- Another entity that is mergeable.MergeException
- if there was an error merging the mergeables.protected boolean isExpectedElementType(Mergeable me)
AbstractMergeableSupport
Mergeable
was of same type as this
class.isExpectedElementType
in class AbstractMergeableSupport
me
- Mergeable
instance to test.true
if the passed in Mergeable can be merged with
the current Mergeable.Copyright © 2001-2012 Codehaus. All Rights Reserved.