public class InvalidStore extends Object implements PersistentStore
PersistentStore which can be used by back-end implementations that do not provide transient layer.
All methods throws an UnsupportedOperationException.
NO_INDEX| Constructor and Description |
|---|
InvalidStore()
Constructs a new
InvalidStore. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(InternalEObject internalObject,
EStructuralFeature feature,
int index,
Object value)
Adds the value at the index in the
content of the object's feature. |
void |
clear(InternalEObject internalObject,
EStructuralFeature feature)
Removes all values form the
content of the object's feature |
boolean |
contains(InternalEObject internalObject,
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.
|
EObject |
eObject(Id id)
|
Object |
get(InternalEObject internalObject,
EStructuralFeature feature,
int index)
Returns the value at the index in the
content of the object's feature. |
EList<EObject> |
getAllInstances(EClass eClass,
boolean strict)
Back-end specific computation of
Resource.getAllContents(). |
InternalEObject |
getContainer(InternalEObject internalObject)
Returns the object's
container. |
EStructuralFeature |
getContainingFeature(InternalEObject internalObject)
Returns the object's
containing feature. |
int |
hashCode(InternalEObject internalObject,
EStructuralFeature feature)
Returns the hash code of the
content of the object's feature. |
int |
indexOf(InternalEObject internalObject,
EStructuralFeature feature,
Object value)
Returns the first index of the given value in the
content of the object's feature. |
boolean |
isEmpty(InternalEObject internalObject,
EStructuralFeature feature)
Returns whether the
content of the object's feature is empty. |
boolean |
isSet(InternalEObject internalObject,
EStructuralFeature feature)
Returns whether the object's feature is considered set.
|
int |
lastIndexOf(InternalEObject internalObject,
EStructuralFeature feature,
Object value)
Returns the last index of the given value in the
content of the object's feature. |
Object |
move(InternalEObject internalObject,
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 internalObject,
EStructuralFeature feature,
int index)
Removes the value at the index in the
content of the object's feature. |
Resource |
resource()
Returns the
Resource to persist and access. |
void |
save()
Saves the modifications of the owned
EObjects in the persistence back-end. |
Object |
set(InternalEObject internalObject,
EStructuralFeature feature,
int index,
Object value)
Sets the value at the index in the
content of the object's feature. |
int |
size(InternalEObject internalObject,
EStructuralFeature feature)
Returns the number of values in the
content of the object's feature. |
Object[] |
toArray(InternalEObject internalObject,
EStructuralFeature feature)
Returns a new array of the values in the
content of the object's feature. |
<T> T[] |
toArray(InternalEObject internalObject,
EStructuralFeature feature,
T[] array)
Returns an array of the values in the
content of the object's feature. |
void |
unset(InternalEObject internalObject,
EStructuralFeature feature)
Unsets the feature of the object.
|
public Object get(InternalEObject internalObject, EStructuralFeature feature, int index)
org.eclipse.emf.ecore.InternalEObject.EStorecontent of the object's feature.get in interface InternalEObject.EStoreinternalObject - the object in question.feature - a feature of the object.index - an index within the content or InternalEObject.EStore.NO_INDEX.public Object set(InternalEObject internalObject, EStructuralFeature feature, int index, Object value)
org.eclipse.emf.ecore.InternalEObject.EStorecontent of the object's feature.set in interface InternalEObject.EStoreinternalObject - 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 boolean isSet(InternalEObject internalObject, EStructuralFeature feature)
org.eclipse.emf.ecore.InternalEObject.EStoreisSet in interface InternalEObject.EStoreinternalObject - the object in question.feature - a feature of the object.true if the object's feature is considered set.public void unset(InternalEObject internalObject, EStructuralFeature feature)
org.eclipse.emf.ecore.InternalEObject.EStoreunset in interface InternalEObject.EStoreinternalObject - the object in question.feature - a feature of the object.public boolean isEmpty(InternalEObject internalObject, EStructuralFeature feature)
org.eclipse.emf.ecore.InternalEObject.EStorecontent of the object's feature is empty.isEmpty in interface InternalEObject.EStoreinternalObject - 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 internalObject, EStructuralFeature feature)
org.eclipse.emf.ecore.InternalEObject.EStorecontent of the object's feature.size in interface InternalEObject.EStoreinternalObject - the object in question.feature - a many-valued feature of the object.public boolean contains(InternalEObject internalObject, EStructuralFeature feature, Object value)
org.eclipse.emf.ecore.InternalEObject.EStorecontent of the object's feature contains the given value.contains in interface InternalEObject.EStoreinternalObject - 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 internalObject, EStructuralFeature feature, Object value)
org.eclipse.emf.ecore.InternalEObject.EStorecontent of the object's feature.indexOf in interface InternalEObject.EStoreinternalObject - the object in question.feature - a many-valued feature of the object.value - the value in question.public int lastIndexOf(InternalEObject internalObject, EStructuralFeature feature, Object value)
org.eclipse.emf.ecore.InternalEObject.EStorecontent of the object's feature.lastIndexOf in interface InternalEObject.EStoreinternalObject - the object in question.feature - a many-valued feature of the object.value - the value in question.public void add(InternalEObject internalObject, EStructuralFeature feature, int index, Object value)
org.eclipse.emf.ecore.InternalEObject.EStorecontent of the object's feature.add in interface InternalEObject.EStoreinternalObject - 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 internalObject, EStructuralFeature feature, int index)
org.eclipse.emf.ecore.InternalEObject.EStorecontent of the object's feature.remove in interface InternalEObject.EStoreinternalObject - 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 internalObject, EStructuralFeature feature, int targetIndex, int sourceIndex)
org.eclipse.emf.ecore.InternalEObject.EStorecontent of the object's feature
to the target index.move in interface InternalEObject.EStoreinternalObject - 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 internalObject, EStructuralFeature feature)
org.eclipse.emf.ecore.InternalEObject.EStorecontent of the object's featureclear in interface InternalEObject.EStoreinternalObject - the object in question.feature - a many-valued feature of the object.public Object[] toArray(InternalEObject internalObject, EStructuralFeature feature)
org.eclipse.emf.ecore.InternalEObject.EStorecontent of the object's feature.toArray in interface InternalEObject.EStoreinternalObject - the object in question.feature - a many-valued feature of the object.public <T> T[] toArray(InternalEObject internalObject, EStructuralFeature feature, T[] array)
org.eclipse.emf.ecore.InternalEObject.EStorecontent 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.EStoreinternalObject - the object in question.feature - a many-valued feature of the object.array - the array to fill.public int hashCode(InternalEObject internalObject, EStructuralFeature feature)
org.eclipse.emf.ecore.InternalEObject.EStorecontent of the object's feature.hashCode in interface InternalEObject.EStoreinternalObject - the object in question.feature - a many-valued feature of the object.public InternalEObject getContainer(InternalEObject internalObject)
org.eclipse.emf.ecore.InternalEObject.EStorecontainer.getContainer in interface InternalEObject.EStoreEObject.eContainer()public EStructuralFeature getContainingFeature(InternalEObject internalObject)
org.eclipse.emf.ecore.InternalEObject.EStorecontaining feature.getContainingFeature in interface InternalEObject.EStoreEObject.eContainingFeature()public EObject create(EClass eClass)
org.eclipse.emf.ecore.InternalEObject.EStorecreate in interface InternalEObject.EStoreeClass - the class to instantiate.public Resource resource()
PersistentStoreResource to persist and access.resource in interface PersistentStorepublic EObject eObject(Id id)
PersistentStoreeObject in interface PersistentStoreid - the identifier of the EObject to resolveEObject, or null if no EObject can be resolvedpublic EList<EObject> getAllInstances(EClass eClass, boolean strict)
PersistentStoreResource.getAllContents().getAllInstances in interface PersistentStoreeClass - the EClass to compute the instances ofstrict - true if the lookup searches for strict instancesEList containing all the EObjects that are instances of the given EClasspublic void save()
PersistentStoreEObjects in the persistence back-end.save in interface PersistentStoreCopyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.