Package org.dlese.dpc.standards.commcore
Class StdDocument
java.lang.Object
org.dlese.dpc.standards.commcore.StdDocument
Encapsulates an ASN Standards Document by reading the source XML file and
creating a hierarchy of Standard instances. Also provides lookup for
Standards by their id.
- Author:
- ostwald
-
Constructor Summary
ConstructorsConstructorDescriptionStdDocument(String path) Constructor for the StdDocument object given the path to an XML file. -
Method Summary
Modifier and TypeMethodDescriptionGets the author attribute of the StdDocument objectGets the description attribute of the StdDocument objectGets the fileCreated attribute of the StdDocument objectGets the identifier attribute of the StdDocument objectGets the lisf of asn IDs defined by the StdDocument objectgetPath()Gets the path attribute of the StdDocument objectGets the rootStandard attribute of the StdDocument objectgetStandard(String id) Gets the Standard having provicded idGets all standards contained in this StdDocumentgetStandardsAtLevel(int level) Gets the standards at the specified level of the standards hierarchy of the StdDocument objectgetTitle()Gets the title attribute of the StdDocument objectgetTopic()Gets the topic attribute of the StdDocument objectgetUid()Gets the uid attribute of the StdDocument objectGets the version attribute of the StdDocument objectstatic voidThe main program for the StdDocument classtoString()Description of the Method
-
Constructor Details
-
StdDocument
Constructor for the StdDocument object given the path to an XML file.- Parameters:
path- Description of the Parameter- Throws:
Exception- Description of the Exception
-
-
Method Details
-
getPath
Gets the path attribute of the StdDocument object- Returns:
- The path value
-
getFileCreated
Gets the fileCreated attribute of the StdDocument object- Returns:
- The fileCreated value
-
getIdentifier
Gets the identifier attribute of the StdDocument object- Returns:
- The identifier value
-
getUid
Gets the uid attribute of the StdDocument object- Returns:
- The uid value
-
getTitle
Gets the title attribute of the StdDocument object- Returns:
- The title value
-
getDescription
Gets the description attribute of the StdDocument object- Returns:
- The description value
-
getVersion
Gets the version attribute of the StdDocument object- Returns:
- The version value
-
getAuthor
Gets the author attribute of the StdDocument object- Returns:
- The author value
-
getTopic
Gets the topic attribute of the StdDocument object- Returns:
- The topic value
-
getRootStandard
Gets the rootStandard attribute of the StdDocument object- Returns:
- The rootStandard value
-
getStandard
Gets the Standard having provicded id- Parameters:
id- Description of the Parameter- Returns:
- The standard value
-
getStandards
Gets all standards contained in this StdDocument- Returns:
- The standards value
-
getStandardsAtLevel
Gets the standards at the specified level of the standards hierarchy of the StdDocument object- Parameters:
level- Description of the Parameter- Returns:
- The standardsAtLevel value
-
getIdentifiers
Gets the lisf of asn IDs defined by the StdDocument object- Returns:
- The identifiers value
-
toString
Description of the Method -
main
The main program for the StdDocument class- Parameters:
args- The command line arguments- Throws:
Exception- Description of the Exception
-