Class AdoptedBasicTemplateRule

  • All Implemented Interfaces:
    IRule

    public class AdoptedBasicTemplateRule
    extends AdoptedMdObjectRule
    Rule for adopted basic template.
    • Constructor Detail

      • AdoptedBasicTemplateRule

        public AdoptedBasicTemplateRule()
    • Method Detail

      • alwaysShown

        protected boolean alwaysShown​(MdObject object,
                                      org.eclipse.emf.ecore.EStructuralFeature feature)
        Description copied from class: AdoptedMdObjectRule
        Returns whether the provided feature is always shown for adopted model object.
        Overrides:
        alwaysShown in class AdoptedMdObjectRule
        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
      • isShown

        protected boolean isShown​(MdObject object,
                                  org.eclipse.emf.ecore.EStructuralFeature feature,
                                  Collection<MdPropertyType> types)
        Description copied from class: AdoptedMdObjectRule
        Returns whether the provided feature is shown for adopted model object. Default implementation always returns true.
        Overrides:
        isShown in class AdoptedMdObjectRule
        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