Class AbstractProject

    • Constructor Detail

      • AbstractProject

        public AbstractProject()
    • Method Detail

      • getResources

        public java.util.List<ProjectResource> getResources()
        Description copied from interface: Project
        Get the effective ProjectResources for this project.

        This includes inherited resources from parent projects, recursively, except where resources in child projects override resources by the same name from parent projects. In other words, for any given ResourcePath, only the resource "closest" to this project in the inheritance chain will be included in this list.

        Note that depending on the ResourceFilter used to load this project instance, this may not include all resource types that are actually part of this project.

        Specified by:
        getResources in interface Project
        Returns:
        the effective ProjectResources for this project.
      • updateEffectiveState

        protected ProjectDiff updateEffectiveState()
        Call this after one or more resources or manifests have been changed. This will calculate the effective change to the resources and notify listeners.
      • getTitle

        public java.lang.String getTitle()
        Specified by:
        getTitle in interface Project
        Returns:
        the title of this Project.
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface Project
        Returns:
        the description of this Project.
      • getParent

        public java.util.Optional<java.lang.String> getParent()
        Specified by:
        getParent in interface Project
        Returns:
        the name of the parent Project, if one exists.
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface Project
        Returns:
        true if this Project is enabled.
      • isInheritable

        public boolean isInheritable()
        Specified by:
        isInheritable in interface Project
        Returns:
        true if this Project is inheritable.
      • isRunnable

        public boolean isRunnable()
        Specified by:
        isRunnable in interface Project
        Returns:
        true if this Project is "runnable", i.e. it's enabled and not inheritable (abstract).