|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.model.xml.impl.type.child.ChildElementCollectionImpl<T>
public class ChildElementCollectionImpl<T extends ModelElementInstance>
This collection is a view on an the children of a Model Element.
| Field Summary | |
|---|---|
protected Class<T> |
childElementTypeClass
|
protected int |
maxOccurs
the maximum count of child elements in the collection. |
| Constructor Summary | |
|---|---|
ChildElementCollectionImpl(Class<T> childElementTypeClass,
ModelElementTypeImpl parentElementType)
|
|
| 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. |
void |
setImmutable()
|
void |
setMaxOccurs(int maxOccurs)
|
void |
setMinOccurs(int minOccurs)
|
void |
setMutable(boolean isMutable)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Class<T extends ModelElementInstance> childElementTypeClass
protected int maxOccurs
| Constructor Detail |
|---|
public ChildElementCollectionImpl(Class<T> childElementTypeClass,
ModelElementTypeImpl parentElementType)
| Method Detail |
|---|
public void setImmutable()
public void setMutable(boolean isMutable)
public boolean isImmutable()
ChildElementCollectionCollection.add(Object) or Collection.remove(Object)
will throw an UnsupportedOperationException.
isImmutable in interface ChildElementCollection<T extends ModelElementInstance>public int getMinOccurs()
ChildElementCollection
getMinOccurs in interface ChildElementCollection<T extends ModelElementInstance>public void setMinOccurs(int minOccurs)
public int getMaxOccurs()
ChildElementCollection
getMaxOccurs in interface ChildElementCollection<T extends ModelElementInstance>public ModelElementType getChildElementType(Model model)
ChildElementCollection
getChildElementType in interface ChildElementCollection<T extends ModelElementInstance>model - the model of the element
ModelElementTypepublic Class<T> getChildElementTypeClass()
ChildElementCollection
getChildElementTypeClass in interface ChildElementCollection<T extends ModelElementInstance>public ModelElementType getParentElementType()
ChildElementCollection
getParentElementType in interface ChildElementCollection<T extends ModelElementInstance>public void setMaxOccurs(int maxOccurs)
public Collection<T> get(ModelElementInstance element)
ChildElementCollectionCollection containing all or a subset of the child elements of
a ModelElementInstance.
get in interface ChildElementCollection<T extends ModelElementInstance>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||