java.lang.Object
com.aendvari.common.osm.OsmNode
com.aendvari.common.osm.Osm
- public class Osm
- extends OsmNode
Represents the entire Object Space Model. It is used as the
root of the tree. The class also contains factory methods to create internal
objects (such as the OsmNode class).
|
Constructor Summary |
Osm()
Constructs an Osm instance. |
Osm(Osm source)
Constructs an Osm instance as a copy of the supplied Osm. |
| Methods inherited from class com.aendvari.common.osm.OsmNode |
appendChild, cloneNode, getAllChildNodes, getAllChildNodes, getAttribute, getAttribute, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodePath, getNodeValue, getNodeValue, getOwnerOsm, getParentNode, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, removeChild, removeChildNodes, replaceChild, setAttribute, setNodeValue, toString |
Osm
public Osm()
- Constructs an
Osm instance.
Osm
public Osm(Osm source)
- Constructs an
Osm instance as a copy of the supplied Osm.
Any objects stored as values or attributes are not copied, only their references
are maintained.
cloneOsm
public Osm cloneOsm()
- Returns a duplicate of this
Osm.
Any objects stored as values or attributes are not copied, only their references
are maintained.
cloneOsm
public void cloneOsm(Osm source)
- Duplicates the supplied Osm. Existing nodes in this OSM will be
removed.
Any objects stored as values or attributes are not copied, only their references
are maintained.
createNode
public OsmNode createNode(java.lang.String name)
- Creates an OsmNode object.
createNode
public OsmNode createNode(java.lang.String name,
java.lang.Object value)
- Creates an OsmNode object with the supplied value.
createNode
public OsmNode createNode(OsmNode node)
- Creates an OsmNode object as a copy of the supplied node.
Only the value name, value, and attributes are copied.