public final class StructureStateUtils
extends java.lang.Object
StructureState around ImportOrganisationUnit.| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<ImportLanguage> |
getAllGlobalLanguages(ImportOrganisationUnit[] units,
StructureState structureState)
This method returns set of languages that were defined for ImportOrganisationUnit-s introduced until given structureState
(including).
|
static java.util.Set<ImportLanguage> |
getNewGlobalLanguages(ImportOrganisationUnit[] units,
StructureState structureState)
This method returns set of languages that were defined for ImportOrganisationUnit introduced in given structureState (and
were not used in any structureState before).
It means that: languages that were used by organisation that were defined in given structureState are added to result languages that were used by organisation that were defined in previous structureStates are extracted from result |
static java.util.Set<ImportLanguage> |
getNewLanguages(ImportOrganisationUnit unit,
StructureState structureState)
This method returns set of languages that were defined for child ImportOrganisationUnit introduced in given
structureState (and were not used in any structureState before).
|
static java.util.List<StructureState> |
getStructureStateGap(StructureState currentStructureState,
StructureState executedStructureState)
This method returns list of StructureState that is between executedStructureState (excluding) and
currentStructureState (including).
|
public static java.util.Set<ImportLanguage> getNewGlobalLanguages(ImportOrganisationUnit[] units, StructureState structureState)
units - array of all units in the system, regardless of structureState for which these were definedstructureState - structureState for which languages are checked StructureStatepublic static java.util.Set<ImportLanguage> getAllGlobalLanguages(ImportOrganisationUnit[] units, StructureState structureState)
units - array of all units in the system, regardless of structureState for which these were definedstructureState - structureState for which languages are checked StructureStatepublic static java.util.Set<ImportLanguage> getNewLanguages(ImportOrganisationUnit unit, StructureState structureState)
unit - that children are checkedstructureState - that children are checked againstpublic static java.util.List<StructureState> getStructureStateGap(StructureState currentStructureState, StructureState executedStructureState)
currentStructureState - StructureState currently importedexecutedStructureState - StructureState that were already imported for previous patchCopyright © 2018 SAP SE. All Rights Reserved.