|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.compare.util.EFactory
public final class EFactory
This is a factory for an ecore metamodel. There is a factory by package. Each factory is used to create instances of classifiers.
| Method Summary | ||
|---|---|---|
static
|
eAdd(org.eclipse.emf.ecore.EObject object,
java.lang.String name,
T arg)
Adds the new value of the given feature of the object. |
|
static
|
eAdd(org.eclipse.emf.ecore.EObject object,
java.lang.String name,
T arg,
int elementIndex)
Adds the new value of the given feature of the object. |
|
static java.lang.Object |
eGet(org.eclipse.emf.ecore.EObject object,
java.lang.String name)
Gets the value of the given feature of the object. |
|
static java.util.List<?> |
eGetAsList(org.eclipse.emf.ecore.EObject object,
java.lang.String name)
Gets the value of the given feature of the object as a List. |
|
static java.lang.String |
eGetAsString(org.eclipse.emf.ecore.EObject object,
java.lang.String name)
Gets the value of the given feature of the object as a String. |
|
static
|
eInsertAt(org.eclipse.emf.ecore.EObject object,
java.lang.String name,
T arg,
int insertionIndex)
Adds the new value of the given feature of the object at the given index. |
|
static void |
eRemove(org.eclipse.emf.ecore.EObject object,
java.lang.String name,
java.lang.Object arg)
Removes the value of the given feature of the object. |
|
static void |
eSet(org.eclipse.emf.ecore.EObject object,
java.lang.String name,
java.lang.Object arg)
Sets the value of the given feature of the object to the new value. |
|
static org.eclipse.emf.ecore.EStructuralFeature |
eStructuralFeature(org.eclipse.emf.ecore.EObject object,
java.lang.String name)
Gets the structural feature of the given feature name of the object. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> void eAdd(org.eclipse.emf.ecore.EObject object,
java.lang.String name,
T arg)
throws FactoryException
T - Type of the new value to be added to the list.object - Object on which we want to add to the feature values list.name - The name of the feature to add to.arg - New value to add to the feature values.
FactoryException - Thrown if the affectation fails.
public static <T> void eAdd(org.eclipse.emf.ecore.EObject object,
java.lang.String name,
T arg,
int elementIndex)
throws FactoryException
T - Type of the new value to be added to the list.object - Object on which we want to add to the feature values list.name - The name of the feature to add to.arg - New value to add to the feature values.elementIndex - in case the feature is multiplicity-many, specify the index where the new value has to be
added. If the index is -1, the value will be appended to the feature list.
FactoryException - Thrown if the affectation fails.
public static <T> void eInsertAt(org.eclipse.emf.ecore.EObject object,
java.lang.String name,
T arg,
int insertionIndex)
throws FactoryException
T - Type of the new value to be added to the list.object - Object on which we want to add to the feature values list.name - The name of the feature to add to.arg - New value to add to the feature values.insertionIndex - Index in the list at which the new value is to be added.
FactoryException - Thrown if the affectation fails.
public static java.lang.Object eGet(org.eclipse.emf.ecore.EObject object,
java.lang.String name)
throws FactoryException
object - Object to retrieve the feature value from.name - The feature name, or a method defined on EObject like 'eClass', 'eResource',
'eContainer', 'eContainingFeature', 'eContainmentFeature', 'eContents', 'eAllContents',
'eCrossReferences'
FactoryException - Thrown if the retrieval fails.
public static java.util.List<?> eGetAsList(org.eclipse.emf.ecore.EObject object,
java.lang.String name)
throws FactoryException
object - Object to retrieve the feature value from.name - Name of the feature to get the value for.
nullFactoryException - Thrown if the retrieval fails.
public static java.lang.String eGetAsString(org.eclipse.emf.ecore.EObject object,
java.lang.String name)
throws FactoryException
object - Object to retrieve the feature value from.name - Name of the feature to get the value for.
null if this value isn't a String.
FactoryException - Thrown if the retrieval fails.
public static void eRemove(org.eclipse.emf.ecore.EObject object,
java.lang.String name,
java.lang.Object arg)
throws FactoryException
object - Object on which we want to remove from the feature values list.name - The name of the feature to remove from.arg - Value to remove from the feature values, can be null.
FactoryException - Thrown if the removal fails.
public static void eSet(org.eclipse.emf.ecore.EObject object,
java.lang.String name,
java.lang.Object arg)
throws FactoryException
object - Object on which we want to set the feature value.name - The name of the feature to set.arg - New value to affect to the feature.
FactoryException - Thrown if the affectation fails.
public static org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature(org.eclipse.emf.ecore.EObject object,
java.lang.String name)
throws FactoryException
object - Object to retrieve the feature from.name - Name of the feature to retrieve.
name of object.
FactoryException - Thrown if the retrieval fails.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||