|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.license.CreativeCommons.MdField
public static class CreativeCommons.MdField
Helper class for using CC-related Metadata fields
| Constructor Summary | |
|---|---|
CreativeCommons.MdField(String fieldName)
|
|
| Method Summary | |
|---|---|
void |
addItemValue(Item item,
String value)
Adds passed value to the set of values for the field in passed item. |
String |
ccItemValue(Item item)
Returns first value that matches Creative Commons 'shibboleth', or null if no matching values. |
String |
keyedItemValue(Item item,
String key)
Returns the value that matches the value mapped to the passed key if any. |
void |
removeItemValue(Item item,
String value)
Removes the passed value from the set of values for the field in passed item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CreativeCommons.MdField(String fieldName)
| Method Detail |
|---|
public String ccItemValue(Item item)
item - - the item to read
public String keyedItemValue(Item item,
String key)
throws AuthorizeException,
IOException,
SQLException
item - - the item to readkey - - the key for desired value
AuthorizeException
IOException
SQLException
public void removeItemValue(Item item,
String value)
throws AuthorizeException,
IOException,
SQLException
item - - the item to updatevalue - - the value to remove
AuthorizeException
IOException
SQLException
public void addItemValue(Item item,
String value)
item - - the item to updatevalue - - the value to add in this field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||