public class Concatenate extends Object implements VirtualMetadataConfiguration
VirtualMetadataConfiguration interface to achieve the generation of Virtual
metadata
The Concatenate bean will take all the values of each metadata field configured in the list
and it will join all of these together with the separator defined in this bean. This means that whichever
entry this bean belongs to, that metadata field will have the value of the related item's metadata values
joined together with this separator. Only one value will be returned| Constructor and Description |
|---|
Concatenate() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getFields()
Generic getter for the fields property
|
String |
getSeparator()
Generic getter for the seperator
|
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 concatenate all those values together with the separator specified
in this class
|
void |
setFields(List<String> fields)
Generic setter for the fields property
|
void |
setSeparator(String separator)
Generic setter for the seperator 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 String getSeparator()
public void setSeparator(String separator)
separator - The String seperator value to which this seperator value 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.