Class ComponentInstPath

    • Method Detail

      • getPath

        public static ComponentInstPath getPath​(String instanceId)
        Gets the path of the specified component instance.
        Parameters:
        instanceId - the unique identifier of a component instance.
        Returns:
        a ComponentInstPath instance.
      • format

        public String format​(String language,
                             boolean absolutePath,
                             String pathSep)
        Formats this path as a textual value in which each segment is separated by the specified separator token. Each path segment is the name of the spaces (and at the end of the component instance) in this path expressed in the given language. If only a relative path is asked, then the path starts with name of the space that contains the component instance targeted by this path. Otherwise, the path starts with the root space for which the targeted component instance is a descendent. If this path is empty, then an empty String is returned.
        Specified by:
        format in interface ResourcePath<ComponentInstLight>
        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:
        the String representation of this path by using the given path separator and in which each path segment is the element's name in the specified language.