Package com._1c.g5.v8.dt.scc
Class ConfigurationStandaloneContentUtil
java.lang.Object
com._1c.g5.v8.dt.scc.ConfigurationStandaloneContentUtil
Helper methods for configuration standalone content.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanSetPriority(MdObject mdObject) Gets a value that indicates whether the priority can be set for the specifiedmdObjectmetadata object.getAllowedChildren(MdObject mdObject) Gets allowed children metadata objects that's actually for the specified metadata object.static Set<org.eclipse.emf.ecore.EStructuralFeature>Gets all allowed children metadata object features.getSettings(Configuration configuration) Returns configuration standalone content data exchange settings.static StandaloneContentgetStandaloneContent(Configuration configuration) Gets a configuration standalone content.static booleanhasStandaloneContent(Configuration configuration) Checks an existence of configuration standalone content.static booleanisCorrectCodeSupport(MdObject mdObject) Checks is correct md-object code supports.static booleanisDataExchangeSettingsEquals(StandaloneContentDataExchangeSettings currentSettings, StandaloneContentDataExchangeSettings otherSettings) Checks if data exchange settings is equals.static booleanisSupportDataExchange(MdObject mdObject) Checks if md-object supports data exchange.
-
Method Details
-
getAllowedChildren
Gets allowed children metadata objects that's actually for the specified metadata object.- Parameters:
mdObject- the metadata object, cannot benull- Returns:
- the list of allowed metadata objects, never
null
-
canSetPriority
Gets a value that indicates whether the priority can be set for the specifiedmdObjectmetadata object.- Parameters:
mdObject- the metadata object, cannot benull- Returns:
trueif can set priority; otherwise,false
-
hasStandaloneContent
Checks an existence of configuration standalone content.- Parameters:
configuration- the configuration, cannot benull- Returns:
trueif standalone content exist,falseotherwise.
-
getStandaloneContent
Gets a configuration standalone content.- Parameters:
configuration- the configuration, cannot benull- Returns:
- the standalone content of the specified
configuration, nevernull
-
getAllowedChildrenFeatures
Gets all allowed children metadata object features.- Returns:
- the list of allowed metadata object features, never
null
-
isSupportDataExchange
Checks if md-object supports data exchange.- Parameters:
mdObject- the md-object, cannot benull- Returns:
trueif supports,falseotherwise
-
isCorrectCodeSupport
Checks is correct md-object code supports.- Parameters:
mdObject- the md-object, cannot benull- Returns:
trueif correct supports,falseotherwise
-
getSettings
Returns configuration standalone content data exchange settings.- Parameters:
configuration- the configuration, cannot benull- Returns:
- the data exchange settings, can be
nullif its not setted or standalone content is not setted or proxy.
-
isDataExchangeSettingsEquals
public static boolean isDataExchangeSettingsEquals(StandaloneContentDataExchangeSettings currentSettings, StandaloneContentDataExchangeSettings otherSettings) Checks if data exchange settings is equals.- Parameters:
currentSettings- the current settings, can benullotherSettings- the other settings, can benull- Returns:
trueif current settings is notnulland all properties is equals,falseotherwise
-