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 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 voiddisable(String stringId)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 voidenable(String stringId)Enables 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.IRuleResultgetResult(IRuleInput input)Returns the result of the rule.protected voidhide(IDefinition definition)Hides field with the given arguments.protected voidhide(IRuleTarget target)Hides field with the givenIRuleTarget.protected voidhide(String stringId)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 voidshow(String stringId)Shows 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.
-
-
-
Method Detail
-
getResult
public IRuleResult getResult(IRuleInput input)
Description copied from interface:IRuleReturns the result of the rule.- Specified by:
getResultin interfaceIRule- Parameters:
input- the input.- Returns:
- the
IRuleResultinstance.
-
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- theIRuleTargetinstance, 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 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
protected void show(String stringId)
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
protected void enable(IRuleTarget target)
Enables field with the givenIRuleTarget.- Parameters:
target- theIRuleTargetinstance, 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 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
protected void enable(String stringId)
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
protected void hide(IRuleTarget target)
Hides field with the givenIRuleTarget.- Parameters:
target- theIRuleTargetinstance, 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 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
protected void hide(String stringId)
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
protected void disable(IRuleTarget target)
Disables field with the givenIRuleTarget.- Parameters:
target- theIRuleTargetinstance, 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 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
protected void disable(String stringId)
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
protected IRuleTarget componentTarget(IDefinition componentDefinition)
CreatesIRuleTargetthat point to component for the component definition.- Parameters:
componentDefinition- the component definition, cannot benullor empty.- Returns:
IRuleTargetinstance, nevernull.
-
componentDefinition
protected IDefinition componentDefinition(org.eclipse.emf.databinding.FeaturePath... featurePaths)
CreatesIDefinitionthat point to component for the specifiedfeaturePaths.- Parameters:
featurePaths- the feature paths, cannot benullor empty.- Returns:
IDefinitioninstance, nevernull.
-
componentDefinition
protected IDefinition componentDefinition(org.eclipse.emf.ecore.EStructuralFeature... features)
CreatesIDefinitionthat point to component for the specifiedfeatures.- Parameters:
features- the features, cannot benullor empty.- Returns:
IDefinitioninstance, nevernull.
-
componentDefinition
protected IDefinition componentDefinition(String stringIdentifier)
CreatesIDefinitionthat point to component for the specifiedstringIdentifier.- Parameters:
stringIdentifier- the definition identifier, cannot benullor empty.- Returns:
IDefinitioninstance, nevernull.
-
componentDefinition
protected IDefinition componentDefinition(org.eclipse.emf.ecore.EOperation operation)
CreatesIDefinitionthat point to component for the specifiedoperation.- Parameters:
operation- the EMF operation, cannot benull.- Returns:
IDefinitioninstance, nevernull.
-
componentDefinition
protected IDefinition componentDefinition(IDefinitionIdentifier identifier)
CreatesIDefinitionthat point to component for the specifiedidentifier.- Parameters:
identifier- theIDefinitionIdentifier, cannot benull.- Returns:
IDefinitioninstance, nevernull.
-
-