Class ChildElementImpl<T extends ModelElementInstance>
java.lang.Object
org.camunda.bpm.model.xml.impl.type.child.ChildElementCollectionImpl<T>
org.camunda.bpm.model.xml.impl.type.child.ChildElementImpl<T>
- All Implemented Interfaces:
ChildElement<T>,ChildElementCollection<T>
public class ChildElementImpl<T extends ModelElementInstance>
extends ChildElementCollectionImpl<T>
implements ChildElement<T>
Represents a single Child Element (ie. maxOccurs = 1);
- Author:
- Daniel Meyer
-
Field Summary
Fields inherited from class org.camunda.bpm.model.xml.impl.type.child.ChildElementCollectionImpl
childElementTypeClass, maxOccurs -
Constructor Summary
ConstructorsConstructorDescriptionChildElementImpl(Class<T> childElementTypeChild, ModelElementTypeImpl parentElementType) -
Method Summary
Modifier and TypeMethodDescriptiongetChild(ModelElementInstance element) Returns the child element.booleanremoveChild(ModelElementInstance element) Removes the child element.voidsetChild(ModelElementInstance element, T newChildElement) Sets the child element, potentially replacing an existing child element.Methods inherited from class org.camunda.bpm.model.xml.impl.type.child.ChildElementCollectionImpl
get, getChildElementType, getChildElementTypeClass, getMaxOccurs, getMinOccurs, getParentElementType, isImmutable, setImmutable, setMaxOccurs, setMinOccurs, setMutableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.camunda.bpm.model.xml.type.child.ChildElementCollection
get, getChildElementType, getChildElementTypeClass, getMaxOccurs, getMinOccurs, getParentElementType, isImmutable
-
Constructor Details
-
ChildElementImpl
-
-
Method Details
-
setChild
Description copied from interface:ChildElementSets the child element, potentially replacing an existing child element.- Specified by:
setChildin interfaceChildElement<T extends ModelElementInstance>- Parameters:
element- the parent element of the child elementnewChildElement- the new child element to set
-
getChild
Description copied from interface:ChildElementReturns the child element.- Specified by:
getChildin interfaceChildElement<T extends ModelElementInstance>- Parameters:
element- the parent element of the child element- Returns:
- the child element of the parent, or null if not exist
-
removeChild
Description copied from interface:ChildElementRemoves the child element.- Specified by:
removeChildin interfaceChildElement<T extends ModelElementInstance>- Parameters:
element- the parent element of the child element- Returns:
- true if the child was remove otherwise false
-