Class AdoptedMdObjectRule
- java.lang.Object
-
- com._1c.g5.aef2.standard.definitions.rules.AbstractRule
-
- com._1c.g5.v8.dt.ui.aef.definitions.rules.AbstractRule
-
- com._1c.g5.v8.dt.md.ui.extension.aef.rules.AbstractAdoptedObjectRule
-
- com._1c.g5.v8.dt.md.ui.extension.aef.rules.AdoptedMdObjectRule
-
- All Implemented Interfaces:
IRule
- Direct Known Subclasses:
AdoptedBasicFormRule
,AdoptedBasicTemplateRule
,AdoptedCalculationRegisterRule
,AdoptedConfigurationRule
,AdoptedCubeRule
,AdoptedDimensionTableRule
,AdoptedExternalDataSourceRule
,AdoptedTableRule
,AdoptedXdtoPackageRule
public class AdoptedMdObjectRule extends AbstractAdoptedObjectRule
Rule that disables all unckecked or unmodified propertis in adopted metadata objects.
-
-
Constructor Summary
Constructors Constructor Description AdoptedMdObjectRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
alwaysShown(MdObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
Returns whether the provided feature is always shown for adopted model object.protected void
buildSingleObject(org.eclipse.emf.ecore.EObject object, IV8Project v8project)
Builds statements for each of selected object.protected boolean
isEnabled(MdObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<MdPropertyType> types)
Returns whether the provided feature is enabled for adopted model object.protected boolean
isShown(MdObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<MdPropertyType> types)
Returns whether the provided feature is shown for adopted model object.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.extension.aef.rules.AbstractAdoptedObjectRule
componentDefinition, componentTarget, disableWithCheckBox
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.definitions.rules.AbstractRule
buildSingleObject, getProject, getResult, isMobileApplicationOnly
-
Methods inherited from class com._1c.g5.aef2.standard.definitions.rules.AbstractRule
componentDefinition, componentDefinition, componentDefinition, componentDefinition, disable, disable, disable, disable, disable, enable, enable, enable, enable, enable, hide, hide, hide, hide, hide, multiFeatureDisable, multiFeatureEnable, multiFeatureHide, multiFeatureShow, show, show, show, show, show
-
-
-
-
Method Detail
-
buildSingleObject
protected void buildSingleObject(org.eclipse.emf.ecore.EObject object, IV8Project v8project)
Description copied from class:AbstractRule
Builds statements for each of selected object.- Specified by:
buildSingleObject
in classAbstractRule
- Parameters:
object
- the object.v8project
- the V8 project for object.
-
isEnabled
protected boolean isEnabled(MdObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<MdPropertyType> types)
Returns whether the provided feature is enabled for adopted model object.- Parameters:
object
- the metadata object to check, cannot benull
feature
- the feature to check, cannot benull
types
- the property types of the object feature, cannot benull
- Returns:
- whether the provided feature is enabled for adopted model object
-
isShown
protected boolean isShown(MdObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<MdPropertyType> types)
Returns whether the provided feature is shown for adopted model object. Default implementation always returnstrue
.- Parameters:
object
- the metadata object to check, cannot benull
feature
- the feature to check, cannot benull
types
- the property types of the object feature, cannot benull
or empty- Returns:
- whether the provided feature is shown for adopted model object
-
alwaysShown
protected boolean alwaysShown(MdObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
Returns whether the provided feature is always shown for adopted model object.- Parameters:
object
- the metadata object to check, cannot benull
feature
- the feature to check, cannot benull
- Returns:
- whether the provided feature is always shown for adopted model object
-
-