|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.greenstone.fedora.services.FedoraCommons
public class FedoraCommons
Methods common to both Fedora(GS3)Connection and GSearchConnection. Made static here so they can be reused by these classes.
Constructor Summary | |
---|---|
FedoraCommons()
|
Method Summary | |
---|---|
static java.lang.String |
elementToFormattedString(org.w3c.dom.Element e)
Given an Element, this will return its String representation properly indented for display. |
static java.lang.String |
elementToString(org.w3c.dom.Element e)
Given an Element, this will return its String representation without indenting it for display. |
static org.w3c.dom.Element |
getResponseAsDOM(javax.xml.parsers.DocumentBuilder builder,
java.lang.String XML)
Turns the XML String into a DOM tree and returns it. |
static java.lang.String |
getValue(org.w3c.dom.Element e)
Extract the text from an element, if any. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FedoraCommons()
Method Detail |
---|
public static java.lang.String getValue(org.w3c.dom.Element e)
e
- is the element whose value is to be extracted.
public static org.w3c.dom.Element getResponseAsDOM(javax.xml.parsers.DocumentBuilder builder, java.lang.String XML) throws org.xml.sax.SAXException, java.io.IOException
XML
- the string to be converted into a DOM treebuilder
- is the DocumentBuilder to use to parse the string XML
org.xml.sax.SAXException
java.io.IOException
public static java.lang.String elementToString(org.w3c.dom.Element e) throws javax.xml.transform.TransformerException
e
- is the element to be converted to its string representation.
javax.xml.transform.TransformerException
public static java.lang.String elementToFormattedString(org.w3c.dom.Element e) throws javax.xml.transform.TransformerException
e
- is the element to be converted to its string representation.
javax.xml.transform.TransformerException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |