Package com._1c.g5.v8.dt.scc
Class ConfigurationStandaloneContentUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.scc.ConfigurationStandaloneContentUtil
-
public final class ConfigurationStandaloneContentUtil extends Object
Helper methods for configuration standalone content.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
canSetPriority(MdObject mdObject)
Gets a value that indicates whether the priority can be set for the specifiedmdObject
metadata object.static List<MdObject>
getAllowedChildren(MdObject mdObject)
Gets allowed children metadata objects that's actually for the specified metadata object.static Set<org.eclipse.emf.ecore.EStructuralFeature>
getAllowedChildrenFeatures()
Gets all allowed children metadata object features.static StandaloneContentDataExchangeSettings
getSettings(Configuration configuration)
Returns configuration standalone content data exchange settings.static StandaloneContent
getStandaloneContent(Configuration configuration)
Gets a configuration standalone content.static boolean
hasStandaloneContent(Configuration configuration)
Checks an existence of configuration standalone content.static boolean
isCorrectCodeSupport(MdObject mdObject)
Checks is correct md-object code supports.static boolean
isDataExchangeSettingsEquals(StandaloneContentDataExchangeSettings currentSettings, StandaloneContentDataExchangeSettings otherSettings)
Checks if data exchange settings is equals.static boolean
isSupportDataExchange(MdObject mdObject)
Checks if md-object supports data exchange.
-
-
-
Method Detail
-
getAllowedChildren
public static List<MdObject> getAllowedChildren(MdObject mdObject)
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
public static boolean canSetPriority(MdObject mdObject)
Gets a value that indicates whether the priority can be set for the specifiedmdObject
metadata object.- Parameters:
mdObject
- the metadata object, cannot benull
- Returns:
true
if can set priority; otherwise,false
-
hasStandaloneContent
public static boolean hasStandaloneContent(Configuration configuration)
Checks an existence of configuration standalone content.- Parameters:
configuration
- the configuration, cannot benull
- Returns:
true
if standalone content exist,false
otherwise.
-
getStandaloneContent
public static StandaloneContent getStandaloneContent(Configuration configuration)
Gets a configuration standalone content.- Parameters:
configuration
- the configuration, cannot benull
- Returns:
- the standalone content of the specified
configuration
, nevernull
-
getAllowedChildrenFeatures
public static Set<org.eclipse.emf.ecore.EStructuralFeature> getAllowedChildrenFeatures()
Gets all allowed children metadata object features.- Returns:
- the list of allowed metadata object features, never
null
-
isSupportDataExchange
public static boolean isSupportDataExchange(MdObject mdObject)
Checks if md-object supports data exchange.- Parameters:
mdObject
- the md-object, cannot benull
- Returns:
true
if supports,false
otherwise
-
isCorrectCodeSupport
public static boolean isCorrectCodeSupport(MdObject mdObject)
Checks is correct md-object code supports.- Parameters:
mdObject
- the md-object, cannot benull
- Returns:
true
if correct supports,false
otherwise
-
getSettings
public static StandaloneContentDataExchangeSettings getSettings(Configuration configuration)
Returns configuration standalone content data exchange settings.- Parameters:
configuration
- the configuration, cannot benull
- Returns:
- the data exchange settings, can be
null
if 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 benull
otherSettings
- the other settings, can benull
- Returns:
true
if current settings is notnull
and all properties is equals,false
otherwise
-
-