/** * Converts the content of <code>stations</code> to XML. * @param stations the items to write * @param element the element to write into */ public void writeXML( Map<String, PerspectiveStation> stations, XElement element ){ Map<String, DockLayoutComposition> map = new HashMap<String, DockLayoutComposition>(); for( Map.Entry<String, PerspectiveStation> entry : stations.entrySet() ){ DockLayoutComposition composition = convert( entry.getValue() ); if( composition != null ){ map.put( entry.getKey(), composition ); } } situation.writeCompositionsXML( map, element ); }
/** * Converts the content of <code>stations</code> to XML. * @param stations the items to write * @param element the element to write into */ public void writeXML( Map<String, PerspectiveStation> stations, XElement element ){ Map<String, DockLayoutComposition> map = new HashMap<String, DockLayoutComposition>(); for( Map.Entry<String, PerspectiveStation> entry : stations.entrySet() ){ DockLayoutComposition composition = convert( entry.getValue() ); if( composition != null ){ map.put( entry.getKey(), composition ); } } situation.writeCompositionsXML( map, element ); }
/** * Writes all locations and relationships of the {@link DockStation}s * <code>stations</code> and their children as xml. * @param stations The stations to store, only the roots are needed. * @param element the element to write into, attributes of <code>element</code> will * not be changed */ public void writeXML( Map<String, DockStation> stations, XElement element ) { Map<String, DockLayoutComposition> map = new HashMap<String, DockLayoutComposition>(); for( Map.Entry<String, DockStation> entry : stations.entrySet() ){ DockLayoutComposition composition = convert( entry.getValue() ); if( composition != null ){ map.put( entry.getKey(), composition ); } } writeCompositionsXML( map, element ); }
conversion.getSituation().writeCompositionsXML( stations, root.addElement( "stations" ) );
conversion.getSituation().writeCompositionsXML( stations, root.addElement( "stations" ) );