|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface InternalEObject.EStore
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,
java.lang.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,
java.lang.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. |
|
java.lang.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,
java.lang.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,
java.lang.Object value)
Returns the last index of the given value in the content of the object's feature. |
|
java.lang.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. |
|
java.lang.Object |
remove(InternalEObject object,
EStructuralFeature feature,
int index)
Removes the value at the index in the content of the object's feature. |
|
java.lang.Object |
set(InternalEObject object,
EStructuralFeature feature,
int index,
java.lang.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. |
|
java.lang.Object[] |
toArray(InternalEObject object,
EStructuralFeature feature)
Returns a new array of the values in the content of the object's feature. |
|
|
toArray(InternalEObject object,
EStructuralFeature feature,
T[] 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 |
|---|
static final int NO_INDEX
single-valued features
where an index would be meaningless.
| Method Detail |
|---|
java.lang.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.
java.lang.Object set(InternalEObject object,
EStructuralFeature feature,
int index,
java.lang.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.
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.
void unset(InternalEObject object,
EStructuralFeature feature)
object - the object in question.feature - a feature of the object.
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.
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.
boolean contains(InternalEObject object,
EStructuralFeature feature,
java.lang.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.
int indexOf(InternalEObject object,
EStructuralFeature feature,
java.lang.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.
int lastIndexOf(InternalEObject object,
EStructuralFeature feature,
java.lang.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.
void add(InternalEObject object,
EStructuralFeature feature,
int index,
java.lang.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.
java.lang.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.
java.lang.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.
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.
java.lang.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.
<T> T[] toArray(InternalEObject object,
EStructuralFeature feature,
T[] 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.
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.
InternalEObject getContainer(InternalEObject object)
container.
EObject.eContainer()EStructuralFeature getContainingFeature(InternalEObject object)
containing feature.
EObject.eContainingFeature()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 | |||||||||