|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<JustificationFileType> edu.nrao.sss.model.proposal.JustificationFileType
public enum JustificationFileType
Placeholder for time when we integrate proposal work. An enumeration of file types for justification files.
TODO Should we think about making this more general by removing the "Justification" label an putting this in a different package?
Enum Constant Summary | |
---|---|
PDF
Represents a PDF file. |
|
PS
Represents a postscript file. |
|
TXT_OCTET
Represents a file octal codes. |
|
TXT_PLAIN
Represents a plain text file. |
|
UNKNOWN
Represents a justification file of unknown type. |
Method Summary | |
---|---|
static JustificationFileType |
fromString(String text)
Returns the justification file type represented by text . |
static JustificationFileType |
getDefault()
Returns a default justification file type. |
String |
toString()
|
static JustificationFileType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JustificationFileType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JustificationFileType PS
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
PS and application/postscript.
public static final JustificationFileType PDF
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
PDF and application/pdf.
public static final JustificationFileType TXT_OCTET
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
TXT_OCTET and application/octet-stream.
public static final JustificationFileType TXT_PLAIN
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
TXT_PLAIN and text/plain.
public static final JustificationFileType UNKNOWN
This element is used to implement the Null Object Pattern. In situations where a method might be tempted to return null, this element is returned instead.
Method Detail |
---|
public static JustificationFileType[] values()
for (JustificationFileType c : JustificationFileType.values()) System.out.println(c);
public static JustificationFileType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static JustificationFileType getDefault()
public String toString()
toString
in class Enum<JustificationFileType>
public static JustificationFileType fromString(String text)
text
.
For details about the transformation, see
EnumerationUtility.enumFromString(Class, String)
.
text
- a text representation of a justification file type.
text
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |