|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An external backing store to which an object
may delegate all access.
Field Summary | |
static int |
NO_INDEX
A value indicating that no index is specified. |
Method Summary | |
void |
add(InternalEObject object,
EStructuralFeature feature,
int index,
Object value)
Adds the value at the index in the content of the object's feature. |
void |
clear(InternalEObject object,
EStructuralFeature feature)
Removes all values form the content of the object's feature |
boolean |
contains(InternalEObject object,
EStructuralFeature feature,
Object value)
Returns whether the content of the object's feature contains the given value. |
EObject |
create(EClass eClass)
Creates a new instance of the class. |
Object |
get(InternalEObject object,
EStructuralFeature feature,
int index)
Returns the value at the index in the content of the object's feature. |
InternalEObject |
getContainer(InternalEObject object)
Returns the object's container . |
EStructuralFeature |
getContainingFeature(InternalEObject object)
Returns the object's containing feature . |
int |
hashCode(InternalEObject object,
EStructuralFeature feature)
Returns the hash code of the content of the object's feature. |
int |
indexOf(InternalEObject object,
EStructuralFeature feature,
Object value)
Returns the first index of the given value in the content of the object's feature. |
boolean |
isEmpty(InternalEObject object,
EStructuralFeature feature)
Returns whether the content of the object's feature is empty. |
boolean |
isSet(InternalEObject object,
EStructuralFeature feature)
Returns whether the object's feature is considered set. |
int |
lastIndexOf(InternalEObject object,
EStructuralFeature feature,
Object value)
Returns the last index of the given value in the content of the object's feature. |
Object |
move(InternalEObject object,
EStructuralFeature feature,
int targetIndex,
int sourceIndex)
Moves the value at the source index in the content of the object's feature
to the target index. |
Object |
remove(InternalEObject object,
EStructuralFeature feature,
int index)
Removes the value at the index in the content of the object's feature. |
Object |
set(InternalEObject object,
EStructuralFeature feature,
int index,
Object value)
Sets the value at the index in the content of the object's feature. |
int |
size(InternalEObject object,
EStructuralFeature feature)
Returns the number of values in the content of the object's feature. |
Object[] |
toArray(InternalEObject object,
EStructuralFeature feature)
Returns a new array of the values in the content of the object's feature. |
Object[] |
toArray(InternalEObject object,
EStructuralFeature feature,
Object[] array)
Returns an array of the values in the content of the object's feature.
|
void |
unset(InternalEObject object,
EStructuralFeature feature)
Unsets the feature of the object. |
Field Detail |
public static final int NO_INDEX
single-valued
features
where an index would be meaningless.
Method Detail |
public Object get(InternalEObject object, EStructuralFeature feature, int index)
content
of the object's feature.
object
- the object in question.feature
- a feature of the object.index
- an index within the content or NO_INDEX
.
public Object set(InternalEObject object, EStructuralFeature feature, int index, Object value)
content
of the object's feature.
object
- the object in question.feature
- a feature of the object.index
- an index within the content or NO_INDEX
.value
- the new value.
public boolean isSet(InternalEObject object, EStructuralFeature feature)
object
- the object in question.feature
- a feature of the object.
true
if the object's feature is considered set.public void unset(InternalEObject object, EStructuralFeature feature)
object
- the object in question.feature
- a feature of the object.public boolean isEmpty(InternalEObject object, EStructuralFeature feature)
content
of the object's feature is empty.
object
- the object in question.feature
- a many-valued
feature of the object.
true
if the content of the object's feature is empty.public int size(InternalEObject object, EStructuralFeature feature)
content
of the object's feature.
object
- the object in question.feature
- a many-valued
feature of the object.
public boolean contains(InternalEObject object, EStructuralFeature feature, Object value)
content
of the object's feature contains the given value.
object
- the object in question.feature
- a many-valued
feature of the object.value
- the value in question.
true
if the content of the object's feature contains the given value.public int indexOf(InternalEObject object, EStructuralFeature feature, Object value)
content
of the object's feature.
object
- the object in question.feature
- a many-valued
feature of the object.value
- the value in question.
public int lastIndexOf(InternalEObject object, EStructuralFeature feature, Object value)
content
of the object's feature.
object
- the object in question.feature
- a many-valued
feature of the object.value
- the value in question.
public void add(InternalEObject object, EStructuralFeature feature, int index, Object value)
content
of the object's feature.
object
- the object in question.feature
- a many-valued
feature of the object.index
- an index within the content.value
- the value to add.public Object remove(InternalEObject object, EStructuralFeature feature, int index)
content
of the object's feature.
object
- the object in question.feature
- a many-valued
feature of the object.index
- the index within the feature's content of the value to remove.
public Object move(InternalEObject object, EStructuralFeature feature, int targetIndex, int sourceIndex)
content
of the object's feature
to the target index.
object
- the object in question.feature
- a many-valued
feature of the object.targetIndex
- the index within the feature's content to which to move the value.sourceIndex
- the index within the feature's content of the value to move.
public void clear(InternalEObject object, EStructuralFeature feature)
content
of the object's feature
object
- the object in question.feature
- a many-valued
feature of the object.public Object[] toArray(InternalEObject object, EStructuralFeature feature)
content
of the object's feature.
object
- the object in question.feature
- a many-valued
feature of the object.
public Object[] toArray(InternalEObject object, EStructuralFeature feature, Object[] array)
content
of the object's feature.
The given array will be used, unless it's too small, in which case a new array of the same type is allocated instead.
object
- the object in question.feature
- a many-valued
feature of the object.array
- the array to fill.
public int hashCode(InternalEObject object, EStructuralFeature feature)
content
of the object's feature.
object
- the object in question.feature
- a many-valued
feature of the object.
public InternalEObject getContainer(InternalEObject object)
container
.
EObject.eContainer()
public EStructuralFeature getContainingFeature(InternalEObject object)
containing feature
.
EObject.eContainingFeature()
public EObject create(EClass eClass)
eClass
- the class to instantiate.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |