Class AbstractRule
java.lang.Object
com._1c.g5.aef2.standard.definitions.rules.AbstractRule
- All Implemented Interfaces:
IRule
- Direct Known Subclasses:
AbstractRule
Basic implementation of
IRule
.
Contains methods for easier rule creation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
buildSingleObject
(Object object) Builds statements for each of selected object.protected IDefinition
componentDefinition
(IDefinitionIdentifier identifier) CreatesIDefinition
that point to component for the specifiedidentifier
.protected IDefinition
componentDefinition
(String stringIdentifier) CreatesIDefinition
that point to component for the specifiedstringIdentifier
.protected IDefinition
componentDefinition
(org.eclipse.emf.databinding.FeaturePath... featurePaths) CreatesIDefinition
that point to component for the specifiedfeaturePaths
.protected IDefinition
componentDefinition
(org.eclipse.emf.ecore.EOperation operation) CreatesIDefinition
that point to component for the specifiedoperation
.protected IDefinition
componentDefinition
(org.eclipse.emf.ecore.EStructuralFeature... features) CreatesIDefinition
that point to component for the specifiedfeatures
.protected IRuleTarget
componentTarget
(IDefinition componentDefinition) CreatesIRuleTarget
that point to component for the component definition.protected void
disable
(IDefinition definition) Disables field with the given arguments.protected void
disable
(IRuleTarget target) Disables field with the givenIRuleTarget
.protected void
Disables field with the given arguments.protected void
disable
(org.eclipse.emf.databinding.FeaturePath... paths) Disables field with the given arguments.protected void
disable
(org.eclipse.emf.ecore.EOperation operation) Disables field with the given arguments.protected void
disable
(org.eclipse.emf.ecore.EStructuralFeature... features) Disables field with the given arguments.protected void
enable
(IDefinition definition) Enables field with the given arguments.protected void
enable
(IRuleTarget target) Enables field with the givenIRuleTarget
.protected void
Enables field with the given arguments.protected void
enable
(org.eclipse.emf.ecore.EOperation operation) Enables field with the given arguments.protected void
enable
(org.eclipse.emf.ecore.EStructuralFeature... features) Enables field with the given arguments.getResult
(IRuleInput input) Returns the result of the rule.protected boolean
Is rule creation for one or many editing objectsprotected void
hide
(IDefinition definition) Hides field with the given arguments.protected void
hide
(IRuleTarget target) Hides field with the givenIRuleTarget
.protected void
Hides field with the given arguments.protected void
hide
(org.eclipse.emf.databinding.FeaturePath... paths) Hides field with the given arguments.protected void
hide
(org.eclipse.emf.ecore.EOperation operation) Hides field with the given arguments.protected void
hide
(org.eclipse.emf.ecore.EStructuralFeature... features) Hides field with the given arguments.protected void
multiFeatureDisable
(org.eclipse.emf.ecore.EStructuralFeature... features) Disables field with the given arguments.protected void
multiFeatureEnable
(org.eclipse.emf.ecore.EStructuralFeature... features) Enables multi feature field with the given arguments.protected void
multiFeatureHide
(org.eclipse.emf.ecore.EStructuralFeature... features) Hides field with the given arguments.protected void
multiFeatureShow
(org.eclipse.emf.ecore.EStructuralFeature... features) Shows multi feature field with the given arguments.protected void
show
(IDefinition definition) Shows field with the given arguments.protected void
show
(IRuleTarget target) Shows field with the givenIRuleTarget
.protected void
Shows field with the given arguments.protected void
show
(org.eclipse.emf.ecore.EOperation operation) Shows field with the given arguments.protected void
show
(org.eclipse.emf.ecore.EStructuralFeature... features) Shows field with the given arguments.
-
Constructor Details
-
AbstractRule
public AbstractRule()
-
-
Method Details
-
getResult
Description copied from interface:IRule
Returns the result of the rule.- Specified by:
getResult
in interfaceIRule
- Parameters:
input
- the input.- Returns:
- the
IRuleResult
instance.
-
hasManyEditingObjects
protected boolean hasManyEditingObjects()Is rule creation for one or many editing objects- Returns:
if rule result for many editing objects, or if one
-
buildSingleObject
Builds statements for each of selected object.- Parameters:
object
- the object, cannot benull
.
-
show
Shows field with the givenIRuleTarget
.- Parameters:
target
- theIRuleTarget
instance, cannot benull
.
-
show
Shows field with the given arguments.- Parameters:
definition
- the definition, cannot benull
.
-
show
protected void show(org.eclipse.emf.ecore.EStructuralFeature... features) Shows field with the given arguments.- Parameters:
features
- the features, cannot benull
or empty.
-
show
protected void show(org.eclipse.emf.ecore.EOperation operation) Shows field with the given arguments.- Parameters:
operation
- the EMF operation, cannot benull
.
-
show
Shows field with the given arguments.- Parameters:
stringId
- the definition identifier, cannot benull
or empty.
-
multiFeatureShow
protected void multiFeatureShow(org.eclipse.emf.ecore.EStructuralFeature... features) Shows multi feature field with the given arguments.- Parameters:
features
- the features, cannot benull
or empty.
-
enable
Enables field with the givenIRuleTarget
.- Parameters:
target
- theIRuleTarget
instance, cannot benull
.
-
enable
Enables field with the given arguments.- Parameters:
definition
- the definition, cannot benull
.
-
enable
protected void enable(org.eclipse.emf.ecore.EStructuralFeature... features) Enables field with the given arguments.- Parameters:
features
- the features, cannot benull
or empty.
-
enable
protected void enable(org.eclipse.emf.ecore.EOperation operation) Enables field with the given arguments.- Parameters:
operation
- the EMF operation, cannot benull
.
-
enable
Enables field with the given arguments.- Parameters:
stringId
- the definition identifier, cannot benull
or empty.
-
multiFeatureEnable
protected void multiFeatureEnable(org.eclipse.emf.ecore.EStructuralFeature... features) Enables multi feature field with the given arguments.- Parameters:
features
- the features, cannot benull
or empty.
-
hide
Hides field with the givenIRuleTarget
.- Parameters:
target
- theIRuleTarget
instance, cannot benull
.
-
hide
Hides field with the given arguments.- Parameters:
definition
- the definition, cannot benull
.
-
hide
protected void hide(org.eclipse.emf.ecore.EStructuralFeature... features) Hides field with the given arguments.- Parameters:
features
- the features, cannot benull
or empty.
-
hide
protected void hide(org.eclipse.emf.databinding.FeaturePath... paths) Hides field with the given arguments.- Parameters:
paths
- the feature paths, cannot benull
or empty.
-
hide
protected void hide(org.eclipse.emf.ecore.EOperation operation) Hides field with the given arguments.- Parameters:
operation
- the EMF operation, cannot benull
.
-
hide
Hides field with the given arguments.- Parameters:
stringId
- the definition identifier, cannot benull
or empty.
-
multiFeatureHide
protected void multiFeatureHide(org.eclipse.emf.ecore.EStructuralFeature... features) Hides field with the given arguments.- Parameters:
features
- the features, cannot benull
or empty.
-
disable
Disables field with the givenIRuleTarget
.- Parameters:
target
- theIRuleTarget
instance, cannot benull
.
-
disable
Disables field with the given arguments.- Parameters:
definition
- the definition, cannot benull
.
-
disable
protected void disable(org.eclipse.emf.ecore.EStructuralFeature... features) Disables field with the given arguments.- Parameters:
features
- the features, cannot benull
or empty.
-
disable
protected void disable(org.eclipse.emf.databinding.FeaturePath... paths) Disables field with the given arguments.- Parameters:
features
- the features, cannot benull
or empty.
-
disable
protected void disable(org.eclipse.emf.ecore.EOperation operation) Disables field with the given arguments.- Parameters:
operation
- the EMF operation, cannot benull
.
-
disable
Disables field with the given arguments.- Parameters:
stringId
- the definition identifier, cannot benull
or empty.
-
multiFeatureDisable
protected void multiFeatureDisable(org.eclipse.emf.ecore.EStructuralFeature... features) Disables field with the given arguments.- Parameters:
features
- the features, cannot benull
or empty.
-
componentTarget
CreatesIRuleTarget
that point to component for the component definition.- Parameters:
componentDefinition
- the component definition, cannot benull
or empty.- Returns:
IRuleTarget
instance, nevernull
.
-
componentDefinition
CreatesIDefinition
that point to component for the specifiedfeaturePaths
.- Parameters:
featurePaths
- the feature paths, cannot benull
or empty.- Returns:
IDefinition
instance, nevernull
.
-
componentDefinition
CreatesIDefinition
that point to component for the specifiedfeatures
.- Parameters:
features
- the features, cannot benull
or empty.- Returns:
IDefinition
instance, nevernull
.
-
componentDefinition
CreatesIDefinition
that point to component for the specifiedstringIdentifier
.- Parameters:
stringIdentifier
- the definition identifier, cannot benull
or empty.- Returns:
IDefinition
instance, nevernull
.
-
componentDefinition
CreatesIDefinition
that point to component for the specifiedoperation
.- Parameters:
operation
- the EMF operation, cannot benull
.- Returns:
IDefinition
instance, nevernull
.
-
componentDefinition
CreatesIDefinition
that point to component for the specifiedidentifier
.- Parameters:
identifier
- theIDefinitionIdentifier
, cannot benull
.- Returns:
IDefinition
instance, nevernull
.
-