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 of IRule. Contains methods for easier rule creation.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    Builds statements for each of selected object.
    protected IDefinition
    Creates IDefinition that point to component for the specified identifier.
    protected IDefinition
    componentDefinition(String stringIdentifier)
    Creates IDefinition that point to component for the specified stringIdentifier.
    protected IDefinition
    componentDefinition(org.eclipse.emf.databinding.FeaturePath... featurePaths)
    Creates IDefinition that point to component for the specified featurePaths.
    protected IDefinition
    componentDefinition(org.eclipse.emf.ecore.EOperation operation)
    Creates IDefinition that point to component for the specified operation.
    protected IDefinition
    componentDefinition(org.eclipse.emf.ecore.EStructuralFeature... features)
    Creates IDefinition that point to component for the specified features.
    protected IRuleTarget
    componentTarget(IDefinition componentDefinition)
    Creates IRuleTarget that point to component for the component definition.
    protected void
    disable(IDefinition definition)
    Disables field with the given arguments.
    protected void
    Disables field with the given IRuleTarget.
    protected void
    disable(String stringId)
    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
    Enables field with the given IRuleTarget.
    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.
    Returns the result of the rule.
    protected boolean
    Is rule creation for one or many editing objects
    protected void
    hide(IDefinition definition)
    Hides field with the given arguments.
    protected void
    hide(IRuleTarget target)
    Hides field with the given IRuleTarget.
    protected void
    hide(String stringId)
    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 given IRuleTarget.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractRule

      public AbstractRule()
  • Method Details

    • getResult

      public IRuleResult getResult(IRuleInput input)
      Description copied from interface: IRule
      Returns the result of the rule.
      Specified by:
      getResult in interface IRule
      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

      protected abstract void buildSingleObject(Object object)
      Builds statements for each of selected object.
      Parameters:
      object - the object, cannot be null.
    • show

      protected void show(IRuleTarget target)
      Shows field with the given IRuleTarget.
      Parameters:
      target - the IRuleTarget instance, cannot be null.
    • show

      protected void show(IDefinition definition)
      Shows field with the given arguments.
      Parameters:
      definition - the definition, cannot be null.
    • show

      protected void show(org.eclipse.emf.ecore.EStructuralFeature... features)
      Shows field with the given arguments.
      Parameters:
      features - the features, cannot be null or empty.
    • show

      protected void show(org.eclipse.emf.ecore.EOperation operation)
      Shows field with the given arguments.
      Parameters:
      operation - the EMF operation, cannot be null.
    • show

      protected void show(String stringId)
      Shows field with the given arguments.
      Parameters:
      stringId - the definition identifier, cannot be null 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 be null or empty.
    • enable

      protected void enable(IRuleTarget target)
      Enables field with the given IRuleTarget.
      Parameters:
      target - the IRuleTarget instance, cannot be null.
    • enable

      protected void enable(IDefinition definition)
      Enables field with the given arguments.
      Parameters:
      definition - the definition, cannot be null.
    • enable

      protected void enable(org.eclipse.emf.ecore.EStructuralFeature... features)
      Enables field with the given arguments.
      Parameters:
      features - the features, cannot be null or empty.
    • enable

      protected void enable(org.eclipse.emf.ecore.EOperation operation)
      Enables field with the given arguments.
      Parameters:
      operation - the EMF operation, cannot be null.
    • enable

      protected void enable(String stringId)
      Enables field with the given arguments.
      Parameters:
      stringId - the definition identifier, cannot be null 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 be null or empty.
    • hide

      protected void hide(IRuleTarget target)
      Hides field with the given IRuleTarget.
      Parameters:
      target - the IRuleTarget instance, cannot be null.
    • hide

      protected void hide(IDefinition definition)
      Hides field with the given arguments.
      Parameters:
      definition - the definition, cannot be null.
    • hide

      protected void hide(org.eclipse.emf.ecore.EStructuralFeature... features)
      Hides field with the given arguments.
      Parameters:
      features - the features, cannot be null or empty.
    • hide

      protected void hide(org.eclipse.emf.databinding.FeaturePath... paths)
      Hides field with the given arguments.
      Parameters:
      paths - the feature paths, cannot be null or empty.
    • hide

      protected void hide(org.eclipse.emf.ecore.EOperation operation)
      Hides field with the given arguments.
      Parameters:
      operation - the EMF operation, cannot be null.
    • hide

      protected void hide(String stringId)
      Hides field with the given arguments.
      Parameters:
      stringId - the definition identifier, cannot be null or empty.
    • multiFeatureHide

      protected void multiFeatureHide(org.eclipse.emf.ecore.EStructuralFeature... features)
      Hides field with the given arguments.
      Parameters:
      features - the features, cannot be null or empty.
    • disable

      protected void disable(IRuleTarget target)
      Disables field with the given IRuleTarget.
      Parameters:
      target - the IRuleTarget instance, cannot be null.
    • disable

      protected void disable(IDefinition definition)
      Disables field with the given arguments.
      Parameters:
      definition - the definition, cannot be null.
    • disable

      protected void disable(org.eclipse.emf.ecore.EStructuralFeature... features)
      Disables field with the given arguments.
      Parameters:
      features - the features, cannot be null or empty.
    • disable

      protected void disable(org.eclipse.emf.databinding.FeaturePath... paths)
      Disables field with the given arguments.
      Parameters:
      features - the features, cannot be null or empty.
    • disable

      protected void disable(org.eclipse.emf.ecore.EOperation operation)
      Disables field with the given arguments.
      Parameters:
      operation - the EMF operation, cannot be null.
    • disable

      protected void disable(String stringId)
      Disables field with the given arguments.
      Parameters:
      stringId - the definition identifier, cannot be null or empty.
    • multiFeatureDisable

      protected void multiFeatureDisable(org.eclipse.emf.ecore.EStructuralFeature... features)
      Disables field with the given arguments.
      Parameters:
      features - the features, cannot be null or empty.
    • componentTarget

      protected IRuleTarget componentTarget(IDefinition componentDefinition)
      Creates IRuleTarget that point to component for the component definition.
      Parameters:
      componentDefinition - the component definition, cannot be null or empty.
      Returns:
      IRuleTarget instance, never null.
    • componentDefinition

      protected IDefinition componentDefinition(org.eclipse.emf.databinding.FeaturePath... featurePaths)
      Creates IDefinition that point to component for the specified featurePaths.
      Parameters:
      featurePaths - the feature paths, cannot be null or empty.
      Returns:
      IDefinition instance, never null.
    • componentDefinition

      protected IDefinition componentDefinition(org.eclipse.emf.ecore.EStructuralFeature... features)
      Creates IDefinition that point to component for the specified features.
      Parameters:
      features - the features, cannot be null or empty.
      Returns:
      IDefinition instance, never null.
    • componentDefinition

      protected IDefinition componentDefinition(String stringIdentifier)
      Creates IDefinition that point to component for the specified stringIdentifier.
      Parameters:
      stringIdentifier - the definition identifier, cannot be null or empty.
      Returns:
      IDefinition instance, never null.
    • componentDefinition

      protected IDefinition componentDefinition(org.eclipse.emf.ecore.EOperation operation)
      Creates IDefinition that point to component for the specified operation.
      Parameters:
      operation - the EMF operation, cannot be null.
      Returns:
      IDefinition instance, never null.
    • componentDefinition

      protected IDefinition componentDefinition(IDefinitionIdentifier identifier)
      Creates IDefinition that point to component for the specified identifier.
      Parameters:
      identifier - the IDefinitionIdentifier, cannot be null.
      Returns:
      IDefinition instance, never null.