|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.i18nbinder.grouping.FileGroupToPropertiesAdapter
public class FileGroupToPropertiesAdapter
Adapter to allow easy access to properties of all files which are part of a FileGroup.
| Nested Class Summary | |
|---|---|
protected static class |
FileGroupToPropertiesAdapter.PropertyFileAndProperty
Container for a Property and its respective PropertyFile. |
| Field Summary | |
|---|---|
protected FileGroup |
fileGroup
|
static String |
LINE_SEPARATOR
|
static String |
MULTILINE_VALUES_SEPARATOR
|
| Constructor Summary | |
|---|---|
FileGroupToPropertiesAdapter(FileGroup fileGroup)
|
|
| Method Summary | |
|---|---|
List<String> |
determineGroupTokenList()
Determines the tokens of the FileGroup. |
Set<String> |
determinePropertyKeySet()
Determines all property keys which are occurring at least in one of the files of the FileGroup. |
FileGroup |
getFileGroup()
|
protected org.omnaest.utils.propertyfile.PropertyFile |
resolveAndLoadPropertyFile(String groupToken)
Resolves and loads a PropertyFile |
protected org.omnaest.utils.propertyfile.PropertyFile |
resolvePropertyFile(String groupToken,
String fileEncoding)
Resolves a PropertyFile for the given group token using the FileGroup. |
protected FileGroupToPropertiesAdapter.PropertyFileAndProperty |
resolvePropertyFileAndProperty(String propertyKey,
String groupToken)
|
String |
resolvePropertyValue(String propertyKey,
String groupToken)
|
void |
setFileEncoding(String fileEncoding)
|
void |
setFileGroup(FileGroup fileGroup)
|
void |
writePropertyValue(String propertyKey,
String groupToken,
String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LINE_SEPARATOR
public static final String MULTILINE_VALUES_SEPARATOR
protected FileGroup fileGroup
| Constructor Detail |
|---|
public FileGroupToPropertiesAdapter(FileGroup fileGroup)
| Method Detail |
|---|
public FileGroup getFileGroup()
public void setFileGroup(FileGroup fileGroup)
protected org.omnaest.utils.propertyfile.PropertyFile resolvePropertyFile(String groupToken,
String fileEncoding)
PropertyFile for the given group token using the FileGroup.
groupToken - fileEncoding -
protected org.omnaest.utils.propertyfile.PropertyFile resolveAndLoadPropertyFile(String groupToken)
PropertyFile
groupToken -
#resolvePropertyFile(String)
protected FileGroupToPropertiesAdapter.PropertyFileAndProperty resolvePropertyFileAndProperty(String propertyKey,
String groupToken)
propertyKey - groupToken -
FileGroupToPropertiesAdapter.PropertyFileAndProperty
public void writePropertyValue(String propertyKey,
String groupToken,
String value)
public String resolvePropertyValue(String propertyKey,
String groupToken)
public List<String> determineGroupTokenList()
FileGroup.
public Set<String> determinePropertyKeySet()
FileGroup.
public void setFileEncoding(String fileEncoding)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||