protected static void exportAxisDescriptions( XMLStreamWriter writer, List<AxisSubset> axisDescriptions )
throws XMLStreamException {
if ( !axisDescriptions.isEmpty() ) {
for ( AxisSubset ass : axisDescriptions ) {
if ( ass != null ) {
writer.writeStartElement( WCS_100_NS, "axisDescription" );
writer.writeStartElement( WCS_100_NS, "AxisDescription" );
writeElement( writer, WCS_100_NS, "name", ass.getName() );
writeElement( writer, WCS_100_NS, "label", ass.getLabel() );
writer.writeStartElement( WCS_100_NS, "values" );
exportIntervals( writer, ass.getIntervals() );
if ( ass.getSingleValues() != null ) {
for ( SingleValue<?> sv : ass.getSingleValues() ) {
exportSingleValueType( writer, sv, "singleValue" );
}
}
writer.writeEndElement();
writer.writeEndElement();
writer.writeEndElement();
}
}
}
}