public interface Node
The node interface.
The middle storage to convert the OGC object in SuperMap iServer to the XML document, to store the object node information with the tree structure.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROOT_NODE_NAME
Root node name The default is "#document".
|
Modifier and Type | Method and Description |
---|---|
void |
appendAttribute(Node attribute)
Add the property of the node.
|
Node |
appendChild(Node node)
Add sub node.
|
Node |
getAttribute(int index)
Get the node property according to the index.
|
int |
getAttributeCount()
Get the number of the node properties.
|
java.lang.String |
getName()
Gets the node name.
|
Node |
getNode(int index)
Get the sub node according to the index of the sub node.
|
int |
getNodeCount()
Get the number of the sub nodes.
|
java.lang.String |
getValue()
Gets the node value.
|
void |
setName(java.lang.String name)
Sets the node name.
|
void |
setValue(java.lang.String value)
Sets the node value.
|
java.lang.String |
toString()
Convert the node to string.
|
void |
writeToStream(java.io.OutputStream outputStream)
Output the node to output stream.
|
static final java.lang.String ROOT_NODE_NAME
Node appendChild(Node node)
node
- the sub node to add.void appendAttribute(Node attribute)
attribute
- the property of the node (Represented with Node, name means its property name, value means the property value).java.lang.String getName()
void setName(java.lang.String name)
name
- the node name.java.lang.String getValue()
void setValue(java.lang.String value)
value
- the node value.Node getNode(int index)
index
- the index of the sub node.Node getAttribute(int index)
index
- the index of the property.int getNodeCount()
int getAttributeCount()
java.lang.String toString()
The expression way of XML document.
toString
in class java.lang.Object
void writeToStream(java.io.OutputStream outputStream) throws java.io.IOException
outputStream
- the output stream.java.io.IOException
- it occurs the exception information if there is I/O error.