protected <T> void addDatum(Map<String, GraphMLMetadata<T>> metadata, T current_elt, String text) throws SAXNotSupportedException { if (metadata.containsKey(this.current_key)) { SettableTransformer<T, String> st = (SettableTransformer<T, String>) (metadata.get(this.current_key).transformer); st.set(current_elt, text); } else { throw new SAXNotSupportedException( "key " + this.current_key + " not valid for element " + current_elt); } }
protected <T>void addDatum(Map<String, GraphMLMetadata<T>> metadata, T current_elt, String text) throws SAXNotSupportedException { if (metadata.containsKey(this.current_key)) { SettableTransformer<T, String> st = (SettableTransformer<T, String>)(metadata.get(this.current_key).transformer); st.set(current_elt, text); } else throw new SAXNotSupportedException("key " + this.current_key + " not valid for element " + current_elt); }
edge_weights.set(e, new Float(st.nextToken()));