Class AbstractRule

    • Constructor Detail

      • AbstractRule

        public AbstractRule()
    • Method Detail

      • getResult

        protected IRuleResult getResult​(IDtRuleInput input)
        Returns the result of the rule.
        Parameters:
        input - the input.
        Returns:
        result of the rule.
      • getProject

        protected IV8Project getProject​(IDtRuleInput input,
                                        org.eclipse.emf.ecore.EObject object)
        Returns v8 project by given editing object.
        Parameters:
        input - the rule input, never null
        object - the editing object, never null
        Returns:
        v8 project or null
      • isMobileApplicationOnly

        protected boolean isMobileApplicationOnly​(IV8Project v8Project)
        The specified IV8Project is only for mobile applications
        Parameters:
        v8Project - the IV8Project for check, cannot be null
        Returns:
        true if given IV8Project is only for mobile applications, false in otherwise
      • buildSingleObject

        protected abstract void buildSingleObject​(org.eclipse.emf.ecore.EObject object,
                                                  IV8Project v8project)
        Builds statements for each of selected object.
        Parameters:
        object - the object.
        v8project - the V8 project for object.
      • buildMultiObject

        protected void buildMultiObject​(IDtRuleInput input)
        Builds statements only multiple selected objects.
        Parameters:
        object - the object.
      • 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.