be.ac.vub.cocompose.io.xmi
Class XMIElementTypeSwitch

java.lang.Object
  extended bybe.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.10, 11/05/2004
Author:
Dennis Wagelaar

Constructor Summary
XMIElementTypeSwitch(ModelFactory factory)
           
 
Method Summary
 ModelElement createElement(String type)
          Creates a CoCompose element of the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMIElementTypeSwitch

public XMIElementTypeSwitch(ModelFactory factory)
                     throws ModelElementException
Method Detail

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