public class XTCEDatabaseConverter extends XTCEDatabaseParser
| Constructor and Description |
|---|
XTCEDatabaseConverter(File file,
boolean useXInclude)
Constructor
Create and initialize an instance of the XTCE Database Converter for
schema 1.1 to 1.2.
|
| Modifier and Type | Method and Description |
|---|---|
long |
convertAlarmFormToRangeForm()
Convert the alarmForm attribute name.
|
long |
convertBlockMetaCommandStepArguments()
Convert the ArgumentList to ArgumentAssignmentList in the
BlockMetaCommand elements.
|
long |
convertEmptyUnitSets()
Convert the empty UnitSet elements by removing them to reduce size.
|
long |
convertEnumerationAlarmValue()
Convert the EnumerationAlarm attribute name.
|
long |
convertErrorDetectCRC()
Convert the ErrorDetectCorrect CRC Polynomial element.
|
long |
convertMessageContainRef()
Convert the MessageSet ContainerRef element to ContainerRef.
|
long |
convertTimeOfDayEpoch()
Convert the timeOfDay attribute value to the Epoch text content.
|
long |
convertTwosComplement()
Convert the twosComplement value change.
|
long |
convertValidRangeCalibratedAttribute()
Convert the validRangeAppliesToCalibrated attribute by relocating it.
|
List<String> |
getMessages()
Retrieve the messages that were generated, if any, during the file
conversion/upgrade activity.
|
boolean |
save()
Conclude the conversion/upgrade by saving the XML content to an
automatically generated filename.
|
boolean |
save(File xmlFile)
Conclude the conversion/upgrade by saving the XML content to a provided
file.
|
long |
upgrade()
Perform all of the conversion/upgrade steps except saving the result.
|
evaluateXPathQuery, getChanged, getDocument, getDocumentElement, getDocumentWarnings, getErrorCount, getFilename, getNamespaceFromDocument, getSchemaFromDocument, isReadOnly, loadDatabase, loadDatabase, loadDatabase, newDatabase, normalizeDocument, removeDefaultAttribute, renameElement, saveDatabase, setChanged, setFilename, updateHistorySet, validateDocumentpublic XTCEDatabaseConverter(File file, boolean useXInclude) throws XTCEDatabaseException
file - File containing the XTCE database XML file to load and use
for the conversion operation.useXInclude - boolean indicating if XInclude processing should be
enabled during load.XTCEDatabaseException - thrown in the event that the file cannot
be suitably loaded for conversion.public List<String> getMessages()
public long upgrade()
public long convertTwosComplement()
public long convertEnumerationAlarmValue()
public long convertMessageContainRef()
public long convertEmptyUnitSets()
public long convertValidRangeCalibratedAttribute()
public long convertErrorDetectCRC()
public long convertAlarmFormToRangeForm()
public long convertBlockMetaCommandStepArguments()
public long convertTimeOfDayEpoch()
public boolean save()
public boolean save(File xmlFile)
xmlFile - File containing the path and name to the target filename
to save.Copyright © 2015–2019. All rights reserved.