|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAdapterImpl
org.eclipse.stp.core.infrastructure.emf.FeatureAdapter
public final class FeatureAdapter
A FeatureAdapter provides the feature that a given EObject should be persisted as. Each feature represents a possible substitution group from a (potentially) custom package.
Usage:
ACustomModelImplementation implementation =
ACustomModelFactory.eINSTANCE.createACustomModelImplementation();
implementation.setCustomProperty(...);
FeatureAdapter.setFeature(implementation,
ACustomModelPackage.eINSTANCE.getDocumentRoot_ImplementationACustomModel());
|
For more information, take a look at Properties Implementation in com.ibm.ccl.soa.core.tests. In that plugin, see schemas/ for defining the EMF model, and props-ext-model/ for the generated version of the model.
Field Summary | |
---|---|
static java.lang.String |
ADAPTER_TYPE
The adapter type to search for when looking for the FeatureAdapter. |
Method Summary | |
---|---|
static FeatureAdapter |
findAdapter(EObject anObject)
|
EStructuralFeature |
getFeature()
|
static EStructuralFeature |
getFeature(EObject anObject)
This method may return null. |
boolean |
isAdapterForType(java.lang.Object type)
|
static void |
setFeature(EObject anObject,
EStructuralFeature aFeature)
Add a FeatureAdapter on the given object for the given feature if not already present. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ADAPTER_TYPE
EcoreUtil#getAdapter(java.util.List, java.lang.Object)
Method Detail |
---|
public static EStructuralFeature getFeature(EObject anObject)
This method may return null.
anObject
- The object representing a substitution group.
public static void setFeature(EObject anObject, EStructuralFeature aFeature)
anObject
- The object representing a substitution group.aFeature
- The feature that represents how the element should be persisted.public static FeatureAdapter findAdapter(EObject anObject)
anObject
- The object to search for the FeatureAdapter.
ADAPTER_TYPE
from the given object, or
null if not found.public boolean isAdapterForType(java.lang.Object type)
public EStructuralFeature getFeature()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |