Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.common.osm
Class Osm  view Osm download Osm.java

java.lang.Object
  extended bycom.aendvari.common.osm.OsmNode
      extended bycom.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).


Field Summary
 
Fields inherited from class com.aendvari.common.osm.OsmNode
attributes, children, name, parent, position, value
 
Constructor Summary
Osm()
          Constructs an Osm instance.
Osm(Osm source)
          Constructs an Osm instance as a copy of the supplied Osm.
 
Method Summary
 Osm cloneOsm()
          Returns a duplicate of this Osm.
 void cloneOsm(Osm source)
          Duplicates the supplied Osm.
 OsmNode createNode(OsmNode node)
          Creates an OsmNode object as a copy of the supplied node.
 OsmNode createNode(java.lang.String name)
          Creates an OsmNode object.
 OsmNode createNode(java.lang.String name, java.lang.Object value)
          Creates an OsmNode object with the supplied value.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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.