Class ExchangePlanContentModel

    • Constructor Detail

      • ExchangePlanContentModel

        public ExchangePlanContentModel​(ExchangePlan exchangePlan,
                                        Configuration configuration,
                                        org.eclipse.core.resources.IProject project,
                                        org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider,
                                        IFilteredNavigatorContentProvider filteredNavigatorContentProvider)
        Creates a new instance of ExchangePlanContentModel.
        Parameters:
        exchangePlan - the exchange plan, cannot be null
        configuration - the configuration, cannot be null
        project - the project, cannot be null
        qualifiedNameProvider - the actual IQualifiedNameProvider, cannot be null
        filteredNavigatorContentProvider - actual IFilteredNavigatorContentProvider, cannot be null
    • Method Detail

      • getContentItemAutoRecord

        public Optional<AutoRegistrationChanges> getContentItemAutoRecord​(MdObject mdObject)
        Returns the current auto registration for the provided metadata object in exchange plan content.
        Parameters:
        mdObject - the metadata object, cannot be null
        Returns:
        the current auto registration for the provided metadata object in exchange plan content
      • setContentItemAutoRecord

        public void setContentItemAutoRecord​(MdObject mdObject,
                                             AutoRegistrationChanges changes)
        Sets the auto registration for the provided metadata object in exchange plan content.
        Parameters:
        mdObject - the metadata object, cannot be null
        changes - the auto registration value to set, cannot be null
      • findContentItem

        public Optional<ExchangePlanContentItem> findContentItem​(MdObject mdObject)
        Finds the content item for the provided metadata object in exchange plan content.
        Parameters:
        mdObject - the metadata object, cannot be null
        Returns:
        the content item for the provided metadata object
      • getQualifiedNameProvider

        public org.eclipse.xtext.naming.IQualifiedNameProvider getQualifiedNameProvider()
        Gets actual IQualifiedNameProvider
        Returns:
        actual IQualifiedNameProvider, never null
      • getExchangePlan

        protected ExchangePlan getExchangePlan()
        Returns the exchange plan.
        Returns:
        the exchange plan, never null