Interface IUObjectConverterServiceProvider
-
public interface IUObjectConverterServiceProvider
Interface for convertTypeItem
to universal type. Implementation of this interface collects all ofIUObjectConverter
from extension point "uObjectconverterProvider"
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeItem
convert(TypeItem type, Version version, Map<String,TypeItem> earlierComputedUTypes, org.eclipse.emf.ecore.resource.Resource resource)
ConvertsTypeItem
to universal typeTypeItem
convert(TypeItem type, Version version, org.eclipse.emf.ecore.resource.Resource resource)
ConvertsTypeItem
to universal typeboolean
hasConverter(TypeItem type, Version version)
Checks thattype
has converter to universal type
-
-
-
Method Detail
-
hasConverter
boolean hasConverter(TypeItem type, Version version)
Checks thattype
has converter to universal type- Parameters:
type
- checkingTypeItem
, can't benull
version
- actual configuration version for convertingtype
. Can't benull
- Returns:
true
if converter was found,false
otherwise
-
convert
TypeItem convert(TypeItem type, Version version, org.eclipse.emf.ecore.resource.Resource resource)
ConvertsTypeItem
to universal type- Parameters:
type
- convertingTypeItem
, can't benull
version
- actual configuration version for convertingtype
. Can't benull
resource
- actualResource
for resolving, can't benull
- Returns:
- universal type corresponding to
type
. Nevernull
- Throws:
IllegalArgumentException
- if converter wasn't found for this type and version
-
convert
TypeItem convert(TypeItem type, Version version, Map<String,TypeItem> earlierComputedUTypes, org.eclipse.emf.ecore.resource.Resource resource)
ConvertsTypeItem
to universal type- Parameters:
type
- convertingTypeItem
, can't benull
version
- actual configuration version for convertingtype
. Can't benull
earlierComputedUTypes
- map - contains universal types were computed earlier. (type name; its universal type), can benull
if universal types weren't computed earlierresource
- actualResource
for resolving, can't benull
- Returns:
- universal type corresponding to
type
. Nevernull
- Throws:
IllegalArgumentException
- if converter wasn't found for this type and version
-
-