Class WritableOnDisk
- java.lang.Object
-
- app.coronawarn.server.services.distribution.assembly.structure.WritableOnDisk
-
- All Implemented Interfaces:
Writable<WritableOnDisk>
- Direct Known Subclasses:
DirectoryOnDisk
,FileOnDisk
public abstract class WritableOnDisk extends Object implements Writable<WritableOnDisk>
AWritable
that can be written to disk.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WritableOnDisk(File fileOnDisk)
protected
WritableOnDisk(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getFileOnDisk()
String
getName()
Returns the name of thisWritable
.Directory<WritableOnDisk>
getParent()
Returns the parent of thisWritable
, ornull
if it doesn't have a parent.boolean
isArchive()
boolean
isDirectory()
boolean
isFile()
void
setParent(Directory<WritableOnDisk> parent)
Sets the parent of thisWritable
.
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Writable
Returns the name of thisWritable
.- Specified by:
getName
in interfaceWritable<WritableOnDisk>
-
getParent
public Directory<WritableOnDisk> getParent()
Description copied from interface:Writable
Returns the parent of thisWritable
, ornull
if it doesn't have a parent.- Specified by:
getParent
in interfaceWritable<WritableOnDisk>
-
setParent
public void setParent(Directory<WritableOnDisk> parent)
Description copied from interface:Writable
Sets the parent of thisWritable
.- Specified by:
setParent
in interfaceWritable<WritableOnDisk>
-
getFileOnDisk
public File getFileOnDisk()
-
isFile
public boolean isFile()
Description copied from interface:Writable
- Specified by:
isFile
in interfaceWritable<WritableOnDisk>
-
isDirectory
public boolean isDirectory()
Description copied from interface:Writable
- Specified by:
isDirectory
in interfaceWritable<WritableOnDisk>
-
isArchive
public boolean isArchive()
Description copied from interface:Writable
- Specified by:
isArchive
in interfaceWritable<WritableOnDisk>
-
-