Interface ResourcePath<T extends SilverpeasResource>

    • Method Detail

      • format

        default String format​(String language)
        Formats an relative textual path with the name of each of the resources constitutive of the path (and therefore in this list). The relativity of the path depends on the implementation of this interface.
        Parameters:
        language - the language in which the name should be expressed in the path.
        Returns:
        a String representation of the path or an empty String if this path is empty.
      • format

        default String format​(String language,
                              boolean absolutePath)
        Formats a textual path with the name of each of the resources constitutive of the path (and therefore in this list). The relativity of the path depends on the implementation of this interface. The absolute path must be computed from the root space to which the resources in this path are a descendent.
        Parameters:
        language - the language in which the name should be expressed in the path.
        absolutePath - if false, only a relative path is returned. If true, an absolute path is returned.
        Returns:
        a String representation of the path or an empty String if this path is empty.
      • format

        String format​(String language,
                      boolean absolutePath,
                      String pathSep)
        Formats a textual path with the name of each of the resources constitutive of the path (and therefore in this list). The relativity of the path depends on the implementation of this interface. The absolute path must be computed from the root space to which the resources in this path are a descendent.
        Parameters:
        language - the language in which the name should be expressed in the path.
        absolutePath - if false, only a relative path is returned. If true, an absolute path is returned.
        pathSep - the path separator to use instead of the default one.
        Returns:
        a String representation of the path or an empty String if this path is empty.