org.dspace.app.itemupdate
Class ContentsEntry
java.lang.Object
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:
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
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.