... | ... | @@ -20,4 +20,24 @@ Instead: Java Properties? |
|
|
- easy list-like syntax similar to INI -> good readability
|
|
|
- Syntax: *section.property=value*
|
|
|
>>>
|
|
|
Leonard |
|
|
\ No newline at end of file |
|
|
Leonard
|
|
|
|
|
|
### Configuration Files
|
|
|
The configuration files specify the printers properties and a set of formats with their format specific properties. The files are of the type '.properties' (Java Properties Format). The 'ConfigParser' component features an abstract ConfigurationParser which can be extended to support other file types.
|
|
|
|
|
|
The Java Properties Format holds properties in a tree-like structure of dot-separated namespaces. Values are assigned by a simple '='. The structure of the config files is the following:
|
|
|
|
|
|
```mermaid
|
|
|
graph TD;
|
|
|
root-->printer;
|
|
|
root-->format;
|
|
|
printer-->name;
|
|
|
printer-->...;
|
|
|
format-->A4_landscape;
|
|
|
format-->B5_portrait;
|
|
|
A4_landscape-->width;
|
|
|
A4_landscape-->height;
|
|
|
A4_landscape-->characters_per_line;
|
|
|
A4_landscape-->....;
|
|
|
B5_portrait-->.....;
|
|
|
``` |
|
|
\ No newline at end of file |