org.dspace.administer
Class StructBuilder
java.lang.Object
org.dspace.administer.StructBuilder
public class StructBuilder
- extends Object
This class deals with importing community and collection structures from
an XML file.
The XML file structure needs to be:
....
...
....
it can be arbitrarily deep, and supports all the metadata elements
that make up the community and collection metadata. See the system
documentation for more details
- Author:
- Richard Jones
|
Method Summary |
static String |
getStringValue(Node node)
Return the String value of a Node |
static void |
main(String[] argv)
Main method to be run from the command line to import a structure into
DSpace
This is of the form:
StructBuilder -f [xml source] -e [administrator email] -o [output file]
The output file will contain exactly the same as the source xml document, but
with the handle for each imported item added as an attribute. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StructBuilder
public StructBuilder()
main
public static void main(String[] argv)
throws Exception
- Main method to be run from the command line to import a structure into
DSpace
This is of the form:
StructBuilder -f [xml source] -e [administrator email] -o [output file]
The output file will contain exactly the same as the source xml document, but
with the handle for each imported item added as an attribute.
- Throws:
Exception
getStringValue
public static String getStringValue(Node node)
- Return the String value of a Node
- Parameters:
node - the node from which we want to extract the string value
- Returns:
- the string value of the node
Copyright © 2011 DuraSpace. All Rights Reserved.