|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.services.mmd.MmdRec
public class MmdRec
Describes a single metadata record.
Field Summary | |
---|---|
static String[] |
metastyleNames
|
static int |
MS_ADN
Metadata style: adn |
static int |
MS_BRIEFMETA
Metadata style: briefmeta |
static int |
MS_DC_QUAL
Metadata style: dc_qual |
static int |
MS_DC_SIMPLE
Metadata style: dc_simple |
static int |
MS_DLESE_ANNO
Metadata style: dlese_anno |
static int |
MS_DLESE_COLLECT
Metadata style: dlese_collect |
static int |
MS_DLESE_IMS
Metadata style: dlese_ims |
static int |
MS_NEWS_OPPS
Metadata style: news_opps |
static int |
MS_NSDL_DC
Metadata style: nsdl_dc |
static int |
MS_OAI_DC
Metadata style: oai_dc |
static int |
MS_UNKNOWN
Metadata style: unknown (error) |
static int |
STATUS_ACCESSIONED_DISCOVERABLE
Record status: accessioned and discoverable |
static int |
STATUS_ACCESSIONED_NONDISCOVERABLE
Record status: accessioned and not discoverable |
static int |
STATUS_DEACCESSIONED
Record status: deaccessioned |
static int |
STATUS_NEW
Record status: new |
static int |
STATUS_REJECTED
Record status: rejected |
static int |
STATUS_UNKNOWN
Record status: unknown (error) |
static String[] |
statusNames
|
Constructor Summary | |
---|---|
MmdRec(String collKey,
String id,
String fileName,
String statusStg,
String metastyleStg,
long firstAccessionDate,
long lastMetaModDate,
long recCheckDate,
String primaryContent,
String primarycontentType,
MmdWarning[] warnings)
Creates new MmdRec with the specified values. |
Method Summary | |
---|---|
static void |
checkStatusString(String nm)
Checks that the specified nm is valid; if not throws MmdException. |
int |
compareTo(Object obj)
Implement Comparable interface |
boolean |
equals(Object obj)
Define equality for HashMap |
String |
getCollKey()
Returns the collection key. |
String |
getFileName()
Returns the file name of the record's XML file. |
long |
getFirstAccessionDate()
Returns the date this record was first accessioned. |
String |
getId()
Returns the record id. |
long |
getLastMetaModDate()
Returns the date this record was last changed. |
int |
getMetastyle()
Returns the metadata format: for example, MS_ADN. |
String |
getMetastyleString()
Returns a string representing the metadata style, for example, "adn". |
String |
getPrimaryContent()
Gets the primaryContent attribute of the MmdRec object and returns it after cleaning up the illegal character sequences "0x000d" and "0x0009" |
String |
getPrimaryContentType()
Gets the primaryContentType attribute of the MmdRec object |
long |
getRecCheckDate()
Returns the date this record was last checked by the idmapper. |
int |
getStatus()
Returns the record status: for example, STATUS_ACCESSIONED_DISCOVERABLE. |
String |
getStatusString()
Returns a string representing the record status, for example, "accessioneddiscoverable". |
MmdWarning[] |
getWarnings()
Returns an array of MmdWarning for messages generated during the most recent Idmapper run. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STATUS_UNKNOWN
public static final int STATUS_ACCESSIONED_DISCOVERABLE
public static final int STATUS_ACCESSIONED_NONDISCOVERABLE
public static final int STATUS_DEACCESSIONED
public static final int STATUS_NEW
public static final int STATUS_REJECTED
public static final String[] statusNames
public static final int MS_UNKNOWN
public static final int MS_ADN
public static final int MS_BRIEFMETA
public static final int MS_DC_QUAL
public static final int MS_DC_SIMPLE
public static final int MS_DLESE_ANNO
public static final int MS_DLESE_COLLECT
public static final int MS_DLESE_IMS
public static final int MS_NSDL_DC
public static final int MS_NEWS_OPPS
public static final int MS_OAI_DC
public static final String[] metastyleNames
Constructor Detail |
---|
public MmdRec(String collKey, String id, String fileName, String statusStg, String metastyleStg, long firstAccessionDate, long lastMetaModDate, long recCheckDate, String primaryContent, String primarycontentType, MmdWarning[] warnings) throws MmdException
collKey
- DESCRIPTIONid
- DESCRIPTIONfileName
- DESCRIPTIONstatusStg
- DESCRIPTIONmetastyleStg
- DESCRIPTIONfirstAccessionDate
- DESCRIPTIONlastMetaModDate
- DESCRIPTIONrecCheckDate
- DESCRIPTIONprimaryContent
- DESCRIPTIONprimarycontentType
- DESCRIPTIONwarnings
- DESCRIPTION
MmdException
- DESCRIPTIONMethod Detail |
---|
public String toString()
toString
in class Object
public String getPrimaryContent()
public String getPrimaryContentType()
public String getCollKey()
public String getId()
public String getFileName()
public int getStatus()
public String getStatusString()
public static void checkStatusString(String nm) throws MmdException
nm
- DESCRIPTION
MmdException
- DESCRIPTIONpublic int getMetastyle()
public String getMetastyleString()
public long getFirstAccessionDate()
public long getLastMetaModDate()
public long getRecCheckDate()
public MmdWarning[] getWarnings()
public boolean equals(Object obj)
equals
in class Object
obj
- DESCRIPTION
public int compareTo(Object obj)
compareTo
in interface Comparable
obj
- DESCRIPTION
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |