Class AdoptedMdObjectRule

    • Constructor Detail

      • AdoptedMdObjectRule

        public AdoptedMdObjectRule()
    • Method Detail

      • buildSingleObject

        protected void buildSingleObject​(org.eclipse.emf.ecore.EObject object,
                                         IV8Project v8project)
        Description copied from class: AbstractRule
        Builds statements for each of selected object.
        Specified by:
        buildSingleObject in class AbstractRule
        Parameters:
        object - the object.
        v8project - the V8 project for object.
      • isEnabled

        protected boolean isEnabled​(MdObject object,
                                    org.eclipse.emf.ecore.EStructuralFeature feature,
                                    Collection<MdPropertyType> types)
        Returns whether the provided feature is enabled for adopted model object.
        Parameters:
        object - the metadata object to check, cannot be null
        feature - the feature to check, cannot be null
        types - the property types of the object feature, cannot be null
        Returns:
        whether the provided feature is enabled for adopted model object
      • isShown

        protected boolean isShown​(MdObject object,
                                  org.eclipse.emf.ecore.EStructuralFeature feature,
                                  Collection<MdPropertyType> types)
        Returns whether the provided feature is shown for adopted model object. Default implementation always returns true.
        Parameters:
        object - the metadata object to check, cannot be null
        feature - the feature to check, cannot be null
        types - the property types of the object feature, cannot be null or empty
        Returns:
        whether the provided feature is shown for adopted model object
      • alwaysShown

        protected boolean alwaysShown​(MdObject object,
                                      org.eclipse.emf.ecore.EStructuralFeature feature)
        Returns whether the provided feature is always shown for adopted model object.
        Parameters:
        object - the metadata object to check, cannot be null
        feature - the feature to check, cannot be null
        Returns:
        whether the provided feature is always shown for adopted model object