public class Collected extends Object implements VirtualMetadataConfiguration
VirtualMetadataConfiguration interface to achieve the generation of Virtual
metadata
The Collected bean will take all the values of each metadata field defined in the list and it'll
create a list of virtual metadata fields defined by the map in which it's defined.
All values from the metadata fields will returned as separate elements| Constructor and Description |
|---|
Collected() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getFields()
Generic getter for the fields property
|
boolean |
getUseForPlace()
Generic getter for the useForPlace property
|
List<String> |
getValues(Context context,
Item item)
this method will retrieve the metadata values from the given item for all the metadata fields listed
in the fields property and it'll return all those values as a list
|
void |
setFields(List<String> fields)
Generic setter for the fields property
|
void |
setUseForPlace(boolean useForPlace)
Generic setter for the useForPlace property
|
public List<String> getFields()
public void setFields(List<String> fields)
fields - the list of fields to which the fields property will be set topublic void setUseForPlace(boolean useForPlace)
setUseForPlace in interface VirtualMetadataConfigurationuseForPlace - The boolean value that the useForPlace property will be set topublic boolean getUseForPlace()
getUseForPlace in interface VirtualMetadataConfigurationpublic List<String> getValues(Context context, Item item)
getValues in interface VirtualMetadataConfigurationcontext - The relevant DSpace contextitem - The item that will be used to either retrieve metadata values fromCopyright © 2019 DuraSpace. All rights reserved.