Package org.anchoranalysis.bean.shared
Class StringMap
public class StringMap extends AnchorBean<StringMap>
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description StringMap() -
Method Summary
Modifier and Type Method Description Map<String,String>create()Derives aMaprepresentation for the mapping.List<StringMapItem>getList()A list of mappings between a single-items in the respective sets.voidsetList(List<StringMapItem> list)A list of mappings between a single-items in the respective sets.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
StringMap
public StringMap()
-
-
Method Details
-
create
Derives aMaprepresentation for the mapping.Each
StringMapItem.getSource()should be unique inlist, otherwise an exception is thrown.- Returns:
- a newly created
Maprepresenting the items inlist. - Throws:
CreateException- if the values ofStringMapItem.getSource()inlistare not unique.
-
getList
A list of mappings between a single-items in the respective sets. -
setList
A list of mappings between a single-items in the respective sets.
-