|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.administer.RegistryImporter
public class RegistryImporter
| Constructor Summary | |
|---|---|
RegistryImporter()
|
|
| Method Summary | |
|---|---|
static String |
getElementData(Node parentElement,
String childName)
Get the CDATA of a particular element. |
static String[] |
getRepeatedElementData(Node parentElement,
String childName)
Get repeated CDATA for a particular element. |
static Document |
loadXML(String filename)
Load in the XML from file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegistryImporter()
| Method Detail |
|---|
public static Document loadXML(String filename)
throws IOException,
ParserConfigurationException,
SAXException
filename - the filename to load from
IOException
ParserConfigurationException
SAXException
public static String getElementData(Node parentElement,
String childName)
throws TransformerException
<foo><mimetype>application/pdf</mimetype></foo>
passing this the foo node and mimetype will
return application/pdf.
parentElement - the element, whose child element you want the CDATA fromchildName - the name of the element you want the CDATA from
String
TransformerException
public static String[] getRepeatedElementData(Node parentElement,
String childName)
throws TransformerException
<foo>
<bar>val1</bar>
<bar>val2</bar>
</foo>
passing this the foo node and bar will
return val1 and val2.
parentElement - the element, whose child element you want the CDATA fromchildName - the name of the element you want the CDATA from
String
TransformerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||