public class XMLNode extends Object
Constructor and Description |
---|
XMLNode(String name)
Creates a PCTEXT node
|
XMLNode(String name,
XMLAttribute attr)
Creates a ELEMENT node
|
XMLNode(String name,
XMLAttribute attr,
XMLNode nested,
XMLNode next)
Creates a ELEMENT node
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAttribute(String name) |
XMLAttribute |
getAttributes() |
String |
getName() |
XMLNode |
getNested() |
XMLNode |
getNext() |
XMLNode |
getParent() |
boolean |
isElement() |
void |
printToStream(PrintWriter out) |
void |
printToStream(PrintWriter out,
int n) |
void |
setNested(XMLNode nested) |
void |
setNext(XMLNode next) |
void |
setParent(XMLNode parent) |
String |
toString() |
public XMLNode(String name)
public XMLNode(String name, XMLAttribute attr)
public XMLNode(String name, XMLAttribute attr, XMLNode nested, XMLNode next)
public String getName()
public XMLAttribute getAttributes()
public XMLNode getNested()
public XMLNode getNext()
public boolean isElement()
public void setParent(XMLNode parent)
public XMLNode getParent()
public void setNext(XMLNode next)
public void setNested(XMLNode nested)
public void printToStream(PrintWriter out)
public void printToStream(PrintWriter out, int n)
Copyright © 2005–2016 Sun Microsystems. All rights reserved.