Package com.strumenta.kolasu.emf
Class MetamodelBuilder
-
- All Implemented Interfaces:
-
com.strumenta.kolasu.emf.ClassifiersProvider
@Deprecated(message = "Deprecating everything EMF related") public final class MetamodelBuilder implements ClassifiersProvider
When building multiple related EPackages use MetamodelsBuilder instead.
-
-
Constructor Summary
Constructors Constructor Description MetamodelBuilder(String packageName, String nsURI, String nsPrefix, Resource resource)
-
Method Summary
Modifier and Type Method Description final Unit
addDataTypeHandler(EDataTypeHandler eDataTypeHandler)
Normally a class is not treated as a DataType, so we need specific DataTypeHandlers to recognize it as such final Unit
addEClassTypeHandler(EClassTypeHandler eClassTypeHandler)
This should be needed only to customize how we want to deal with a class when translating it to an EClass EDataType
provideDataType(KType ktype)
final Boolean
canProvideClass(KClass<?> kClass)
EClass
provideClass(KClass<?> kClass)
final EPackage
generate()
-
-
Method Detail
-
addDataTypeHandler
final Unit addDataTypeHandler(EDataTypeHandler eDataTypeHandler)
Normally a class is not treated as a DataType, so we need specific DataTypeHandlers to recognize it as such
-
addEClassTypeHandler
final Unit addEClassTypeHandler(EClassTypeHandler eClassTypeHandler)
This should be needed only to customize how we want to deal with a class when translating it to an EClass
-
provideDataType
EDataType provideDataType(KType ktype)
-
canProvideClass
final Boolean canProvideClass(KClass<?> kClass)
-
provideClass
EClass provideClass(KClass<?> kClass)
-
generate
final EPackage generate()
-
-
-
-