Class AbstractRule

  • All Implemented Interfaces:
    IRule

    public abstract class AbstractRule
    extends Object
    implements IRule
    Basic implementation of IRule. 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​(org.eclipse.emf.ecore.EObject object)
      Builds statements for each of selected object.
      protected IDefinition componentDefinition​(IDefinitionIdentifier identifier)
      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 disable​(IRuleTarget target)
      Disables field with the given IRuleTarget.
      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 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.
      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 given IRuleTarget.
      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 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.
    • Constructor Detail

      • AbstractRule

        public AbstractRule()
    • Method Detail

      • buildSingleObject

        protected abstract void buildSingleObject​(org.eclipse.emf.ecore.EObject object)
        Builds statements for each of selected object.
        Parameters:
        object - the object, 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​(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​(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.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​(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.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.