|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucsb.nceas.metacat.DocumentIdentifier
public class DocumentIdentifier
A class to parse document ids The docid is of the form siteCode.uniqueId.rev
| Constructor Summary | |
|---|---|
DocumentIdentifier(java.lang.String docid)
Constructor to build a docid object and parse an incoming string. |
|
| Method Summary | |
|---|---|
java.lang.String |
getIdentifier()
returns |
java.lang.String |
getRev()
returns the revision number encoded in this docid |
java.lang.String |
getSeparator()
returns the separator used in the accession number |
java.lang.String |
getSiteCode()
returns the siteCode encoded in this docid |
java.lang.String |
getUniqueId()
returns the uniqueId encoded in this docid |
static void |
main(java.lang.String[] args)
Test driver. |
java.lang.String |
toString()
returns the whole docid as a string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentIdentifier(java.lang.String docid)
throws AccessionNumberException
AccessionNumberException| Method Detail |
|---|
public java.lang.String getRev()
public java.lang.String getUniqueId()
public java.lang.String getSiteCode()
public java.lang.String getSeparator()
public java.lang.String getIdentifier()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||