@Entity public class BitstreamFormat extends Object implements Serializable, ReloadableEntity<Integer>
Changes to the bitstream format metadata are only written to the database
when update is called.
| Modifier and Type | Field and Description |
|---|---|
static int |
KNOWN
The "known" support level - for bitstream formats that are known to the
system, but not fully supported
|
static int |
SUPPORTED
The "supported" support level - for bitstream formats known to the system
and fully supported.
|
static int |
UNKNOWN
The "unknown" support level - for bitstream formats that are unknown to
the system
|
| Modifier | Constructor and Description |
|---|---|
protected |
BitstreamFormat()
Protected constructor, create object using:
DSpaceCRUDService.create(Context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Return
true if other is the same Collection
as this object, false otherwise |
String |
getDescription()
Get a description of this bitstream format, including full application or
format name
|
List<String> |
getExtensions()
Get the filename extensions associated with this format
|
Integer |
getID()
Get the internal identifier of this bitstream format
|
String |
getMIMEType()
Get the MIME type of this bitstream format, for example
text/plain |
String |
getShortDescription()
Get a short (one or two word) description of this bitstream format
|
int |
getSupportLevel()
Get the support level for this bitstream format - one of
UNKNOWN,KNOWN or SUPPORTED. |
int |
hashCode() |
boolean |
isInternal()
Find out if the bitstream format is an internal format - that is, one
that is used to store system information, rather than the content of
items in the system
|
void |
setDescription(String s)
Set the description of the bitstream format
|
void |
setExtensions(List<String> exts)
Set the filename extensions associated with this format
|
void |
setInternal(boolean b)
Set whether the bitstream format is an internal format
|
void |
setMIMEType(String s)
Set the MIME type of the bitstream format
|
void |
setShortDescription(Context context,
String s) |
void |
setSupportLevel(int sl) |
public static final int UNKNOWN
public static final int KNOWN
public static final int SUPPORTED
protected BitstreamFormat()
DSpaceCRUDService.create(Context)public final Integer getID()
getID in interface ReloadableEntity<Integer>public String getShortDescription()
public String getDescription()
public void setDescription(String s)
s - the new descriptionpublic final String getMIMEType()
text/plainpublic final void setMIMEType(String s)
s - the new MIME typepublic int getSupportLevel()
UNKNOWN,KNOWN or SUPPORTED.public boolean isInternal()
true if the bitstream format is an internal typepublic void setInternal(boolean b)
b - pass in true if the bitstream format is an
internal typepublic List<String> getExtensions()
public void setExtensions(List<String> exts)
exts - String [] array of extensionspublic void setShortDescription(Context context, String s) throws SQLException
SQLExceptionpublic void setSupportLevel(int sl)
public boolean equals(Object other)
true if other is the same Collection
as this object, false otherwiseCopyright © 2016 DuraSpace. All rights reserved.