/** * Export a unit to xml in the crs-definitions schema layout. * * @param units * to be exported. * @param xmlWriter * to export to. * @throws XMLStreamException */ protected void export( IUnit units, XMLStreamWriter xmlWriter ) throws XMLStreamException { if ( units != null ) { xmlWriter.writeStartElement( CRSNS, "units" ); xmlWriter.writeCharacters( units.getName().toLowerCase() ); xmlWriter.writeEndElement(); } }
/** * Export a unit to xml in the crs-definitions schema layout. * * @param units * to be exported. * @param xmlWriter * to export to. * @throws XMLStreamException */ @Override protected void export( IUnit units, XMLStreamWriter xmlWriter ) throws XMLStreamException { if ( units != null ) { xmlWriter.writeStartElement( CRSNS, "Units" ); xmlWriter.writeCharacters( units.getName().toLowerCase() ); xmlWriter.writeEndElement(); } }