Class VcsBrowser
- java.lang.Object
-
- jetbrains.buildServer.vcs.browser.VcsBrowser
-
- All Implemented Interfaces:
Browser
- Direct Known Subclasses:
DirOnlyVcsBrowserDecorator
public class VcsBrowser extends Object implements Browser
- Author:
- dmitry.neverov
-
-
Constructor Summary
Constructors Constructor Description VcsBrowser(VcsWorkspaceAccess vcs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Behaviour
getBehaviour()
Returns the browser behaviour options.Element
getElement(String path)
Element
getRoot()
Returns the root element.
-
-
-
Constructor Detail
-
VcsBrowser
public VcsBrowser(@NotNull VcsWorkspaceAccess vcs)
-
-
Method Detail
-
getRoot
@NotNull public Element getRoot() throws BrowserException
Description copied from interface:Browser
Returns the root element.- Specified by:
getRoot
in interfaceBrowser
- Returns:
- root element
- Throws:
BrowserException
- in case of an error
-
getElement
@Nullable public Element getElement(@NotNull String path)
- Specified by:
getElement
in interfaceBrowser
- Parameters:
path
- path to some element- Returns:
- element for specified path or null if element does not exist
-
getBehaviour
@NotNull public Behaviour getBehaviour()
Description copied from interface:Browser
Returns the browser behaviour options.For most implementations
Behaviour.DEFAULT_BEHAVIOUR
is returned.- Specified by:
getBehaviour
in interfaceBrowser
- Returns:
- browser behaviour
-
-