|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.shell.support.util.XmlElementBuilder
public class XmlElementBuilder
Very simple convenience Builder for XML Element
s
Constructor Summary | |
---|---|
XmlElementBuilder(String name,
Document document)
Create a new Element instance. |
Method Summary | |
---|---|
XmlElementBuilder |
addAttribute(String qName,
String value)
Add an attribute to the current element. |
XmlElementBuilder |
addChild(Node node)
Add a child node to the current element. |
Element |
build()
Get the element instance. |
XmlElementBuilder |
setText(String text)
Add text contents to the current element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlElementBuilder(String name, Document document)
name
- The name of the element (required, not empty)document
- The parent document (required)Method Detail |
---|
public XmlElementBuilder addAttribute(String qName, String value)
qName
- The attribute name (required, not empty)value
- The value of the attribute (required)
public XmlElementBuilder addChild(Node node)
node
- The new node (required)
public XmlElementBuilder setText(String text)
text
- The text content (required, not empty)
public Element build()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |