Package com.powsybl.afs
Class Node
- java.lang.Object
-
- com.powsybl.afs.AbstractNodeBase<Folder>
-
- com.powsybl.afs.Node
-
public class Node extends AbstractNodeBase<Folder>
- Author:
- Geoffroy Jamgotchian
-
-
Field Summary
Fields Modifier and Type Field Description protected AppFileSystem
fileSystem
protected boolean
folder
-
Fields inherited from class com.powsybl.afs.AbstractNodeBase
codeVersion, info, storage
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Node(FileCreationContext context, int codeVersion, boolean folder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
<U> U
findService(Class<U> serviceClass)
AppFileSystem
getFileSystem()
Optional<Folder>
getParent()
NodePath
getPath()
boolean
isFolder()
-
Methods inherited from class com.powsybl.afs.AbstractNodeBase
archive, archive, archive, archive, archive, getChildInfo, getCodeVersion, getCreationDate, getDescription, getId, getModificationDate, getName, getParentInfo, getVersion, isAheadOfVersion, isAncestorOf, moveTo, rename, setDescription, toString, unarchive, unarchive
-
-
-
-
Field Detail
-
fileSystem
protected final AppFileSystem fileSystem
-
folder
protected final boolean folder
-
-
Constructor Detail
-
Node
protected Node(FileCreationContext context, int codeVersion, boolean folder)
-
-
Method Detail
-
delete
public void delete()
-
isFolder
public boolean isFolder()
- Specified by:
isFolder
in classAbstractNodeBase<Folder>
-
getParent
public Optional<Folder> getParent()
- Specified by:
getParent
in classAbstractNodeBase<Folder>
-
getPath
public NodePath getPath()
- Specified by:
getPath
in classAbstractNodeBase<Folder>
-
getFileSystem
public AppFileSystem getFileSystem()
-
findService
public <U> U findService(Class<U> serviceClass)
-
-