public final class VCSContext extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
VCSContext.FileFilter
A
VCSFileProxy analogy to FileFilter |
Modifier and Type | Field and Description |
---|---|
static VCSContext |
EMPTY
VCSContext that contains no files.
|
Modifier and Type | Method and Description |
---|---|
Set<VCSFileProxy> |
computeFiles(VCSContext.FileFilter filter)
Returns the smallest possible set of all files that lie under Root files and are NOT
under some Excluded file.
|
boolean |
contains(VCSFileProxy file)
Determines whether the supplied VCSFileProxy is contained in this context.
|
static VCSContext |
forNodes(Node[] nodes)
Initializes the context from array of nodes (typically currently activated nodes).
|
Lookup |
getElements()
Retrieves elements that make up this VCS context.
|
Set<VCSFileProxy> |
getExclusions()
Retrieves set of files/folders that are excluded from this context.
|
Set<VCSFileProxy> |
getFiles()
Retrieves set of files/folders that represent this context.
|
Set<VCSFileProxy> |
getRootFiles()
Retrieves set of root files/folders that represent this context.
|
public static final VCSContext EMPTY
public static VCSContext forNodes(Node[] nodes)
nodes
- array of Nodespublic Set<VCSFileProxy> computeFiles(VCSContext.FileFilter filter)
filter
- custom file filterpublic Lookup getElements()
public Set<VCSFileProxy> getFiles()
VCSContext.getRootFiles()
public Set<VCSFileProxy> getRootFiles()
VCSContext.getFiles()
public Set<VCSFileProxy> getExclusions()
public boolean contains(VCSFileProxy file)
file
- a VCSFileProxy to test