org.dspace.app.itemupdate
Class ContentsEntry

java.lang.Object
  extended by org.dspace.app.itemupdate.ContentsEntry

public class ContentsEntry
extends Object

Holds the elements of a line in the Contents Entry file Based on private methods in ItemImport Lacking a spec or full documentation for the file format, it looks from the source code that the ordering or elements is not fixed e.g.: 48217870-MIT.pdf\tbundle: bundlename\tpermissions: -r 'MIT Users'\tdescription: Full printable version (MIT only) permissions: -[r|w] ['group name'] description:


Field Summary
static String HDR_BUNDLE
           
static String HDR_DESCRIPTION
           
static String HDR_PERMISSIONS
           
static Pattern permissionsPattern
           
 
Method Summary
static ContentsEntry parse(String line)
          Factory method parses a line from the Contents Entry file
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HDR_BUNDLE

public static final String HDR_BUNDLE
See Also:
Constant Field Values

HDR_PERMISSIONS

public static final String HDR_PERMISSIONS
See Also:
Constant Field Values

HDR_DESCRIPTION

public static final String HDR_DESCRIPTION
See Also:
Constant Field Values

permissionsPattern

public static final Pattern permissionsPattern
Method Detail

parse

public static ContentsEntry parse(String line)
                           throws ParseException
Factory method parses a line from the Contents Entry file

Parameters:
line -
Returns:
the parsed ContentsEntry object
Throws:
ParseException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 DuraSpace. All Rights Reserved.