Esri Geoportal Server
1.2.9

com.esri.gpt.catalog.gxe
Class XmlNode

java.lang.Object
  extended by com.esri.gpt.catalog.gxe.XmlNode
Direct Known Subclasses:
XmlAttribute, XmlElement

public class XmlNode
extends Object

Represents an XML node (element or attribute).


Constructor Summary
XmlNode()
          Default constructor
XmlNode(XmlNode objectToDuplicate, XmlElement parent)
          Construct by duplicating an existing object.
 
Method Summary
 XmlNode duplicate(XmlElement parent)
          Produces a deep clone of the object.
 XmlNodeInfo ensureNodeInfo()
          Ensures that the node information is not null and returns the value.
 XmlNodeInfo getNodeInfo()
          Gets the information associated with this XML node.
 XmlElement getParent()
          Gets the parent.
 void setNodeInfo(XmlNodeInfo nodeInfo)
          Sets the information associated with this XML node.
 void setParent(XmlElement parent)
          Sets the parent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlNode

public XmlNode()
Default constructor


XmlNode

public XmlNode(XmlNode objectToDuplicate,
               XmlElement parent)
Construct by duplicating an existing object.

Parameters:
objectToDuplicate - the object to duplicate
parent - the parent
Method Detail

getNodeInfo

public XmlNodeInfo getNodeInfo()
Gets the information associated with this XML node.

Returns:
the node information

setNodeInfo

public void setNodeInfo(XmlNodeInfo nodeInfo)
Sets the information associated with this XML node.

Parameters:
nodeInfo - the node information

getParent

public XmlElement getParent()
Gets the parent.

Returns:
the parent

setParent

public void setParent(XmlElement parent)
Sets the parent.

Parameters:
parent - the parent

duplicate

public XmlNode duplicate(XmlElement parent)
Produces a deep clone of the object.
The duplication constructor is invoked.
return new XmlNode(this,parent);

Parameters:
parent - the parent
Returns:
the duplicated object

ensureNodeInfo

public XmlNodeInfo ensureNodeInfo()
Ensures that the node information is not null and returns the value.

Returns:
the node information

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.