public static class CreativeCommons.MdField extends Object
| Constructor and Description |
|---|
CreativeCommons.MdField(String fieldName) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public CreativeCommons.MdField(String fieldName)
public String ccItemValue(Item item)
item - - the item to readpublic String keyedItemValue(Item item, String key) throws AuthorizeException, IOException, SQLException
item - - the item to readkey - - the key for desired valueAuthorizeExceptionIOExceptionSQLExceptionpublic void removeItemValue(Item item, String value) throws AuthorizeException, IOException, SQLException
item - - the item to updatevalue - - the value to removeAuthorizeExceptionIOExceptionSQLExceptionCopyright © 2015 DuraSpace. All Rights Reserved.