| org.archive.uid.Generator
All known Subclasses: org.archive.uid.UUIDGenerator, org.archive.uid.GeneratorFactory,
Generator | public interface Generator (Code) | | A record-id generator.
GeneratorFactory assumes implementations have a no-arg Constructor.
See Also: GeneratorFactory author: stack version: $Revision: 4495 $ $Date: 2006-08-15 00:25:03 +0000 (Tue, 15 Aug 2006) $ |
getQualifiedRecordID | public URI getQualifiedRecordID(Map<String, String> qualifiers) throws URISyntaxException(Code) | | Parameters: qualifiers - Qualifiers to add. A URI qualified with passed qualifiers that canserve as a record-id, or, a new, unique record-id without qualifiers(if qualifiers not easily implemented using passed URI scheme). throws: URISyntaxException - |
getQualifiedRecordID | public URI getQualifiedRecordID(String key, String value) throws URISyntaxException(Code) | | Parameters: key - Name of qualifier Parameters: value - Value of qualifier A URI qualified with passed qualifiers that canserve as a record-id, or, a new, unique record-id without qualifiers(if qualifiers not easily implemented using passed URI scheme). throws: URISyntaxException - |
qualifyRecordID | public URI qualifyRecordID(URI recordId, Map<String, String> qualifiers) throws URISyntaxException(Code) | | Append (or if already present, update) qualifiers to passed
recordId . Use with caution. Guard against turning up a
result that already exists. Use when writing a group of records inside
a single transaction.
How qualifiers are appended/updated varies with URI scheme. Its allowed
that an invocation of this method does nought but call
Generator.getRecordID() , returning a new URI unrelated to the passed
recordId and passed qualifier.
Parameters: recordId - URI to append qualifier to. Parameters: qualifiers - Map of qualifier values keyed by qualifier name. New URI based off passed uri and passed qualifier. throws: URISyntaxException - if probably constructing URI OR if theresultant UUID does not differ from the one passed. |
|
|