}
private List getList(Object component, Object modelObject)
{
List result = null;
Definition definition = (Definition)component;
// todo... use WSDLSwitch
//
if (modelObject instanceof Binding)
{
result = definition.getEBindings();
}
else if (modelObject instanceof Import)
{
result = definition.getEImports();
}
else if (modelObject instanceof Message)
{
result = definition.getEMessages();
}
else if (modelObject instanceof PortType)
{
result = definition.getEPortTypes();
}
else if (modelObject instanceof Service)
{
result = definition.getEServices();
}
else if (modelObject instanceof ExtensibilityElement)
{
result = definition.getEExtensibilityElements();
}
return result;
}