|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.proposal.JustificationFileDescriptor
public class JustificationFileDescriptor
Placeholder for time when we integrate proposal work.
A description of a JustificationFile
. This class
represents the metadata, but not the data, for a
justification file.
TODO Should we think about making this more general by removing the "Justification" label an putting this in a different package?
Field Summary | |
---|---|
static long |
EMPTY_FILE
Representation of an empty file. |
static String |
UNNAMED_FILE
Representation of an unnamed file. |
Constructor Summary | |
---|---|
JustificationFileDescriptor()
Creates a new instance. |
Method Summary | |
---|---|
long |
getByteSize()
Returns the size of the JustificationFile described by this
object in bytes. |
String |
getFileName()
Returns the name of the JustificationFile described by this object. |
JustificationFileType |
getFileType()
Returns the type of the JustificationFile described by this object. |
void |
reset()
Resets this descriptor to its initial state. |
void |
setByteSize(long byteSize)
Sets the size of the JustificationFile described by this
object in bytes. |
void |
setFileName(String fileName)
Sets the name of the JustificationFile described by this object. |
void |
setFileType(JustificationFileType fileType)
Sets the type of the JustificationFile described by this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long EMPTY_FILE
byteSize
property of objects of this class.
public static final String UNNAMED_FILE
fileName
property of objects of this class.
Constructor Detail |
---|
public JustificationFileDescriptor()
Method Detail |
---|
public void reset()
public long getByteSize()
JustificationFile
described by this
object in bytes.
public void setByteSize(long byteSize)
JustificationFile
described by this
object in bytes.
If byteSize
is less than zero, it will be treated as if it
were EMPTY_FILE
.
byteSize
- the size of the described justification file in bytes.public String getFileName()
JustificationFile
described by this object.
public void setFileName(String fileName)
JustificationFile
described by this object.
If fileName
is null, it will be treated as if it were
UNNAMED_FILE
.
fileName
- the name of the described justification file.public JustificationFileType getFileType()
JustificationFile
described by this object.
public void setFileType(JustificationFileType fileType)
JustificationFile
described by this object.
If fileName
is null, it will be treated as if it were
JustificationFileType.UNKNOWN
.
fileType
- the type of the described justification file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |