Package org.dlese.dpc.standards.asn
Class AsnDocument
java.lang.Object
org.dlese.dpc.standards.asn.AsnDocument
- Direct Known Subclasses:
AsnMappingDocument
Encapsulates an ASN Standards Document by reading the source XML file and
creating a hierarchy of AsnStandard instances. Also provides lookup for
AsnStandards by their id.
- Author:
- ostwald
-
Constructor Summary
ConstructorsConstructorDescriptionAsnDocument(File file) Constructor for the AsnDocument object given the path to an ASN XML file. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true ifbooleanReturns true if the author of this AsnDocument is ColoradoGets the author attribute of the AsnDocument objectgetAuthor(AsnAuthors authors) Gets the author attribute of the AsnDocument objectGets the authorPurl attribute of the AsnDocument objectGets the created attribute of the AsnDocument objectGets the description attribute of the AsnDocument objectGets the fileCreated attribute of the AsnDocument objectGets the identifier attribute of the AsnDocument object (the full ASN Purl id)Gets the list of asn IDs defined by the AsnDocument objectgetPath()Gets the path attribute of the AsnDocument objectGets the rootStandard attribute of the AsnDocument objectgetStandard(String id) Gets the AsnStandard having provicded idGets all standards contained in this AsnDocumentgetStandardsAtLevel(int level) Gets the standards at the specified level of the standards hierarchy of the AsnDocument objectgetTitle()Gets the title attribute of the AsnDocument objectgetTopic()Gets the topic attribute of the AsnDocument objectGets the topic attribute of the AsnDocument objectGets the topicPurl attribute of the AsnDocument objectgetUid()Gets the unique part of the ASN purl idGets the version attribute of the AsnDocument objectstatic voidThe main program for the AsnDocument classtoString()Description of the Method
-
Constructor Details
-
AsnDocument
Constructor for the AsnDocument object given the path to an ASN XML file.- Parameters:
path- Description of the Parameter- Throws:
Exception- Description of the Exception
-
-
Method Details
-
getPath
Gets the path attribute of the AsnDocument object- Returns:
- The path value
-
getFileCreated
Gets the fileCreated attribute of the AsnDocument object- Returns:
- The fileCreated value
-
getCreated
Gets the created attribute of the AsnDocument object- Returns:
- The created value
-
getIdentifier
Gets the identifier attribute of the AsnDocument object (the full ASN Purl id)- Returns:
- The identifier value (e.g., "http://purl.org/ASN/resources/S1015D9B")
-
getUid
Gets the unique part of the ASN purl id- Returns:
- The uid value (e.g., "S1015D9B")
-
getTitle
Gets the title attribute of the AsnDocument object- Returns:
- The title value
-
getDescription
Gets the description attribute of the AsnDocument object- Returns:
- The description value
-
getVersion
Gets the version attribute of the AsnDocument object- Returns:
- The version value
-
getAuthorPurl
Gets the authorPurl attribute of the AsnDocument object- Returns:
- The authorPurl value
-
getAuthor
Gets the author attribute of the AsnDocument object- Returns:
- The author value
-
getAuthor
Gets the author attribute of the AsnDocument object- Parameters:
authors- Description of the Parameter- Returns:
- The author value
-
getTopicPurl
Gets the topicPurl attribute of the AsnDocument object- Returns:
- The topicPurl value
-
getTopic
Gets the topic attribute of the AsnDocument object- Returns:
- The topic value
-
getTopic
Gets the topic attribute of the AsnDocument object- Parameters:
topics- Description of the Parameter- Returns:
- The topic value
-
getRootStandard
Gets the rootStandard attribute of the AsnDocument object- Returns:
- The rootStandard value
-
getStandard
Gets the AsnStandard having provicded id- Parameters:
id- Description of the Parameter- Returns:
- The standard value
-
getStandards
Gets all standards contained in this AsnDocument- Returns:
- The standards value
-
getStandardsAtLevel
Gets the standards at the specified level of the standards hierarchy of the AsnDocument object- Parameters:
level- Description of the Parameter- Returns:
- The standardsAtLevel value
-
authorIsColorado
public boolean authorIsColorado()Returns true if the author of this AsnDocument is Colorado- Returns:
- The coloradoBenchmark value
-
authorIsAAAS
public boolean authorIsAAAS()Returns true if- Returns:
- The aAASBenchmark value
-
getIdentifiers
Gets the list of asn IDs defined by the AsnDocument object- Returns:
- The identifiers value
-
toString
Description of the Method -
main
The main program for the AsnDocument class- Parameters:
args- The command line arguments- Throws:
Exception- Description of the Exception
-