public class ProjectFolder extends ProjectNode implements FolderBase<ProjectNode,ProjectFolder>
Project
tree.
Project folders may have children project folders or files, and provides methods to create new children.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PSEUDO_CLASS |
static int |
VERSION |
folder, project
codeVersion, info, storage
Constructor and Description |
---|
ProjectFolder(ProjectFileCreationContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ProjectFolderListener listener) |
ProjectFolder |
createFolder(java.lang.String name)
Creates a subfolder of this folder.
|
<F extends ProjectFile,B extends ProjectFileBuilder<F>> |
fileBuilder(java.lang.Class<B> clazz)
Gets a project file builder for type B, to build a new project file in this folder.
|
<T extends ProjectNode> |
getChild(java.lang.Class<T> clazz,
java.lang.String name,
java.lang.String... more)
Gets the child node of class T at path "name/name2/..." relative to this folder, in a typesafe way, or empty if it does not exist.
|
java.util.Optional<ProjectNode> |
getChild(java.lang.String name,
java.lang.String... more)
Gets the child node at path "name/name2/..." relative to this folder, or empty if it does not exist.
|
java.util.List<ProjectNode> |
getChildren()
Gets the list of children nodes of this project folder.
|
java.util.Optional<ProjectFolder> |
getFolder(java.lang.String name,
java.lang.String... more)
Gets the folder at path "name/name2/..." relative to this folder, or empty if it does not exist.
|
void |
removeAllListeners() |
void |
removeListener(ProjectFolderListener listener) |
delete, getBackwardDependencies, getFileSystem, getParent, getPath, getProject, invalidate, isFolder
getChildInfo, getCodeVersion, getCreationDate, getDescription, getId, getModificationDate, getName, getParentInfo, getVersion, isAheadOfVersion, isAncestorOf, moveTo, rename, setDescription, toString
public static final java.lang.String PSEUDO_CLASS
public static final int VERSION
public ProjectFolder(ProjectFileCreationContext context)
public java.util.List<ProjectNode> getChildren()
getChildren
in interface FolderBase<ProjectNode,ProjectFolder>
public java.util.Optional<ProjectNode> getChild(java.lang.String name, java.lang.String... more)
getChild
in interface FolderBase<ProjectNode,ProjectFolder>
public <T extends ProjectNode> java.util.Optional<T> getChild(java.lang.Class<T> clazz, java.lang.String name, java.lang.String... more)
getChild
in interface FolderBase<ProjectNode,ProjectFolder>
public java.util.Optional<ProjectFolder> getFolder(java.lang.String name, java.lang.String... more)
getFolder
in interface FolderBase<ProjectNode,ProjectFolder>
public ProjectFolder createFolder(java.lang.String name)
createFolder
in interface FolderBase<ProjectNode,ProjectFolder>
public <F extends ProjectFile,B extends ProjectFileBuilder<F>> B fileBuilder(java.lang.Class<B> clazz)
public void addListener(ProjectFolderListener listener)
public void removeListener(ProjectFolderListener listener)
public void removeAllListeners()
Copyright © 2019. All rights reserved.