Class AbstractSimulinkCollection<E,P,M extends Manager<E,P>>
- java.lang.Object
-
- org.eclipse.epsilon.emc.simulink.util.collection.AbstractSimulinkCollection<E,P,M>
-
- All Implemented Interfaces:
java.lang.Iterable<ISimulinkModelElement>
,java.util.Collection<ISimulinkModelElement>
,java.util.List<ISimulinkModelElement>
- Direct Known Subclasses:
SimulinkBlockCollection
,SimulinkDataTypeCollection
,SimulinkElementCollection
,SimulinkEntryCollection
,SimulinkJustificationCollection
,SimulinkLineCollection
,SimulinkLinkCollection
,SimulinkLinkSetCollection
,SimulinkPortCollection
,SimulinkReferenceCollection
,SimulinkRequirementCollection
,StateflowBlockCollection
public abstract class AbstractSimulinkCollection<E,P,M extends Manager<E,P>> extends java.lang.Object implements java.util.List<ISimulinkModelElement>
-
-
Constructor Summary
Constructors Constructor Description AbstractSimulinkCollection(java.lang.Object primitive, M manager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
add(int index, ISimulinkModelElement element)
boolean
add(ISimulinkModelElement e)
boolean
addAll(int index, java.util.Collection<? extends ISimulinkModelElement> c)
boolean
addAll(java.util.Collection<? extends ISimulinkModelElement> c)
boolean
addPrimitive(java.lang.Object primitive)
void
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> c)
ISimulinkModelElement
get(int index)
protected abstract java.util.Iterator<ISimulinkModelElement>
getInternalIterator()
M
getManager()
java.util.List<P>
getPrimitive()
protected java.util.List<P>
getPrimitiveFromArray(java.lang.Object primitive)
protected java.util.List<P>
getPrimitiveFromList(java.util.List<?> primitive)
protected java.util.List<P>
getPrimitiveFromSingle(java.lang.Object primitive)
int
indexOf(java.lang.Object o)
boolean
isEmpty()
protected abstract boolean
isInstanceOf(java.lang.Object object)
protected abstract boolean
isInstanceOfPrimitive(java.lang.Object object)
protected abstract boolean
isInstanceOfPrimitiveArray(java.lang.Object object)
java.util.Iterator<ISimulinkModelElement>
iterator()
int
lastIndexOf(java.lang.Object o)
ISimulinkModelElement
remove(int index)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
boolean
removePrimitive(java.lang.Object primitive)
boolean
retainAll(java.util.Collection<?> c)
ISimulinkModelElement
set(int index, ISimulinkModelElement element)
int
size()
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] a)
-
-
-
Constructor Detail
-
AbstractSimulinkCollection
public AbstractSimulinkCollection(java.lang.Object primitive, M manager)
-
-
Method Detail
-
getPrimitiveFromSingle
protected java.util.List<P> getPrimitiveFromSingle(java.lang.Object primitive)
-
getPrimitiveFromList
protected java.util.List<P> getPrimitiveFromList(java.util.List<?> primitive)
-
getPrimitiveFromArray
protected java.util.List<P> getPrimitiveFromArray(java.lang.Object primitive)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
clear
public void clear()
-
iterator
public java.util.Iterator<ISimulinkModelElement> iterator()
-
remove
public ISimulinkModelElement remove(int index)
- Specified by:
remove
in interfacejava.util.List<E>
-
get
public ISimulinkModelElement get(int index)
- Specified by:
get
in interfacejava.util.List<E>
-
add
public boolean add(ISimulinkModelElement e)
-
addPrimitive
public boolean addPrimitive(java.lang.Object primitive)
-
removePrimitive
public boolean removePrimitive(java.lang.Object primitive)
-
set
public ISimulinkModelElement set(int index, ISimulinkModelElement element)
- Specified by:
set
in interfacejava.util.List<E>
-
add
public void add(int index, ISimulinkModelElement element)
- Specified by:
add
in interfacejava.util.List<E>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interfacejava.util.List<E>
-
contains
public boolean contains(java.lang.Object o)
-
remove
public boolean remove(java.lang.Object o)
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interfacejava.util.List<E>
-
addAll
public boolean addAll(java.util.Collection<? extends ISimulinkModelElement> c)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends ISimulinkModelElement> c)
- Specified by:
addAll
in interfacejava.util.List<E>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
getManager
public M getManager()
-
getPrimitive
public java.util.List<P> getPrimitive()
-
isInstanceOf
protected abstract boolean isInstanceOf(java.lang.Object object)
-
isInstanceOfPrimitive
protected abstract boolean isInstanceOfPrimitive(java.lang.Object object)
-
isInstanceOfPrimitiveArray
protected abstract boolean isInstanceOfPrimitiveArray(java.lang.Object object)
-
getInternalIterator
protected abstract java.util.Iterator<ISimulinkModelElement> getInternalIterator()
-
-