T
- the type of the child elementpublic interface ChildElement<T extends ModelElementInstance> extends ChildElementCollection<T>
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.Modifier and Type | Method and Description |
---|---|
T |
getChild(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.
|
get, getChildElementType, getChildElementTypeClass, getMaxOccurs, getMinOccurs, getParentElementType, isImmutable
void setChild(ModelElementInstance element, T newChildElement)
element
- the parent element of the child elementnewChildElement
- the new child element to setT getChild(ModelElementInstance element)
element
- the parent element of the child elementboolean removeChild(ModelElementInstance element)
element
- the parent element of the child elementCopyright © 2017. All rights reserved.