Interface ChildElement<T extends ModelElementInstance>
- Type Parameters:
T
- the type of the child element
- All Superinterfaces:
ChildElementCollection<T>
- All Known Implementing Classes:
ChildElementImpl
A single child element (child Element collection where
ChildElementCollection.getMaxOccurs()
returns 1.
The Collection.add(Object)
operation provided by this collection has special behavior: it will
replace an existing element if it exists.- Author:
- Daniel Meyer
-
Method Summary
Modifier and TypeMethodDescriptiongetChild
(ModelElementInstance element) Returns the child element.boolean
removeChild
(ModelElementInstance element) Removes the child element.void
setChild
(ModelElementInstance element, T newChildElement) Sets the child element, potentially replacing an existing child element.Methods inherited from interface org.camunda.bpm.model.xml.type.child.ChildElementCollection
get, getChildElementType, getChildElementTypeClass, getMaxOccurs, getMinOccurs, getParentElementType, isImmutable
-
Method Details
-
setChild
Sets the child element, potentially replacing an existing child element.- Parameters:
element
- the parent element of the child elementnewChildElement
- the new child element to set
-
getChild
Returns the child element.- Parameters:
element
- the parent element of the child element- Returns:
- the child element of the parent, or null if not exist
-
removeChild
Removes the child element.- Parameters:
element
- the parent element of the child element- Returns:
- true if the child was remove otherwise false
-