org.camunda.bpm.model.xml.type.child
Interface ChildElementCollection<T extends ModelElementInstance>

Type Parameters:
T - The type of the model elements in the collection
All Known Subinterfaces:
ChildElement<T>
All Known Implementing Classes:
ChildElementCollectionImpl, ChildElementImpl

public interface ChildElementCollection<T extends ModelElementInstance>

A collection containing all or a subset of the child elements of a given ModelElementInstance.

Author:
Daniel Meyer

Method Summary
 Collection<T> get(ModelElementInstance element)
          returns a Collection containing all or a subset of the child elements of a ModelElementInstance.
 ModelElementType getChildElementType(Model model)
          Get the model element type of the elements contained in this collection.
 Class<T> getChildElementTypeClass()
          Get the class of the elements contained in this collection.
 int getMaxOccurs()
          Indicates the max element count of a collection.
 int getMinOccurs()
          Indicates the minimal element count of a collection.
 ModelElementType getParentElementType()
          Get the model element type of the element owns the collection
 boolean isImmutable()
          Indicates whether the collection is immutable.
 

Method Detail

isImmutable

boolean isImmutable()
Indicates whether the collection is immutable. If the collection is immutable, all state-altering operations such as Collection.add(Object) or Collection.remove(Object) will throw an UnsupportedOperationException.

Returns:
true if the collection is mutable, false otherwise.

getMinOccurs

int getMinOccurs()
Indicates the minimal element count of a collection. Returns a positive integer or '0'.

Returns:
the minimal element count of the collection.

getMaxOccurs

int getMaxOccurs()
Indicates the max element count of a collection. In a negative value is returned (like '-1'), the collection is unbounded.

Returns:
the max element count for this collection.

getChildElementType

ModelElementType getChildElementType(Model model)
Get the model element type of the elements contained in this collection.

Parameters:
model - the model of the element
Returns:
the containing ModelElementType

getChildElementTypeClass

Class<T> getChildElementTypeClass()
Get the class of the elements contained in this collection.

Returns:
the class of contained types

getParentElementType

ModelElementType getParentElementType()
Get the model element type of the element owns the collection

Returns:
the parent element of the collection

get

Collection<T> get(ModelElementInstance element)
returns a Collection containing all or a subset of the child elements of a ModelElementInstance.



Copyright © 2014 camunda services GmbH. All rights reserved.