IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.transform.uml2
Class UMLSubtypeOfKindExtractor

java.lang.Object
  extended bycom.ibm.xtools.transform.core.AbstractTransformElement
      extended bycom.ibm.xtools.transform.core.AbstractContentExtractor
          extended bycom.ibm.xtools.transform.uml2.UMLElementKindExtractor
              extended bycom.ibm.xtools.transform.uml2.UMLSubtypeOfKindExtractor
All Implemented Interfaces:
ITransformationItem

public class UMLSubtypeOfKindExtractor
extends UMLElementKindExtractor

This generic UML extractor class provides a convenient way to navigate the containment hierarchy of a UML source element. It will retrieve contained elements where the element has an element kind (eClass) that is a subtype of the specified kind. For example, if the element kind specified in the constructor is "classifiers", then an owned element of type "class" will be extracted.

If an element kind is not specified (in the constructor), this extractor will extract all UML2 elements owned by the source UML2 object.


Field Summary
 
Fields inherited from class com.ibm.xtools.transform.uml2.UMLElementKindExtractor
elementKind
 
Constructor Summary
UMLSubtypeOfKindExtractor()
          The default constructor should only be used internally by the transformation service.
UMLSubtypeOfKindExtractor(String id, AbstractTransform transform, org.eclipse.emf.ecore.EClass elementKind)
          Constructor
 
Methods inherited from class com.ibm.xtools.transform.uml2.UMLElementKindExtractor
execute, setLanguageElementKind
 
Methods inherited from class com.ibm.xtools.transform.core.AbstractContentExtractor
getFilterCondition, getTransform, setFilterCondition, setTransform, toString
 
Methods inherited from class com.ibm.xtools.transform.core.AbstractTransformElement
canAccept, getAcceptCondition, getDescription, getId, getName, getProgressMonitor, setAcceptCondition, setDescription, setId, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UMLSubtypeOfKindExtractor

public UMLSubtypeOfKindExtractor()
The default constructor should only be used internally by the transformation service.


UMLSubtypeOfKindExtractor

public UMLSubtypeOfKindExtractor(String id,
                                 AbstractTransform transform,
                                 org.eclipse.emf.ecore.EClass elementKind)
Constructor

Parameters:
id - A unique id for the extractor.
transform - An associated transform to process the UML elements.
elementKind - A UML2 element kind to extract.

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.