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.EffectiveDiff 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.
      • hasResourcesOfType

        public boolean hasResourcesOfType​(ResourceType type)
        Description copied from interface: Project
        Short-circuiting evaluation of whether project has any resources of given type.
        Specified by:
        hasResourcesOfType in interface Project
        Parameters:
        type - the resource type.
        Returns:
        true if the project contains at least one resource of the given type.

        See also: ProjectLifecycleFactory#getProjectFilter()

        See Also:
        Project.getResourcesOfType(ResourceType)