public class AsnDocument
extends java.lang.Object
Constructor and Description |
---|
AsnDocument(java.io.File file)
Constructor for the AsnDocument object given the path to an ASN XML file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
authorIsAAAS()
Returns true if
|
boolean |
authorIsColorado()
Returns true if the author of this AsnDocument is Colorado
|
java.lang.String |
getAuthor()
Gets the author attribute of the AsnDocument object
|
java.lang.String |
getAuthor(AsnAuthors authors)
Gets the author attribute of the AsnDocument object
|
java.lang.String |
getAuthorPurl()
Gets the authorPurl attribute of the AsnDocument object
|
java.lang.String |
getCreated()
Gets the created attribute of the AsnDocument object
|
java.lang.String |
getDescription()
Gets the description attribute of the AsnDocument object
|
java.lang.String |
getFileCreated()
Gets the fileCreated attribute of the AsnDocument object
|
java.lang.String |
getIdentifier()
Gets the identifier attribute of the AsnDocument object (the full ASN Purl id)
|
java.util.Set |
getIdentifiers()
Gets the list of asn IDs defined by the AsnDocument object
|
java.lang.String |
getPath()
Gets the path attribute of the AsnDocument object
|
AsnStandard |
getRootStandard()
Gets the rootStandard attribute of the AsnDocument object
|
AsnStandard |
getStandard(java.lang.String id)
Gets the AsnStandard having provicded id
|
java.util.Collection |
getStandards()
Gets all standards contained in this AsnDocument
|
java.util.List |
getStandardsAtLevel(int level)
Gets the standards at the specified level of the standards hierarchy of the
AsnDocument object
|
java.lang.String |
getTitle()
Gets the title attribute of the AsnDocument object
|
java.lang.String |
getTopic()
Gets the topic attribute of the AsnDocument object
|
java.lang.String |
getTopic(AsnTopics topics)
Gets the topic attribute of the AsnDocument object
|
java.lang.String |
getTopicPurl()
Gets the topicPurl attribute of the AsnDocument object
|
java.lang.String |
getUid()
Gets the unique part of the ASN purl id
|
java.lang.String |
getVersion()
Gets the version attribute of the AsnDocument object
|
static void |
main(java.lang.String[] args)
The main program for the AsnDocument class
|
java.lang.String |
toString()
Description of the Method
|
public AsnDocument(java.io.File file) throws java.lang.Exception
path
- Description of the Parameterjava.lang.Exception
- Description of the Exceptionpublic java.lang.String getPath()
public java.lang.String getFileCreated()
public java.lang.String getCreated()
public java.lang.String getIdentifier()
public java.lang.String getUid()
public java.lang.String getTitle()
public java.lang.String getDescription()
public java.lang.String getVersion()
public java.lang.String getAuthorPurl()
public java.lang.String getAuthor()
public java.lang.String getAuthor(AsnAuthors authors)
authors
- Description of the Parameterpublic java.lang.String getTopicPurl()
public java.lang.String getTopic()
public java.lang.String getTopic(AsnTopics topics)
topics
- Description of the Parameterpublic AsnStandard getRootStandard()
public AsnStandard getStandard(java.lang.String id)
id
- Description of the Parameterpublic java.util.Collection getStandards()
public java.util.List getStandardsAtLevel(int level)
level
- Description of the Parameterpublic boolean authorIsColorado()
public boolean authorIsAAAS()
public java.util.Set getIdentifiers()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line argumentsjava.lang.Exception
- Description of the Exception