Class 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 Detail

      • AbstractRule

        public AbstractRule()
    • Method Detail

      • 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​(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.