Class DistributionSupportUtil
java.lang.Object
com.e1c.g5.v8.dt.distribution.model.util.DistributionSupportUtil
DistributionSupport util.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DistributionSupportcreateDistributionSupport(ConfigurationFileState fileState) CreatesDistributionSupportinstance.static org.eclipse.emf.common.util.BasicEMap.Entry<UUID,ParentSupportMode> createDistributiveMapEntry(DistributionSupport distributionSupport, UUID key, ParentSupportMode value) Creates the distributive map entrycreateObjectModuleMapEntry(DistributionSupport distributionSupport, UUID key, Boolean value) Creates the object modules map entrystatic ParentConfigurationInfocreateParentConfigurationInfo(DistributionSupport distributionSupport, UUID parentConfigurationInfoId, UUID configurationVersionId, String configName, String configRelease, String providerName) CreatesParentConfigurationInfoinstance.static ParentConfigurationInfoItemcreateParentConfigurationInfoItem(ParentConfigurationInfo parent, UUID userId, UUID parentId, Pair<ParentSupportMode, UserSupportMode> settings) CreatesParentConfigurationInfoIteminstance.static ParentConfigurationInfoItemcreateParentConfigurationInfoItem(ParentConfigurationInfo parent, UUID userId, UUID parentId, ParentSupportMode parentMode, UserSupportMode userMode) CreatesParentConfigurationInfoIteminstance.static SupportLanguagesCreates and inits support languages.static UserSupportModeRulesCreates and inits user support mode rules.static booleanexistsObjectModule(org.eclipse.emf.ecore.EClass eClass) ChecksEclassand returnstrueif the class supports object module
-
Constructor Details
-
DistributionSupportUtil
public DistributionSupportUtil()
-
-
Method Details
-
createDistributionSupport
CreatesDistributionSupportinstance.- Parameters:
fileState- the file state, cannot benull- Returns:
- the
DistributionSupportinstance, nevernull
-
createDistributiveMapEntry
public static org.eclipse.emf.common.util.BasicEMap.Entry<UUID,ParentSupportMode> createDistributiveMapEntry(DistributionSupport distributionSupport, UUID key, ParentSupportMode value) Creates the distributive map entry- Parameters:
distributionSupport- theDistributionSupportreference, cannot benullkey- theUUIDreference as a key, cannot benullvalue- theParentSupportModereference as a value, cannot benull- Returns:
- the distributive map entry, never
null
-
createObjectModuleMapEntry
public static org.eclipse.emf.common.util.BasicEMap.Entry<UUID,Boolean> createObjectModuleMapEntry(DistributionSupport distributionSupport, UUID key, Boolean value) Creates the object modules map entry- Parameters:
distributionSupport- theDistributionSupportreference, cannot benullkey- theUUIDreference as a key, cannot benullvalue- theParentSupportModereference as a value, cannot benull- Returns:
- the object modules map entry, never
null
-
createParentConfigurationInfo
public static ParentConfigurationInfo createParentConfigurationInfo(DistributionSupport distributionSupport, UUID parentConfigurationInfoId, UUID configurationVersionId, String configName, String configRelease, String providerName) CreatesParentConfigurationInfoinstance.- Parameters:
distributionSupport- theDistributionSupport, cannot benullparentConfigurationInfoId- the info id, cannot benullconfigurationVersionId- the version info id, can benullconfigName- the configuration name, cannot benullconfigRelease- the configuration release version, cannot benullproviderName- the configuration provider name, cannot benull- Returns:
- the
ParentConfigurationInfoinstance, nevernull
-
createParentConfigurationInfoItem
public static ParentConfigurationInfoItem createParentConfigurationInfoItem(ParentConfigurationInfo parent, UUID userId, UUID parentId, ParentSupportMode parentMode, UserSupportMode userMode) CreatesParentConfigurationInfoIteminstance.- Parameters:
parent- theParentConfigurationInfoinstance, nevernulluserId- the user id, cannot benullparentId- the parent id, cannot benullparentMode- the parent mode, cannot benulluserMode- the user mode, cannot benull- Returns:
- the
ParentConfigurationInfoIteminstance, nevernull
-
createParentConfigurationInfoItem
public static ParentConfigurationInfoItem createParentConfigurationInfoItem(ParentConfigurationInfo parent, UUID userId, UUID parentId, Pair<ParentSupportMode, UserSupportMode> settings) CreatesParentConfigurationInfoIteminstance.- Parameters:
parent- theParentConfigurationInfoinstance, nevernulluserId- the user id, cannot benullparentId- the parent id, cannot benulluserMode- the user mode, cannot benullparentMode- the parent mode, cannot benull- Returns:
- the
ParentConfigurationInfoIteminstance, nevernull
-
createSupportLanguages
Creates and inits support languages.- Returns:
- the support language mode rules, cannot be
null
-
createUserSupportModeRules
Creates and inits user support mode rules.- Returns:
- the user support mode rules, cannot be
null
-
existsObjectModule
public static boolean existsObjectModule(org.eclipse.emf.ecore.EClass eClass) ChecksEclassand returnstrueif the class supports object module- Parameters:
eClass- theEclassto check, cannot benull- Returns:
trueif the class supports object module,falseotherwise
-