public static class XMLUtils.Stanza extends Object
Constructor and Description |
---|
XMLUtils.Stanza() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(String name,
XMLUtils.Stanza child)
Add an entry to a stanza.
|
List<XMLUtils.Stanza> |
getChildren(String name)
Pull an entry from a stanza.
|
String |
getValue() |
String |
getValue(String name)
Pull a string entry from a stanza.
|
String |
getValueOrNull(String name)
Pull a string entry from a stanza, or null.
|
boolean |
hasChildren(String name)
Discover if a stanza has a given entry.
|
void |
setValue(String value) |
String |
toString()
Convert a stanza to a human-readable string.
|
public void setValue(String value)
public String getValue()
public boolean hasChildren(String name)
name
- entry to look forpublic List<XMLUtils.Stanza> getChildren(String name) throws XMLUtils.InvalidXmlException
name
- entry to look forXMLUtils.InvalidXmlException
public String getValue(String name) throws XMLUtils.InvalidXmlException
name
- entry to look forXMLUtils.InvalidXmlException
public String getValueOrNull(String name) throws XMLUtils.InvalidXmlException
name
- entry to look forXMLUtils.InvalidXmlException
public void addChild(String name, XMLUtils.Stanza child)
name
- name of the entry to addchild
- the entry to addCopyright © 2017 Apache Software Foundation. All Rights Reserved.