|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ucsb.nceas.morpho.datapackage.AccessionNumber
Class that implements Accession Number utility functions for morpho
Constructor Summary | |
AccessionNumber(Morpho morpho)
|
Method Summary | |
java.lang.String |
getNextId()
returns the next local id from the config file returns null if configXML was unable to increment the id number |
java.util.Vector |
getParts(java.lang.String id)
Returns a vector with all components of the accession number. |
java.lang.String |
incRev(java.lang.String id)
returns an id with an incremented id. |
java.lang.String |
incRev(java.lang.String id,
boolean addOne)
parses id and adds a revision number to it. |
java.lang.String |
incRevInTriples(java.io.File xmlfile,
java.lang.String oldid,
java.lang.String newid)
|
java.lang.String |
incRevInTriples(java.io.File xmlfile,
java.util.Vector oldid,
java.util.Vector newid)
searches an xml file for triples. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AccessionNumber(Morpho morpho)
Method Detail |
public java.lang.String getNextId()
public java.lang.String incRev(java.lang.String id)
public java.lang.String incRev(java.lang.String id, boolean addOne)
id
- the id to parseaddOne
- true adds one to a existing revision number false does not.public java.lang.String incRevInTriples(java.io.File xmlfile, java.lang.String oldid, java.lang.String newid)
public java.lang.String incRevInTriples(java.io.File xmlfile, java.util.Vector oldid, java.util.Vector newid)
xmlfile
- the xml file that you want to searcholdid
- the id that you want incremented.newid
- the id that you want oldid to be replaced with
public java.util.Vector getParts(java.lang.String id)
id
- the id to return the parts of
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |