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 voidbuildSingleObject(Object object) Builds statements for each of selected object.protected IDefinitioncomponentDefinition(IDefinitionIdentifier identifier) CreatesIDefinitionthat point to component for the specifiedidentifier.protected IDefinitioncomponentDefinition(String stringIdentifier) CreatesIDefinitionthat point to component for the specifiedstringIdentifier.protected IDefinitioncomponentDefinition(org.eclipse.emf.databinding.FeaturePath... featurePaths) CreatesIDefinitionthat point to component for the specifiedfeaturePaths.protected IDefinitioncomponentDefinition(org.eclipse.emf.ecore.EOperation operation) CreatesIDefinitionthat point to component for the specifiedoperation.protected IDefinitioncomponentDefinition(org.eclipse.emf.ecore.EStructuralFeature... features) CreatesIDefinitionthat point to component for the specifiedfeatures.protected IRuleTargetcomponentTarget(IDefinition componentDefinition) CreatesIRuleTargetthat point to component for the component definition.protected voiddisable(IDefinition definition) Disables field with the given arguments.protected voiddisable(IRuleTarget target) Disables field with the givenIRuleTarget.protected voidDisables field with the given arguments.protected voiddisable(org.eclipse.emf.databinding.FeaturePath... paths) Disables field with the given arguments.protected voiddisable(org.eclipse.emf.ecore.EOperation operation) Disables field with the given arguments.protected voiddisable(org.eclipse.emf.ecore.EStructuralFeature... features) Disables field with the given arguments.protected voidenable(IDefinition definition) Enables field with the given arguments.protected voidenable(IRuleTarget target) Enables field with the givenIRuleTarget.protected voidEnables field with the given arguments.protected voidenable(org.eclipse.emf.ecore.EOperation operation) Enables field with the given arguments.protected voidenable(org.eclipse.emf.ecore.EStructuralFeature... features) Enables field with the given arguments.getResult(IRuleInput input) Returns the result of the rule.protected booleanIs rule creation for one or many editing objectsprotected voidhide(IDefinition definition) Hides field with the given arguments.protected voidhide(IRuleTarget target) Hides field with the givenIRuleTarget.protected voidHides field with the given arguments.protected voidhide(org.eclipse.emf.databinding.FeaturePath... paths) Hides field with the given arguments.protected voidhide(org.eclipse.emf.ecore.EOperation operation) Hides field with the given arguments.protected voidhide(org.eclipse.emf.ecore.EStructuralFeature... features) Hides field with the given arguments.protected voidmultiFeatureDisable(org.eclipse.emf.ecore.EStructuralFeature... features) Disables field with the given arguments.protected voidmultiFeatureEnable(org.eclipse.emf.ecore.EStructuralFeature... features) Enables multi feature field with the given arguments.protected voidmultiFeatureHide(org.eclipse.emf.ecore.EStructuralFeature... features) Hides field with the given arguments.protected voidmultiFeatureShow(org.eclipse.emf.ecore.EStructuralFeature... features) Shows multi feature field with the given arguments.protected voidshow(IDefinition definition) Shows field with the given arguments.protected voidshow(IRuleTarget target) Shows field with the givenIRuleTarget.protected voidShows field with the given arguments.protected voidshow(org.eclipse.emf.ecore.EOperation operation) Shows field with the given arguments.protected voidshow(org.eclipse.emf.ecore.EStructuralFeature... features) Shows field with the given arguments.
-
Constructor Details
-
AbstractRule
public AbstractRule()
-
-
Method Details
-
getResult
Description copied from interface:IRuleReturns the result of the rule.- Specified by:
getResultin interfaceIRule- Parameters:
input- the input.- Returns:
- the
IRuleResultinstance.
-
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- theIRuleTargetinstance, 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 benullor 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 benullor empty.
-
multiFeatureShow
protected void multiFeatureShow(org.eclipse.emf.ecore.EStructuralFeature... features) Shows multi feature field with the given arguments.- Parameters:
features- the features, cannot benullor empty.
-
enable
Enables field with the givenIRuleTarget.- Parameters:
target- theIRuleTargetinstance, 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 benullor 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 benullor empty.
-
multiFeatureEnable
protected void multiFeatureEnable(org.eclipse.emf.ecore.EStructuralFeature... features) Enables multi feature field with the given arguments.- Parameters:
features- the features, cannot benullor empty.
-
hide
Hides field with the givenIRuleTarget.- Parameters:
target- theIRuleTargetinstance, 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 benullor empty.
-
hide
protected void hide(org.eclipse.emf.databinding.FeaturePath... paths) Hides field with the given arguments.- Parameters:
paths- the feature paths, cannot benullor 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 benullor empty.
-
multiFeatureHide
protected void multiFeatureHide(org.eclipse.emf.ecore.EStructuralFeature... features) Hides field with the given arguments.- Parameters:
features- the features, cannot benullor empty.
-
disable
Disables field with the givenIRuleTarget.- Parameters:
target- theIRuleTargetinstance, 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 benullor empty.
-
disable
protected void disable(org.eclipse.emf.databinding.FeaturePath... paths) Disables field with the given arguments.- Parameters:
features- the features, cannot benullor 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 benullor empty.
-
multiFeatureDisable
protected void multiFeatureDisable(org.eclipse.emf.ecore.EStructuralFeature... features) Disables field with the given arguments.- Parameters:
features- the features, cannot benullor empty.
-
componentTarget
CreatesIRuleTargetthat point to component for the component definition.- Parameters:
componentDefinition- the component definition, cannot benullor empty.- Returns:
IRuleTargetinstance, nevernull.
-
componentDefinition
CreatesIDefinitionthat point to component for the specifiedfeaturePaths.- Parameters:
featurePaths- the feature paths, cannot benullor empty.- Returns:
IDefinitioninstance, nevernull.
-
componentDefinition
CreatesIDefinitionthat point to component for the specifiedfeatures.- Parameters:
features- the features, cannot benullor empty.- Returns:
IDefinitioninstance, nevernull.
-
componentDefinition
CreatesIDefinitionthat point to component for the specifiedstringIdentifier.- Parameters:
stringIdentifier- the definition identifier, cannot benullor empty.- Returns:
IDefinitioninstance, nevernull.
-
componentDefinition
CreatesIDefinitionthat point to component for the specifiedoperation.- Parameters:
operation- the EMF operation, cannot benull.- Returns:
IDefinitioninstance, nevernull.
-
componentDefinition
CreatesIDefinitionthat point to component for the specifiedidentifier.- Parameters:
identifier- theIDefinitionIdentifier, cannot benull.- Returns:
IDefinitioninstance, nevernull.
-