public interface Instance
The following features are supported:
MigrationPackage.getInstance()
Modifier and Type | Method and Description |
---|---|
void |
add(org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
Object value)
Add an element at a certain position to the value of the feature
|
void |
add(org.eclipse.emf.ecore.EStructuralFeature feature,
Object value)
Add an element to the value of the feature
|
void |
add(String featureName,
int index,
Object value)
Add an element at a certain position to the value of the feature
|
void |
add(String featureName,
Object value)
Add an element to the value of the feature
|
Instance |
copy()
Get the value of the feature which is given by its name
|
<V> V |
evaluate(String expression)
Evaluate an OCL constraint with the instance as context
|
<V> V |
get(org.eclipse.emf.ecore.EStructuralFeature feature)
Get the value of the feature
|
<V> V |
get(String featureName)
Get the value of the feature which is given by its name
|
Instance |
getContainer()
Get the elements by which the instance is contained
|
org.eclipse.emf.ecore.EReference |
getContainerReference()
Get the reference by which the instance is contained
|
org.eclipse.emf.common.util.EList<Instance> |
getContents()
Get the elements which are contained by the instance
|
org.eclipse.emf.ecore.EClass |
getEClass()
Get the class to which the instance conforms
|
org.eclipse.emf.common.util.EList<Instance> |
getInverse(org.eclipse.emf.ecore.EReference reference)
Get the inverse value of the reference
|
org.eclipse.emf.common.util.EList<Instance> |
getInverse(String referenceName)
Get the inverse value of the reference
|
Instance |
getLink(org.eclipse.emf.ecore.EReference reference)
Get the value of the feature which is given by its name
|
Instance |
getLink(String referenceName)
Get the value of the feature which is given by its name
|
org.eclipse.emf.common.util.EList<Instance> |
getLinks(org.eclipse.emf.ecore.EReference reference)
Get the value of the feature which is given by its name
|
org.eclipse.emf.common.util.EList<Instance> |
getLinks(String referenceName)
Get the value of the feature which is given by its name
|
org.eclipse.emf.common.util.EList<ReferenceSlot> |
getReferences()
Returns the value of the 'References' reference list.
|
ModelResource |
getResource()
Get the resource in which this instance is contained
|
Slot |
getSlot(org.eclipse.emf.ecore.EStructuralFeature feature)
Get the slot that conforms to the feature
|
org.eclipse.emf.common.util.EList<Slot> |
getSlots()
Returns the value of the 'Slots' containment reference list.
|
Type |
getType()
Returns the value of the 'Type' container reference.
|
org.eclipse.emf.common.util.URI |
getUri()
Returns the value of the 'Uri' attribute.
|
String |
getUuid()
Returns the value of the 'Uuid' attribute.
|
boolean |
instanceOf(org.eclipse.emf.ecore.EClass eClass)
Check whether the instance is of a certain type (or its sub types)
|
boolean |
instanceOf(String className)
Check whether the instance is of a certain type (or its sub types)
|
boolean |
isProxy()
Find out whether the instance is a proxy, i.e.
|
boolean |
isSet(org.eclipse.emf.ecore.EStructuralFeature feature)
Check whether the value of a feature is set
|
void |
migrate(org.eclipse.emf.ecore.EClass eClass)
Change the type of instance to a different class
|
void |
migrate(String className)
Change the type of instance to a different class
|
void |
remove(org.eclipse.emf.ecore.EStructuralFeature feature,
int index)
Remove an element at a certain position from the value of the feature
|
void |
remove(org.eclipse.emf.ecore.EStructuralFeature feature,
Object value)
Remove an element from the value of the feature
|
void |
remove(String featureName,
Object value)
Remove an element from the value of the feature
|
void |
set(org.eclipse.emf.ecore.EStructuralFeature feature,
Object value)
Set the value of the feature
|
void |
set(String featureName,
Object value)
Set the value of a feature which is given by its name
|
void |
setType(Type value)
Sets the value of the '
Type ' container
reference. |
void |
setUri(org.eclipse.emf.common.util.URI value)
Sets the value of the '
Uri ' attribute. |
void |
setUuid(String value)
Sets the value of the '
Uuid ' attribute. |
<V> V |
unset(org.eclipse.emf.ecore.EStructuralFeature feature)
Unset the value of the feature
|
void |
validate()
Validate the elements rooted at the instance
|
boolean |
validate(org.eclipse.emf.common.util.DiagnosticChain chain)
Validate the elements rooted at the instance (added all the violations to a diagnostic)
|
org.eclipse.emf.common.util.EList<Slot> getSlots()
Slot
.
It is bidirectional and its opposite is 'Instance
'.
If the meaning of the 'Slots' containment reference list isn't clear, there really should be more of a description here...
The slots defined by the instanceMigrationPackage.getInstance_Slots()
,
Slot.getInstance()
Type getType()
Instances
'.
If the meaning of the 'Type' container reference isn't clear, there really should be more of a description here...
The type container to which the instance belongssetType(Type)
,
MigrationPackage.getInstance_Type()
,
Type.getInstances()
void setType(Type value)
Type
' container
reference.
value
- the new value of the 'Type' container reference.getType()
org.eclipse.emf.common.util.EList<ReferenceSlot> getReferences()
ReferenceSlot
.
It is bidirectional and its opposite is 'Values
'.
If the meaning of the 'References' reference list isn't clear, there really should be more of a description here...
The slots from which the instance is referencedMigrationPackage.getInstance_References()
,
ReferenceSlot.getValues()
org.eclipse.emf.common.util.URI getUri()
If the meaning of the 'Uri' attribute isn't clear, there really should be more of a description here...
The Uniform Resource Identifier (URI) of the instance in case the instance is a proxysetUri(URI)
,
MigrationPackage.getInstance_Uri()
void setUri(org.eclipse.emf.common.util.URI value)
Uri
' attribute.
value
- the new value of the 'Uri' attribute.getUri()
String getUuid()
If the meaning of the 'Uuid' attribute isn't clear, there really should be more of a description here...
The unique and unchangeable identifier of the instancesetUuid(String)
,
MigrationPackage.getInstance_Uuid()
void setUuid(String value)
Uuid
' attribute.
value
- the new value of the 'Uuid' attribute.getUuid()
<V> V get(org.eclipse.emf.ecore.EStructuralFeature feature)
feature
- Get the value of the feature
<V> V get(String featureName)
org.eclipse.emf.common.util.EList<Instance> getInverse(org.eclipse.emf.ecore.EReference reference)
Slot getSlot(org.eclipse.emf.ecore.EStructuralFeature feature)
org.eclipse.emf.ecore.EClass getEClass()
void set(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
void set(String featureName, Object value)
boolean isSet(org.eclipse.emf.ecore.EStructuralFeature feature)
<V> V unset(org.eclipse.emf.ecore.EStructuralFeature feature)
void add(org.eclipse.emf.ecore.EStructuralFeature feature, int index, Object value)
void add(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
void remove(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
void remove(org.eclipse.emf.ecore.EStructuralFeature feature, int index)
void migrate(org.eclipse.emf.ecore.EClass eClass)
boolean instanceOf(org.eclipse.emf.ecore.EClass eClass)
Instance getContainer()
org.eclipse.emf.common.util.EList<Instance> getContents()
void validate()
boolean validate(org.eclipse.emf.common.util.DiagnosticChain chain)
<V> V evaluate(String expression) throws MigrationException
MigrationException
org.eclipse.emf.ecore.EReference getContainerReference()
ModelResource getResource()
boolean isProxy()
void migrate(String className)
org.eclipse.emf.common.util.EList<Instance> getInverse(String referenceName)
Instance getLink(String referenceName)
org.eclipse.emf.common.util.EList<Instance> getLinks(String referenceName)
boolean instanceOf(String className)
void remove(String featureName, Object value)
void add(String featureName, int index, Object value)
Instance getLink(org.eclipse.emf.ecore.EReference reference)
org.eclipse.emf.common.util.EList<Instance> getLinks(org.eclipse.emf.ecore.EReference reference)
Instance copy()
Copyright © 2020. All rights reserved.