public static class CreativeCommons.MdField
extends java.lang.Object
| Constructor and Description |
|---|
CreativeCommons.MdField(java.lang.String fieldName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItemValue(Item item,
java.lang.String value)
Adds passed value to the set of values for the field in passed item.
|
java.lang.String |
ccItemValue(Item item)
Returns first value that matches Creative Commons 'shibboleth',
or null if no matching values.
|
java.lang.String |
keyedItemValue(Item item,
java.lang.String key)
Returns the value that matches the value mapped to the passed key if any.
|
void |
removeItemValue(Item item,
java.lang.String value)
Removes the passed value from the set of values for the field in passed item.
|
public CreativeCommons.MdField(java.lang.String fieldName)
public java.lang.String ccItemValue(Item item)
item - - the item to readpublic java.lang.String keyedItemValue(Item item, java.lang.String key) throws AuthorizeException, java.io.IOException, java.sql.SQLException
item - - the item to readkey - - the key for desired valueAuthorizeExceptionjava.io.IOExceptionjava.sql.SQLExceptionpublic void removeItemValue(Item item, java.lang.String value) throws AuthorizeException, java.io.IOException, java.sql.SQLException
item - - the item to updatevalue - - the value to removeAuthorizeExceptionjava.io.IOExceptionjava.sql.SQLExceptionpublic void addItemValue(Item item, java.lang.String value)
item - - the item to updatevalue - - the value to add in this fieldCopyright © 2013 DuraSpace. All Rights Reserved.