|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.aidl.AidlImporter
public class AidlImporter
Reads in an aidl xml file See the source AidlImporter.java
| Field Summary | |
|---|---|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
private java.util.Vector<AidlObject> |
fixesAndLines
|
private java.util.Vector<AidlInstruction> |
flapsThread
|
private java.util.Vector<AidlInstruction> |
landingGearThread
|
private int |
lastParamId
|
private int |
lastTriggerId
|
private java.util.Vector<AidlInstruction> |
lateralThread
|
private java.util.Vector<AidlInstruction> |
longitudinalThreads
|
private java.util.Map<java.lang.Integer,AidlObject> |
parameters
|
private java.util.Vector<AidlInstruction> |
speedBrakeThread
|
private java.util.Map<java.lang.Integer,AidlTrigger> |
triggers
|
| Constructor Summary | |
|---|---|
AidlImporter(java.io.File file)
Constructor |
|
| Method Summary | |
|---|---|
private void |
checkValidity(java.io.File File)
Validates file against schema and xslt |
private Element |
getElementNamed(Element element,
java.lang.String name,
Namespace namespace)
Get element with the given name |
java.util.Vector<AidlObject> |
getFixesAndLines()
Returns the fixes, lines, glide slopes, speed laws, and arcs found |
java.util.Vector<AidlInstruction> |
getFlapInstructions()
Returns instructions found for the flap thread |
java.util.Vector<AidlInstruction> |
getLandingGearInstructions()
Returns instructions found for the landing gear thread |
int |
getLastParamId()
Returns the last Param ID used |
int |
getLastTriggerId()
Returns the last Trigger ID used |
java.util.Vector<AidlInstruction> |
getLateralInstructions()
Returns instructions found for the lateral thread |
private Latitude |
getLatitude(java.lang.String str)
Returns the latitude created from the given string NOTE: Assumes that latitude is in the format HHHMMSS[.S[SSSSSSSSSS]] |
private Longitude |
getLongitude(java.lang.String str)
Returns the longitude created from the given string NOTE: Assumes that longitude is in the format HHHMMSS[.S[SSSSSSSSSS]] |
java.util.Vector<AidlInstruction> |
getLongitudinalInstructions()
Returns instructions found for the longitudinal threads |
java.util.Map<java.lang.Integer,AidlObject> |
getParameters()
Returns a map of all the parameters found stored by index |
java.util.Vector<AidlInstruction> |
getSpeedBrakeInstructions()
Returns instructions found for the speed brakes thread |
java.util.Map<java.lang.Integer,AidlTrigger> |
getTriggers()
Returns a map of all the triggers found stored by index |
private void |
importAidl(java.net.URL url)
Import aidl xml |
private AidlObject |
importAidlObject(Element paramElement,
int id,
java.lang.String name)
Import an AidlObject |
private AidlInstruction |
importInstruction(Element instructionElement)
Import an instruction from the given element |
private void |
importParameters(Element mainParameters)
Import lines, laws, arcs, glide slopes, and points |
private void |
importThreads(Element mainThread)
Import threads |
static void |
main(java.lang.String[] args)
Main method for testing only |
| 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.Vector<AidlObject> fixesAndLines
private java.util.Map<java.lang.Integer,AidlObject> parameters
private java.util.Map<java.lang.Integer,AidlTrigger> triggers
private java.util.Vector<AidlInstruction> speedBrakeThread
private java.util.Vector<AidlInstruction> landingGearThread
private java.util.Vector<AidlInstruction> lateralThread
private java.util.Vector<AidlInstruction> longitudinalThreads
private java.util.Vector<AidlInstruction> flapsThread
private int lastTriggerId
private int lastParamId
| Constructor Detail |
|---|
public AidlImporter(java.io.File file)
throws java.io.IOException,
XmlUrlException
file - - the File for the AIDL XML file to import
java.io.IOException - - is thrown if an I/O error occurs
XmlUrlException - - is thrown if unable to read file or
its xsd| Method Detail |
|---|
private void importAidl(java.net.URL url)
throws java.io.IOException
url - - the url of the file to import
java.io.IOException - - is thrown if an I/O error occurs
private Element getElementNamed(Element element,
java.lang.String name,
Namespace namespace)
element - - the element to look undername - - the name of the element to look fornamespace - - the namespace of the element to look for
private void importThreads(Element mainThread)
mainThread - - the main thread element
java.io.IOException - - is thrown if an I/O error occursprivate AidlInstruction importInstruction(Element instructionElement)
instructionElement - - the instruction element to import
private void importParameters(Element mainParameters)
throws java.io.IOException
mainParameters - - the main parameters element
java.io.IOException - - is thrown if an I/O error occurs
private AidlObject importAidlObject(Element paramElement,
int id,
java.lang.String name)
paramElement - - the parameter element that contains the objectid - - the id of the parametername - - the name of the paramter
private Latitude getLatitude(java.lang.String str)
str - - the string to make into a latitudeprivate Longitude getLongitude(java.lang.String str)
str - - the string to make into a longitudeprivate void checkValidity(java.io.File File)
File - - the File of the file to checkpublic java.util.Map<java.lang.Integer,AidlObject> getParameters()
public java.util.Map<java.lang.Integer,AidlTrigger> getTriggers()
public java.util.Vector<AidlObject> getFixesAndLines()
public java.util.Vector<AidlInstruction> getLongitudinalInstructions()
public java.util.Vector<AidlInstruction> getLateralInstructions()
public java.util.Vector<AidlInstruction> getSpeedBrakeInstructions()
public java.util.Vector<AidlInstruction> getLandingGearInstructions()
public java.util.Vector<AidlInstruction> getFlapInstructions()
public int getLastTriggerId()
public int getLastParamId()
public static void main(java.lang.String[] args)
args - - the command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||