public class XMLNode extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(XMLAttribute aAttribute) |
void |
addChildNode(XMLNode aChild)
Allow add child node for current.
|
List<XMLAttribute> |
getAttributes() |
String |
getContent() |
String |
getName() |
List<XMLNode> |
getNodes() |
void |
setAttributes(List<XMLAttribute> aAttributes) |
void |
setChildren(List<XMLNode> aChildren)
Set child nodes for current.
|
void |
setContent(boolean aContent) |
void |
setContent(double aContent) |
void |
setContent(float aContent) |
void |
setContent(int aContent) |
void |
setContent(List<Object> aL) |
void |
setContent(long aContent) |
void |
setContent(String aContent) |
void |
setName(String aName) |
void |
setNodes(List<XMLNode> aNodes) |
String |
toString() |
void |
write(OutputStreamWriter aWriter,
int aTabs)
Recursive - Write method.
|
void |
write(PrintStream aWriter,
int aTabs)
Recursive - Write method.
|
void |
write(PrintWriter aWriter,
int aTabs)
Recursive - Write method.
|
void |
write(Writer aWriter,
int aTabs)
Recursive - Write method.
|
public XMLNode(String aName)
aName - node namepublic void setChildren(List<XMLNode> aChildren)
aChildren - xmlNodes listpublic void addChildNode(XMLNode aChild)
aChild - xmlNodepublic List<XMLAttribute> getAttributes()
public void setAttributes(List<XMLAttribute> aAttributes)
public void addAttribute(XMLAttribute aAttribute)
public String getName()
public void setName(String aName)
public String getContent()
public void setContent(String aContent)
public void setContent(boolean aContent)
public void setContent(float aContent)
public void setContent(double aContent)
public void setContent(long aContent)
public void setContent(int aContent)
public void write(PrintStream aWriter, int aTabs) throws IOException
aWriter - PrintStream writer.aTabs - position to startIOException - on errorspublic void write(PrintWriter aWriter, int aTabs) throws IOException
aWriter - PrintWriteraTabs - position to startIOException - on errorspublic void write(OutputStreamWriter aWriter, int aTabs) throws IOException
aWriter - OutputStreamWriteraTabs - position to startIOException - on errorspublic void write(Writer aWriter, int aTabs) throws IOException
aWriter - java.io.WriteraTabs - tabsIOException - on errorsCopyright © 2010-2014 anotheria.net. All Rights Reserved.