|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.bulkedit.DSpaceCSVLine
public class DSpaceCSVLine
Utility class to store a line from a CSV file
| Constructor Summary | |
|---|---|
DSpaceCSVLine()
Create a new CSV line for a new item |
|
DSpaceCSVLine(int itemId)
Create a new CSV line |
|
| Method Summary | |
|---|---|
void |
add(String key,
String value)
Add a new metadata value to this line |
List<String> |
get(String key)
Get all the values that match the given metadata key. |
String |
getAction()
Get any action associated with this line |
int |
getID()
Get the item ID that this line represents |
Set<String> |
keys()
Get all the metadata keys that are represented in this line |
protected String |
toCSV(List<String> headings)
Write this line out as a CSV formatted string, in the order given by the headings provided |
protected String |
valueToCSV(List<String> values)
Internal method to create a CSV formatted String joining a given set of elements |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DSpaceCSVLine(int itemId)
itemId - The item ID of the linepublic DSpaceCSVLine()
| Method Detail |
|---|
public int getID()
public void add(String key,
String value)
key - The metadata key (e.g. dc.contributor.author)value - The metadata valuepublic List<String> get(String key)
key - The metadata key
public String getAction()
public Set<String> keys()
protected String toCSV(List<String> headings)
headings - The headings which define the order the elements must be presented in
protected String valueToCSV(List<String> values)
values - The values to create the string from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||