jetbrains.buildServer.util.browser
Class FileSystemBrowser

java.lang.Object
  extended by jetbrains.buildServer.util.browser.FileSystemBrowser
All Implemented Interfaces:
Browser

public class FileSystemBrowser
extends java.lang.Object
implements Browser

A simple file system implementation of a browser. Files are terminal elements and directories are non-terminal ones. Directories return first inner directories, then files (both in lexigraphical order) as children.

Since:
6.0
Author:
Maxim Podkolzine (maxim.podkolzine@jetbrains.com)

Nested Class Summary
static class FileSystemBrowser.DirectoryElement
           
static class FileSystemBrowser.FileElement
           
 
Constructor Summary
FileSystemBrowser(java.io.File root)
           
FileSystemBrowser(java.lang.String rootPath)
           
 
Method Summary
 Behaviour getBehaviour()
          Returns the browser behaviour options.
 Element getRoot()
          Returns the root element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemBrowser

public FileSystemBrowser(@NotNull
                         java.io.File root)

FileSystemBrowser

public FileSystemBrowser(@NotNull
                         java.lang.String rootPath)
Method Detail

getRoot

@NotNull
public Element getRoot()
Description copied from interface: Browser
Returns the root element.

Specified by:
getRoot in interface Browser
Returns:
root element

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 interface Browser
Returns:
browser behaviour