public class FileVersificationMapping extends Object
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
private List<KeyValuePair> |
pairs |
Constructor and Description |
---|
FileVersificationMapping()
Allow a default initialising if someone wants to create a mapping file dynamically.
|
FileVersificationMapping(Versification versification) |
private List<KeyValuePair> pairs
public FileVersificationMapping()
public FileVersificationMapping(Versification versification) throws IOException, ConfigException
versification
- the name of the versification maps to the expected .properties fileIOException
- error reading the mapping filesConfigException
- error parsing the contents of the filepublic void addProperty(String key, String value)
key
- the keyvalue
- the valuepublic List<KeyValuePair> getMappings()