|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.code.facebookapi.XmlHelper
public class XmlHelper
| Constructor Summary | |
|---|---|
XmlHelper()
|
|
| Method Summary | |
|---|---|
static boolean |
extractBoolean(org.w3c.dom.Node result)
Extracts a Boolean from a result that consists of a Boolean only. |
static int |
extractInt(org.w3c.dom.Node doc)
Extracts an Integer from a document that consists of an Integer only. |
static java.lang.Long |
extractLong(org.w3c.dom.Node doc)
Extracts a Long from a document that consists of a Long only. |
static java.lang.String |
extractString(org.w3c.dom.Node d)
Extracts a String from a Document consisting entirely of a String. |
static org.w3c.dom.Document |
parseCallResult(org.w3c.dom.Document doc)
Used in the context of optimisation. |
static org.w3c.dom.Document |
parseCallResult(java.lang.Object rawResponse,
javax.xml.parsers.DocumentBuilderFactory factory)
|
static java.lang.String |
printDom(org.w3c.dom.Node n,
java.lang.String prefix)
|
static void |
printDom(org.w3c.dom.Node n,
java.lang.String prefix,
java.lang.StringBuilder sb)
Prints out the DOM tree. |
static void |
stripEmptyTextNodes(org.w3c.dom.Node n)
Hack...since DOM reads newlines as textnodes we want to strip out those nodes to make it easier to use the tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlHelper()
| Method Detail |
|---|
public static java.lang.String printDom(org.w3c.dom.Node n,
java.lang.String prefix)
public static void printDom(org.w3c.dom.Node n,
java.lang.String prefix,
java.lang.StringBuilder sb)
n - the parent node to start printing fromprefix - string to append to output, should not be nullpublic static java.lang.String extractString(org.w3c.dom.Node d)
public static int extractInt(org.w3c.dom.Node doc)
doc -
public static java.lang.Long extractLong(org.w3c.dom.Node doc)
doc -
public static boolean extractBoolean(org.w3c.dom.Node result)
result -
public static org.w3c.dom.Document parseCallResult(java.lang.Object rawResponse,
javax.xml.parsers.DocumentBuilderFactory factory)
throws FacebookException
FacebookExceptionpublic static void stripEmptyTextNodes(org.w3c.dom.Node n)
public static org.w3c.dom.Document parseCallResult(org.w3c.dom.Document doc)
throws FacebookException
doc -
FacebookException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||