|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.administer.DCType
public class DCType
Class representing a particular Dublin Core metadata type, with various utility methods. In general, only used for manipulating the registry of Dublin Core types in the system, so most users will not need this.
The DCType implementation has been deprecated, please use MetadataManager, MetadataSchema and MetadataField instead. For backward compatibility the this implementation has been updated to transparently call the new classes.
| Constructor Summary | |
|---|---|
DCType(Context context)
Deprecated. |
|
DCType(Context context,
MetadataField field)
Deprecated. |
|
| Method Summary | |
|---|---|
static DCType |
create(Context context)
Deprecated. |
void |
delete()
Deprecated. |
static DCType |
find(Context context,
int id)
Deprecated. |
static DCType[] |
findAll(Context context)
Deprecated. |
static DCType |
findByElement(Context context,
String element,
String qualifier)
Deprecated. |
String |
getElement()
Deprecated. Get the DC element |
int |
getID()
Deprecated. Get the internal identifier of this metadata field |
String |
getQualifier()
Deprecated. Get the DC qualifier, if any. |
String |
getScopeNote()
Deprecated. Get the scope note - information about the DC type and its use |
static String[] |
quickFind(Context context,
int id)
Deprecated. |
void |
setElement(String s)
Deprecated. Set the DC element |
void |
setQualifier(String s)
Deprecated. Set the DC qualifier |
void |
setScopeNote(String s)
Deprecated. Set the scope note |
void |
update()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DCType(Context context,
MetadataField field)
context - field - public DCType(Context context)
context - | Method Detail |
|---|
public static String[] quickFind(Context context,
int id)
throws SQLException
context - context, in case DC types need to be read in from DBid - the DC type ID
SQLException
public static DCType find(Context context,
int id)
throws SQLException
context - DSpace context objectid - ID of the dublin core type
SQLException
public static DCType findByElement(Context context,
String element,
String qualifier)
throws SQLException,
AuthorizeException
null if the Dublin
Core type doesn't exist.
context - the DSpace context to useelement - the element to findqualifier - the qualifier, or null to find an unqualified
type
null if there isn't a
corresponding type in the registry
AuthorizeException
SQLException
public static DCType[] findAll(Context context)
throws SQLException
SQLException
public static DCType create(Context context)
throws SQLException,
AuthorizeException,
IOException,
NonUniqueMetadataException
context - DSpace context object
NonUniqueMetadataException
IOException
SQLException
AuthorizeException
public void delete()
throws SQLException,
AuthorizeException
SQLException (referential integrity violation) will be
thrown in this case.
SQLException
AuthorizeExceptionpublic int getID()
public String getElement()
public void setElement(String s)
s - the new elementpublic String getQualifier()
null if this is an
unqualified elementpublic void setQualifier(String s)
s - the DC qualifier, or null if this is an
unqualified elementpublic String getScopeNote()
public void setScopeNote(String s)
s - the new scope note
public void update()
throws SQLException,
AuthorizeException,
NonUniqueMetadataException,
IOException
IOException
NonUniqueMetadataException
SQLException
AuthorizeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||