be.ac.vub.cocompose.io.xmi
Class XMIElementTypeSwitch
java.lang.Object
be.ac.vub.cocompose.io.xmi.XMIElementTypeSwitch
- public class XMIElementTypeSwitch
- extends Object
Determines the CoCompose element type and returns a new instance of that type
- Since:
- 0.2.0
- Version:
- 0.2.0, 08/01/2004
- Author:
- Dennis Wagelaar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMIElementTypeSwitch
public XMIElementTypeSwitch(ModelFactory factory)
throws ModelElementException
createElement
public ModelElement createElement(String type)
- Creates a CoCompose element of the given type.
- Parameters:
type
- the element type
- Returns:
- the created element, or null if the type is not supported