|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.scenario.importer.XmlDomImporter
faa.tg.scenario.importer.AirportXmlFileMerger
public class AirportXmlFileMerger
This program takes in three input files - an airport file, an approach file, and a runway file and one output file and merges them. Each approach is put into its corresponding runway and then each runway is put into its corresponding airport. The new tree is then output to the given output file
| Field Summary | |
|---|---|
private org.w3c.dom.Document |
airportDoc
|
private java.util.HashMap<java.lang.String,org.w3c.dom.Element> |
airportHash
|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
private org.w3c.dom.Document |
runwayDoc
|
private java.util.HashMap<java.lang.String,org.w3c.dom.Element> |
runwayHash
|
| Fields inherited from class faa.tg.scenario.importer.XmlDomImporter |
|---|
jdoc |
| Constructor Summary | |
|---|---|
AirportXmlFileMerger(java.io.File airportFile,
java.io.File approachFile,
java.io.File runwayFile,
java.io.File outputFile)
Constructor |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
private void |
outputNewTreeToFile(java.io.File outputFile)
Outputs the entire tree to the given file |
private void |
populateAirportHash()
Populates a hashmap of Airports keyed by AirportName |
private void |
populateRunwayHash()
Populates a hashmap of Runways keyed by AptName+"/"+RwyName |
private void |
putApproachesIntoRunway(org.w3c.dom.Document approachDoc)
Gets the Airport and Runway Name of each approach and then finds the corresponding runway from the runway hash. |
private void |
putRunwaysIntoAirport()
Gets the Airport Name of each runway and then finds the corresponding airport from the airport hash. |
| Methods inherited from class faa.tg.scenario.importer.XmlDomImporter |
|---|
error, fatalError, getBoolean, getElementNamed, getText, getXmlDocument, getXmlDocument, getXmlDocument, getXmlDocument, getXmlDocumentUsingSchema, makeSimpleElement, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CVS_VERSION_ID
private java.util.HashMap<java.lang.String,org.w3c.dom.Element> airportHash
private java.util.HashMap<java.lang.String,org.w3c.dom.Element> runwayHash
private org.w3c.dom.Document airportDoc
private org.w3c.dom.Document runwayDoc
| Constructor Detail |
|---|
public AirportXmlFileMerger(java.io.File airportFile,
java.io.File approachFile,
java.io.File runwayFile,
java.io.File outputFile)
airportFile - approachFile - runwayFile - outputFile - | Method Detail |
|---|
private void populateAirportHash()
private void populateRunwayHash()
private void putApproachesIntoRunway(org.w3c.dom.Document approachDoc)
approachDoc - private void putRunwaysIntoAirport()
private void outputNewTreeToFile(java.io.File outputFile)
airportNode - outputFile - public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||