org.dspace.administer
Class StructBuilder

java.lang.Object
  extended by 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

Constructor Summary
StructBuilder()
           
 
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
 

Constructor Detail

StructBuilder

public StructBuilder()
Method Detail

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 © 2010 DuraSpace. All Rights Reserved.