/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package osm.jp.api;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
/**
* OSM.xml の「Area(way)」ノード
* 例)
* <pre>{@code
* <nd ref="1738352013"/>
* <nd ref="1738351984"/>
* <nd ref="1738352019"/>
* <nd ref="1738352024"/>
* }</pre>
*
* @author yuu
*/
public class OsmnodeNd {
Node ndnode = null;
String ref = null;
public OsmnodeNd(Node node) {
this.ndnode = node;
NamedNodeMap nodeMap2 = this.ndnode.getAttributes();
for (int j=0; j < nodeMap2.getLength(); j++) {
if (nodeMap2.item(j).getNodeName().equals("ref")) {
ref = nodeMap2.item(j).getNodeValue();
}
}
}
public String getRef() {
return ref;
}
}