/** * Reads the contents of <code>root</code> and returns them in a map. * @param root the data to read * @return the content of <code>root</code> */ public Map<String, PerspectiveStation> readXML( XElement root ){ Map<String, DockLayoutComposition> map = situation.readCompositionsXML( root ); Map<String, PerspectiveStation> result = new HashMap<String, PerspectiveStation>(); for( Map.Entry<String, DockLayoutComposition> entry : map.entrySet() ){ PerspectiveElement element = convert( entry.getValue() ); PerspectiveStation station = element == null ? null : element.asStation(); if( station != null ){ result.put( entry.getKey(), station ); } } return result; }
/** * Reads the contents of <code>root</code> and returns them in a map. * @param root the data to read * @return the content of <code>root</code> */ public Map<String, PerspectiveStation> readXML( XElement root ){ Map<String, DockLayoutComposition> map = situation.readCompositionsXML( root ); Map<String, PerspectiveStation> result = new HashMap<String, PerspectiveStation>(); for( Map.Entry<String, DockLayoutComposition> entry : map.entrySet() ){ PerspectiveElement element = convert( entry.getValue() ); PerspectiveStation station = element == null ? null : element.asStation(); if( station != null ){ result.put( entry.getKey(), station ); } } return result; }
Map<String, DockLayoutComposition> stations = conversion.getSituation().readCompositionsXML( xstations ); factory.setStations( stations );
Map<String, DockLayoutComposition> stations = conversion.getSituation().readCompositionsXML( xstations ); factory.setStations( stations );