|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectjava.util.AbstractCollection
com.ibm.able.rules.AbleOclCollection
com.ibm.able.rules.AbleOclSequence
This class defines an OCL Sequence. The underlying implementation is built on java.util.ArrayList and its methods are surfaced as well.
| Field Summary |
|---|
| Fields inherited from class com.ibm.able.rules.AbleOclCollection |
|---|
myCollection |
| Constructor Summary | |
|---|---|
AbleOclSequence()
Create a new, empty Sequence. |
|
AbleOclSequence(AbleOclCollection theAbleOclCollection)
Create a new Sequence based on the specified OCL collection. |
|
AbleOclSequence(java.util.Collection theCollection)
Create a new Sequence based on the specified Java collection. |
|
| Method Summary | |
|---|---|
void |
add(int theIndex,
java.lang.Object theObject)
|
boolean |
addAll(int theIndex,
java.util.Collection theCollection)
|
AbleOclCollection |
append(java.lang.Object theObject)
Returns a new collection that is this collection with the specified object added at the end. |
java.lang.Object |
at(int thePosition)
Returns the element at the specified location. |
java.lang.Object |
clone()
|
void |
ensureCapacity(int theInitialCapacity)
|
boolean |
eq(java.lang.Object theObject)
|
boolean |
equals(java.lang.Object theObject)
Returns true iff this sequence and the argument have the same number of the same elements in the same order. |
AbleOclCollection |
excluding(java.lang.Object theObject)
Returns a new collection comprised of this collection with the specified object removed. |
java.lang.Object |
first()
Returns the first element of the collection. |
AbleOclCollection |
flatten()
Flattens the elements of this collection. |
java.lang.Object |
get(int theIndex)
|
int |
hashCode()
|
AbleOclCollection |
including(java.lang.Object theObject)
Returns a new collection comprised of this collection and the specified object. |
int |
indexOf(java.lang.Object theObject)
Returns the position of the specified element. |
AbleOclCollection |
insertAt(int thePosition,
java.lang.Object theObject)
Returns a new collection that is this collection with the specified object inserted at the specified location. |
java.lang.Object |
last()
Returns the last element of the collection. |
int |
lastIndexOf(java.lang.Object theObject)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int theIndex)
|
AbleOclCollection |
prepend(java.lang.Object theObject)
Returns a new collection that is this collection with the specified object added at the beginning. |
java.lang.Object |
remove(int theIndex)
|
java.lang.Object |
set(int theIndex,
java.lang.Object theObject)
|
void |
setCollection(java.util.Collection theCollection)
Sets the value of the underlying collection to be the specified collection. |
java.util.List |
subList(int theFromIndex,
int theToIndex)
|
AbleOclSequence |
subSequence(int theFirstPosition,
int theLastPosition)
Returns a new Sequence that is a portion of this Sequence. |
void |
trimToSize()
|
AbleOclSequence |
union(AbleOclSequence theSequence)
Returns a new Sequence that is the union of this Sequence and the specified Sequence. |
| Methods inherited from class com.ibm.able.rules.AbleOclCollection |
|---|
add, addAll, any, asBag, asOrderedSet, asSequence, asSet, clear, collect, contains, containsAll, count, difference, excludes, excludesAll, exists, flatten, forAll, getCollection, hasAtLeast, hasAtMost, hasBetween, hasExactly, includes, includesAll, intersection, intersection, intersection, isEmpty, isUnique, iterator, notEmpty, one, product, reject, remove, removeAll, retainAll, select, size, subOrderedSet, sum, symmetricDifference, toArray, toArray, union, union |
| Methods inherited from class java.util.AbstractCollection |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Constructor Detail |
public AbleOclSequence()
public AbleOclSequence(java.util.Collection theCollection)
theCollection - A collection on which to base the new Sequence.
public AbleOclSequence(AbleOclCollection theAbleOclCollection)
theAbleOclCollection - A collection on which to base the new Sequence.
| Method Detail |
public AbleOclCollection flatten()
AbleOclCollection
flatten in class AbleOclCollectionpublic AbleOclCollection including(java.lang.Object theObject)
AbleOclCollection
including in class AbleOclCollectiontheObject - An element to add to the new collection.
public AbleOclCollection excluding(java.lang.Object theObject)
AbleOclCollection
excluding in class AbleOclCollectiontheObject - An element to remove from the new collection.
public AbleOclCollection append(java.lang.Object theObject)
AbleOclCollection
append in class AbleOclCollectiontheObject - An element to add to the end of the new collection.
public AbleOclCollection prepend(java.lang.Object theObject)
AbleOclCollection
prepend in class AbleOclCollectiontheObject - An element to add to the beginning of the new
collection.
public AbleOclCollection insertAt(int thePosition,
java.lang.Object theObject)
AbleOclCollection
insertAt in class AbleOclCollectionthePosition - The location at which to insert the specified
element.
theObject - An element to insert in the new collection.
public java.lang.Object at(int thePosition)
AbleOclCollection
at in class AbleOclCollectionthePosition - The location of the element to return.
public java.lang.Object first()
AbleOclCollection
first in class AbleOclCollectionpublic int indexOf(java.lang.Object theObject)
AbleOclCollection
indexOf in interface java.util.ListindexOf in class AbleOclCollectiontheObject - The element for which to search.
public java.lang.Object last()
AbleOclCollection
last in class AbleOclCollection
public AbleOclSequence subSequence(int theFirstPosition,
int theLastPosition)
AbleOclCollection
subSequence in class AbleOclCollectiontheFirstPosition - The position of the first element to include.
theLastPosition - The position of the last element to include.
public AbleOclSequence union(AbleOclSequence theSequence)
AbleOclCollection
union in class AbleOclCollectiontheSequence - A Sequence to examine with this Sequence.
public void setCollection(java.util.Collection theCollection)
AbleOclCollection
setCollection in class AbleOclCollectiontheCollection - The collection that is to be the value of this
collection.
public boolean eq(java.lang.Object theObject)
public void add(int theIndex,
java.lang.Object theObject)
add in interface java.util.List
public boolean addAll(int theIndex,
java.util.Collection theCollection)
addAll in interface java.util.Listpublic boolean equals(java.lang.Object theObject)
equals in interface java.util.Listpublic java.lang.Object get(int theIndex)
get in interface java.util.Listpublic int hashCode()
hashCode in interface java.util.Listpublic int lastIndexOf(java.lang.Object theObject)
lastIndexOf in interface java.util.Listpublic java.util.ListIterator listIterator()
listIterator in interface java.util.Listpublic java.util.ListIterator listIterator(int theIndex)
listIterator in interface java.util.Listpublic java.lang.Object remove(int theIndex)
remove in interface java.util.List
public java.lang.Object set(int theIndex,
java.lang.Object theObject)
set in interface java.util.List
public java.util.List subList(int theFromIndex,
int theToIndex)
subList in interface java.util.Listpublic void ensureCapacity(int theInitialCapacity)
public void trimToSize()
public java.lang.Object clone()
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||