BrightSide Workbench Full Report + Source Code
org.turro.elephant.impl.repository.Repository Class Reference
Collaboration diagram for org.turro.elephant.impl.repository.Repository:

Public Member Functions

 Repository (IConstructor constructor, String path)
 
boolean hasContent ()
 
File[] getFiles (String pattern)
 
File[] getFiles (String root, String pattern)
 
File[] getFolders (String pattern)
 
File[] getFolders (String root, String pattern)
 
Set< RepositoryFilegetRepositoryFiles (String pattern)
 
Set< RepositoryFilegetRepositoryFiles (String root, String pattern)
 
Set< RepositoryFilegetRepositoryFolders (String pattern)
 
Set< RepositoryFilegetRepositoryFolders (String root, String pattern)
 
RepositoryFile getRoot (String root)
 

Protected Attributes

final IConstructor constructor
 
final String path
 

Detailed Description

Constructor & Destructor Documentation

◆ Repository()

Member Function Documentation

◆ getFiles() [1/2]

File [] org.turro.elephant.impl.repository.Repository.getFiles ( String  pattern)

◆ getFiles() [2/2]

File [] org.turro.elephant.impl.repository.Repository.getFiles ( String  root,
String  pattern 
)

◆ getFolders() [1/2]

File [] org.turro.elephant.impl.repository.Repository.getFolders ( String  pattern)

◆ getFolders() [2/2]

File [] org.turro.elephant.impl.repository.Repository.getFolders ( String  root,
String  pattern 
)

Definition at line 57 of file Elephant/elephant/src/main/java/org/turro/elephant/impl/repository/Repository.java.

57  {
58  return getRoot(null).getFolders(pattern);
59  }
Here is the call graph for this function:

◆ getRepositoryFiles() [1/2]

Set<RepositoryFile> org.turro.elephant.impl.repository.Repository.getRepositoryFiles ( String  pattern)

Definition at line 61 of file Elephant/elephant/src/main/java/org/turro/elephant/impl/repository/Repository.java.

61  {
62  return getRepositoryFiles(null, pattern);
63  }
Here is the caller graph for this function:

◆ getRepositoryFiles() [2/2]

Set<RepositoryFile> org.turro.elephant.impl.repository.Repository.getRepositoryFiles ( String  root,
String  pattern 
)

Definition at line 65 of file Elephant/elephant/src/main/java/org/turro/elephant/impl/repository/Repository.java.

65  {
66  return getRoot(root).getRepositoryFiles(pattern);
67  }
Set< RepositoryFile > getRepositoryFiles(String pattern)
Here is the call graph for this function:

◆ getRepositoryFolders() [1/2]

Set<RepositoryFile> org.turro.elephant.impl.repository.Repository.getRepositoryFolders ( String  pattern)

◆ getRepositoryFolders() [2/2]

Set<RepositoryFile> org.turro.elephant.impl.repository.Repository.getRepositoryFolders ( String  root,
String  pattern 
)

Definition at line 73 of file Elephant/elephant/src/main/java/org/turro/elephant/impl/repository/Repository.java.

73  {
74  return getRoot(root).getRepositoryFolders(pattern);
75  }
Set< RepositoryFile > getRepositoryFolders(String pattern)
Here is the call graph for this function:

◆ getRoot()

RepositoryFile org.turro.elephant.impl.repository.Repository.getRoot ( String  root)

Definition at line 77 of file Elephant/elephant/src/main/java/org/turro/elephant/impl/repository/Repository.java.

77  {
78  File repository = new File(ElephantContext.getRealPath(
79  path +
80  (root == null ? "" : root)));
81  return new RepositoryFile(repository, constructor);
82  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasContent()

boolean org.turro.elephant.impl.repository.Repository.hasContent ( )

Definition at line 40 of file Elephant/elephant/src/main/java/org/turro/elephant/impl/repository/Repository.java.

40  {
41  File dir = getRoot(null).getFile();
42  return dir.isDirectory() && dir.list().length > 0;
43  }
Here is the call graph for this function:

Member Data Documentation

◆ constructor

final IConstructor org.turro.elephant.impl.repository.Repository.constructor
protected

◆ path

final String org.turro.elephant.impl.repository.Repository.path
protected

The documentation for this class was generated from the following file: