Package org.eso.ias.cdb.structuredtext
Enum Class CdbFolders
- All Implemented Interfaces:
Serializable,Comparable<CdbFolders>,Constable
The structure of the folders and the names of the files of the CDB are described in the CDB wiki:
+CDB | ias.json |+ SUPERVISOR | <SupID-1>.json | ... | <SupID-n>.json |+ DASU | <DasuID-1>.json | ... | <DasuID-m>.json |+ TF | tfs.json |+ ASCE | <AsceID-1>.json | ... | <AsceID-t>.json |+ IASIO | IASIO.json |+ TEMPLATE | templates.json |+ CLIENT | <ClientId-1>.conf | ... | <ClientId-x>.confCdbFoldersreturns the path and the names of the folders of the IAS CDB.CdbFoldersonly deals with the folders of the CDB but not with the name of the files that ultimately depends on the selected format. The example shown above is for JSON files.
- Author:
- acaproni
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the subfolder existsGet the path of the CDB folder.static PathgetSubfolder(Path cdbParentPath, CdbFolders folder) Get the path of a CDB sub-folder.static CdbFoldersReturns the enum constant of this class with the specified name.static CdbFolders[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ROOT
-
SUPERVISOR
-
DASU
-
ASCE
-
IASIO
-
TF
-
TEMPLATE
-
PLUGIN
-
CLIENT
-
-
Field Details
-
folderName
The name of the folder
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getFolder
Get the path of the CDB folder.- Parameters:
cdbParentPath- : The path to the parent of the CDB- Returns:
- the path to the subfolder.
- Throws:
InvalidPathException- If the path is not valid
-
exists
Check if the subfolder exists- Parameters:
cdbParentPath- The path of the folder- Returns:
trueif the folder exists,falseotherwise.
-
getSubfolder
Get the path of a CDB sub-folder.- Parameters:
cdbParentPath- : The path to the parent of the CDBfolder- : the CDB folder to create- Returns:
- the path to the subfolder.
- Throws:
InvalidPathException- If the path is not valid
-