public class AsnDocKey
extends java.lang.Object
Used to facilitate matching among keys for similar key components (such as "topic") using a wildcard, and to provide a human-readible, unique key for managing documents. The UID segment of the key facilitates mapping to actual ASN purl when necessary.
Constructor and Description |
---|
AsnDocKey(AsnDocument doc)
Constructor for the AsnDocKey object given an AsnDocument
|
AsnDocKey(java.lang.String author,
java.lang.String topic,
java.lang.String created)
Constructor for the AsnDocKey object given author, topic and created
segments.
|
AsnDocKey(java.lang.String author,
java.lang.String topic,
java.lang.String created,
java.lang.String uid)
Constructor for the AsnDocKey object with provided field data.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAsnId() |
static AsnDocKey |
makeAsnDocKey(java.lang.String docKeyAsString)
Returns a AsnDocKey instance created from provided docKeyAsString value (e.g., "NSES.Science.1995.D10001D0")
|
java.lang.String |
toString()
return a string representation of this AsnDocKey object
|
public AsnDocKey(AsnDocument doc)
doc
- an asn Standards Docuementpublic AsnDocKey(java.lang.String author, java.lang.String topic, java.lang.String created)
author
- the authortopic
- the topiccreated
- the createdpublic AsnDocKey(java.lang.String author, java.lang.String topic, java.lang.String created, java.lang.String uid)
author
- the authortopic
- the topiccreated
- the createduid
- unique part of asn id (e.g., "D10001D0")public static AsnDocKey makeAsnDocKey(java.lang.String docKeyAsString)
public java.lang.String getAsnId()
public java.lang.String toString()
toString
in class java.lang.Object