public class UMLElementKindExtractor
extends AbstractContentExtractor
If an element kind is not specified (in the constructor), this extractor will extract all UML2 elements owned by the source UML2 object.
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.ecore.EClass |
elementKind
Remember the model element kind.
|
Constructor and Description |
---|
UMLElementKindExtractor()
The default constructor should only be used internally by the
transformation service.
|
UMLElementKindExtractor(java.lang.String id,
AbstractTransform transform,
org.eclipse.emf.ecore.EClass elementKind)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection |
execute(ITransformContext context) |
void |
setLanguageElementKind(org.eclipse.emf.ecore.EClass elementKind)
Define the language element kind to match the extracted elements.
|
protected org.eclipse.emf.ecore.EClass elementKind
public UMLElementKindExtractor()
public UMLElementKindExtractor(java.lang.String id, AbstractTransform transform, org.eclipse.emf.ecore.EClass elementKind)
id
- A unique id for the extractor.transform
- An associated transform to process the UML elements.elementKind
- An EMF element kind to extract.public final java.util.Collection execute(ITransformContext context)
public void setLanguageElementKind(org.eclipse.emf.ecore.EClass elementKind)
elementKind
- An EMF element kind to extract.