Class AbstractRule
- java.lang.Object
-
- com._1c.g5.aef2.standard.definitions.rules.AbstractRule
-
- All Implemented Interfaces:
IRule
- Direct Known Subclasses:
AbstractRule
public abstract class AbstractRule extends Object implements IRule
Basic implementation ofIRule
. Contains methods for easier rule creation.
-
-
Constructor Summary
Constructors Constructor Description AbstractRule()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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
disable(String stringId)
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
enable(String stringId)
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.IRuleResult
getResult(IRuleInput input)
Returns the result of the rule.protected void
hide(IDefinition definition)
Hides field with the given arguments.protected void
hide(IRuleTarget target)
Hides field with the givenIRuleTarget
.protected void
hide(String stringId)
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
show(String stringId)
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.
-
-
-
Method Detail
-
getResult
public IRuleResult getResult(IRuleInput input)
Description copied from interface:IRule
Returns the result of the rule.- Specified by:
getResult
in interfaceIRule
- Parameters:
input
- the input.- Returns:
- the
IRuleResult
instance.
-
buildSingleObject
protected abstract void buildSingleObject(Object object)
Builds statements for each of selected object.- Parameters:
object
- the object, cannot benull
.
-
show
protected void show(IRuleTarget target)
Shows field with the givenIRuleTarget
.- Parameters:
target
- theIRuleTarget
instance, cannot benull
.
-
show
protected void show(IDefinition definition)
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
protected void show(String stringId)
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
protected void enable(IRuleTarget target)
Enables field with the givenIRuleTarget
.- Parameters:
target
- theIRuleTarget
instance, cannot benull
.
-
enable
protected void enable(IDefinition definition)
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
protected void enable(String stringId)
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
protected void hide(IRuleTarget target)
Hides field with the givenIRuleTarget
.- Parameters:
target
- theIRuleTarget
instance, cannot benull
.
-
hide
protected void hide(IDefinition definition)
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.ecore.EOperation operation)
Hides field with the given arguments.- Parameters:
operation
- the EMF operation, cannot benull
.
-
hide
protected void hide(String stringId)
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
protected void disable(IRuleTarget target)
Disables field with the givenIRuleTarget
.- Parameters:
target
- theIRuleTarget
instance, cannot benull
.
-
disable
protected void disable(IDefinition definition)
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.ecore.EOperation operation)
Disables field with the given arguments.- Parameters:
operation
- the EMF operation, cannot benull
.
-
disable
protected void disable(String stringId)
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
protected IRuleTarget componentTarget(IDefinition componentDefinition)
CreatesIRuleTarget
that point to component for the component definition.- Parameters:
componentDefinition
- the component definition, cannot benull
or empty.- Returns:
IRuleTarget
instance, nevernull
.
-
componentDefinition
protected IDefinition componentDefinition(org.eclipse.emf.databinding.FeaturePath... featurePaths)
CreatesIDefinition
that point to component for the specifiedfeaturePaths
.- Parameters:
featurePaths
- the feature paths, cannot benull
or empty.- Returns:
IDefinition
instance, nevernull
.
-
componentDefinition
protected IDefinition componentDefinition(org.eclipse.emf.ecore.EStructuralFeature... features)
CreatesIDefinition
that point to component for the specifiedfeatures
.- Parameters:
features
- the features, cannot benull
or empty.- Returns:
IDefinition
instance, nevernull
.
-
componentDefinition
protected IDefinition componentDefinition(String stringIdentifier)
CreatesIDefinition
that point to component for the specifiedstringIdentifier
.- Parameters:
stringIdentifier
- the definition identifier, cannot benull
or empty.- Returns:
IDefinition
instance, nevernull
.
-
componentDefinition
protected IDefinition componentDefinition(org.eclipse.emf.ecore.EOperation operation)
CreatesIDefinition
that point to component for the specifiedoperation
.- Parameters:
operation
- the EMF operation, cannot benull
.- Returns:
IDefinition
instance, nevernull
.
-
componentDefinition
protected IDefinition componentDefinition(IDefinitionIdentifier identifier)
CreatesIDefinition
that point to component for the specifiedidentifier
.- Parameters:
identifier
- theIDefinitionIdentifier
, cannot benull
.- Returns:
IDefinition
instance, nevernull
.
-
-