public class ChildElementImpl<T extends ModelElementInstance> extends ChildElementCollectionImpl<T> implements ChildElement<T>
childElementTypeClass, maxOccurs
Constructor and Description |
---|
ChildElementImpl(Class<T> childElementTypeChild,
ModelElementTypeImpl parentElementType) |
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, setImmutable, setMaxOccurs, setMinOccurs, setMutable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, getChildElementType, getChildElementTypeClass, getMaxOccurs, getMinOccurs, getParentElementType, isImmutable
public ChildElementImpl(Class<T> childElementTypeChild, ModelElementTypeImpl parentElementType)
public void setChild(ModelElementInstance element, T newChildElement)
ChildElement
setChild
in interface ChildElement<T extends ModelElementInstance>
element
- the parent element of the child elementnewChildElement
- the new child element to setpublic T getChild(ModelElementInstance element)
ChildElement
getChild
in interface ChildElement<T extends ModelElementInstance>
element
- the parent element of the child elementpublic boolean removeChild(ModelElementInstance element)
ChildElement
removeChild
in interface ChildElement<T extends ModelElementInstance>
element
- the parent element of the child elementCopyright © 2017. All rights reserved.