|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecore.impl.EStoreEObjectImpl.EStoreImpl
public static class EStoreEObjectImpl.EStoreImpl
This class is for testing purposes only and will be removed.
Nested Class Summary | |
---|---|
static class |
EStoreEObjectImpl.EStoreImpl.Entry
|
Field Summary | |
---|---|
protected java.util.Map<EStoreEObjectImpl.EStoreImpl.Entry,java.lang.Object> |
map
|
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject.EStore |
---|
NO_INDEX |
Constructor Summary | |
---|---|
EStoreEObjectImpl.EStoreImpl()
|
Method Summary | ||
---|---|---|
void |
add(InternalEObject eObject,
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 eObject,
EStructuralFeature feature)
Removes all values form the content of the object's feature |
|
boolean |
contains(InternalEObject eObject,
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 eObject,
EStructuralFeature feature,
int index)
Returns the value at the index in the content of the object's feature. |
|
InternalEObject |
getContainer(InternalEObject eObject)
Returns the object's container . |
|
EStructuralFeature |
getContainingFeature(InternalEObject eObject)
Returns the object's containing feature . |
|
protected EList<java.lang.Object> |
getList(EStoreEObjectImpl.EStoreImpl.Entry entry)
|
|
int |
hashCode(InternalEObject eObject,
EStructuralFeature feature)
Returns the hash code of the content of the object's feature. |
|
int |
indexOf(InternalEObject eObject,
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 eObject,
EStructuralFeature feature)
Returns whether the content of the object's feature is empty. |
|
boolean |
isSet(InternalEObject eObject,
EStructuralFeature feature)
Returns whether the object's feature is considered set. |
|
int |
lastIndexOf(InternalEObject eObject,
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 eObject,
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 eObject,
EStructuralFeature feature,
int index)
Removes the value at the index in the content of the object's feature. |
|
java.lang.Object |
set(InternalEObject eObject,
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 eObject,
EStructuralFeature feature)
Returns the number of values in the content of the object's feature. |
|
java.lang.Object[] |
toArray(InternalEObject eObject,
EStructuralFeature feature)
Returns a new array of the values in the content of the object's feature. |
|
|
toArray(InternalEObject eObject,
EStructuralFeature feature,
T[] array)
Returns an array of the values in the content of the object's feature. |
|
void |
unset(InternalEObject eObject,
EStructuralFeature feature)
Unsets the feature of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<EStoreEObjectImpl.EStoreImpl.Entry,java.lang.Object> map
Constructor Detail |
---|
public EStoreEObjectImpl.EStoreImpl()
Method Detail |
---|
protected EList<java.lang.Object> getList(EStoreEObjectImpl.EStoreImpl.Entry entry)
public java.lang.Object get(InternalEObject eObject, EStructuralFeature feature, int index)
InternalEObject.EStore
content
of the object's feature.
get
in interface InternalEObject.EStore
eObject
- the object in question.feature
- a feature of the object.index
- an index within the content or InternalEObject.EStore.NO_INDEX
.
public java.lang.Object set(InternalEObject eObject, EStructuralFeature feature, int index, java.lang.Object value)
InternalEObject.EStore
content
of the object's feature.
set
in interface InternalEObject.EStore
eObject
- the object in question.feature
- a feature of the object.index
- an index within the content or InternalEObject.EStore.NO_INDEX
.value
- the new value.
public void add(InternalEObject eObject, EStructuralFeature feature, int index, java.lang.Object value)
InternalEObject.EStore
content
of the object's feature.
add
in interface InternalEObject.EStore
eObject
- the object in question.feature
- a many-valued
feature of the object.index
- an index within the content.value
- the value to add.public java.lang.Object remove(InternalEObject eObject, EStructuralFeature feature, int index)
InternalEObject.EStore
content
of the object's feature.
remove
in interface InternalEObject.EStore
eObject
- 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 java.lang.Object move(InternalEObject eObject, EStructuralFeature feature, int targetIndex, int sourceIndex)
InternalEObject.EStore
content
of the object's feature
to the target index.
move
in interface InternalEObject.EStore
eObject
- 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 eObject, EStructuralFeature feature)
InternalEObject.EStore
content
of the object's feature
clear
in interface InternalEObject.EStore
eObject
- the object in question.feature
- a many-valued
feature of the object.public boolean isSet(InternalEObject eObject, EStructuralFeature feature)
InternalEObject.EStore
isSet
in interface InternalEObject.EStore
eObject
- the object in question.feature
- a feature of the object.
true
if the object's feature is considered set.public void unset(InternalEObject eObject, EStructuralFeature feature)
InternalEObject.EStore
unset
in interface InternalEObject.EStore
eObject
- the object in question.feature
- a feature of the object.public int size(InternalEObject eObject, EStructuralFeature feature)
InternalEObject.EStore
content
of the object's feature.
size
in interface InternalEObject.EStore
eObject
- the object in question.feature
- a many-valued
feature of the object.
public int indexOf(InternalEObject eObject, EStructuralFeature feature, java.lang.Object value)
InternalEObject.EStore
content
of the object's feature.
indexOf
in interface InternalEObject.EStore
eObject
- the object in question.feature
- a many-valued
feature of the object.value
- the value in question.
public int lastIndexOf(InternalEObject eObject, EStructuralFeature feature, java.lang.Object value)
InternalEObject.EStore
content
of the object's feature.
lastIndexOf
in interface InternalEObject.EStore
eObject
- the object in question.feature
- a many-valued
feature of the object.value
- the value in question.
public java.lang.Object[] toArray(InternalEObject eObject, EStructuralFeature feature)
InternalEObject.EStore
content
of the object's feature.
toArray
in interface InternalEObject.EStore
eObject
- the object in question.feature
- a many-valued
feature of the object.
public <T> T[] toArray(InternalEObject eObject, EStructuralFeature feature, T[] array)
InternalEObject.EStore
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.
toArray
in interface InternalEObject.EStore
eObject
- the object in question.feature
- a many-valued
feature of the object.array
- the array to fill.
public boolean isEmpty(InternalEObject eObject, EStructuralFeature feature)
InternalEObject.EStore
content
of the object's feature is empty.
isEmpty
in interface InternalEObject.EStore
eObject
- the object in question.feature
- a many-valued
feature of the object.
true
if the content of the object's feature is empty.public boolean contains(InternalEObject eObject, EStructuralFeature feature, java.lang.Object value)
InternalEObject.EStore
content
of the object's feature contains the given value.
contains
in interface InternalEObject.EStore
eObject
- 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 hashCode(InternalEObject eObject, EStructuralFeature feature)
InternalEObject.EStore
content
of the object's feature.
hashCode
in interface InternalEObject.EStore
eObject
- the object in question.feature
- a many-valued
feature of the object.
public InternalEObject getContainer(InternalEObject eObject)
InternalEObject.EStore
container
.
getContainer
in interface InternalEObject.EStore
EObject.eContainer()
public EStructuralFeature getContainingFeature(InternalEObject eObject)
InternalEObject.EStore
containing feature
.
getContainingFeature
in interface InternalEObject.EStore
EObject.eContainingFeature()
public EObject create(EClass eClass)
InternalEObject.EStore
create
in interface InternalEObject.EStore
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 |