Interface Browser
-
- All Known Implementing Classes:
ArtifactsBrowserImpl,BrowserWithNewRoot,CachingBrowser,DirOnlyVcsBrowserDecorator,FileSystemBrowser,RemoteBrowser,VcsBrowser,ZipAwareBrowser
public interface BrowserRepresents an abstract browser of elements organized in a tree-like structure, e.g. Unix file system browser.- Since:
- 6.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BehaviourgetBehaviour()Returns the browser behaviour options.ElementgetElement(String path)ElementgetRoot()Returns the root element.
-
-
-
Method Detail
-
getRoot
@NotNull Element getRoot() throws BrowserException
Returns the root element.- Returns:
- root element
- Throws:
BrowserException- in case of an error
-
getElement
@Nullable Element getElement(@NotNull String path) throws BrowserException
- Parameters:
path- path to some element- Returns:
- element for specified path or null if element does not exist
- Throws:
BrowserException
-
getBehaviour
@NotNull Behaviour getBehaviour()
Returns the browser behaviour options.For most implementations
Behaviour.DEFAULT_BEHAVIOURis returned.- Returns:
- browser behaviour
- Since:
- 7.0
-
-