eObjectStreamExceptionEDataType = createEDataType(EOBJECT_STREAM_EXCEPTION);
}
protected EClass createEClass(int id)
{
EClassImpl c;
switch(id) {
case ANY_TYPE_DATA_OBJECT:
c = new ClassImpl() {
List baseTypes = null;
public List getBaseTypes() {
if (baseTypes == null)
baseTypes = Collections.singletonList(getDataObject());
return baseTypes;
}
public List getTypeFeatures() {
return getEAllStructuralFeatures();
}
};
break;
case SIMPLE_ANY_TYPE_DATA_OBJECT:
c = new ClassImpl() {
List baseTypes = null;
public List getBaseTypes() {
if (baseTypes == null)
baseTypes = Collections.singletonList(getAnyTypeDataObject());
return baseTypes;
}
};
break;
default:
c = (EClassImpl)ecoreFactory.createEClass();
}
c.setClassifierID(id);
getEClassifiers().add(c);
return c;
}