File Expression Language
The File Expression Language is an extension to the Simple language, adding file related capabilities. These capabilities is related to common use cases working with file path and names. The goal is to allow expression to be used with the File component for setting dynamic file patterns for both the file consumer and file producer.
Syntax
This language is an extension the the Simple language so the Simple syntax applies also.
All the file tokens uses the same as the method on the java.io.File
object, for instance file:absolute
refers to the java.io.File.getAbsolute() method.
All options returns a String object.
XXX |
Description |
---|---|
file:name | refers to the file name |
file:name.noext | refers to the file name with no extension |
file:parent | refers to the file parent |
file:path | refers to the file path |
file:absolute | refers to the absolute file |
file:canonical.path | refers to the canonical path |
data:command:pattern |
for date formatting using the java.text.SimepleDataFormat patterns. Supported commands are: now for current timestamp, file for the last modified timestamp of the file. |
bean:bean expression |
invoking a bean expression using the Bean language. |
simple:simple expression |
to invoke the simple expression, however simple: can be obmitted as this language extends the simple language |
TODO: