The following Jelly tag libraries are defined in this project.
jelly:util
A number of utility tags such as for tokenizing Strings.
This tag library is also available as an XML Schema
| Tag Name | Description |
|---|---|
| available | A tag which evaluates its body if the given file is available. The file can be specified via a File object or via a relative or absolute URI from the current Jelly script. |
| file | A tag which creates a File from a given name. |
| loadText | A tag which loads text from a file or URI into a Jelly variable. |
| properties | A tag which loads a properties file from a given file name or URI which are loaded into the current context. |
| replace | A tag that replaces occurrences of a character or string in its body or (or value) and places the result into the context |
| sleep | A tag which sleeps for a given amount of time. |
| sort | |
| tokenize |
available
A tag which evaluates its body if the given file is available. The file can be specified via a File object or via a relative or absolute URI from the current Jelly script.
| Attribute Name | Type | Description |
|---|---|---|
| file | java.io.File | Sets the file to use to test whether it exists or not. |
| uri | java.lang.String | Sets the URI to use to test for availability. The URI can be a full file based URL or a relative URI or an absolute URI from the root context. |
file
A tag which creates a File from a given name.
| Attribute Name | Type | Description |
|---|---|---|
| name | java.lang.String | Name of the file to be placed into the context |
| var | java.lang.String | Name of the variable to contain the file |
loadText
A tag which loads text from a file or URI into a Jelly variable.
| Attribute Name | Type | Description |
|---|---|---|
| encoding | java.lang.String | Sets the encoding to use to read the file |
| file | java.io.File | Sets the file to be parsed as text |
| uri | java.lang.String | Sets the uri to be parsed as text. This can be an absolute URL or a relative or absolute URI from this Jelly script or the root context. |
| var | java.lang.String | Sets the name of the variable which will be exported with the text value of the given file. |
properties
A tag which loads a properties file from a given file name or URI which are loaded into the current context.
| Attribute Name | Type | Description |
|---|---|---|
| file | java.lang.String | Sets the file name to be used to load the properties file. |
| uri | java.lang.String | Sets the URI of the properties file to use. This can be a full URL or a relative URI or an absolute URI to the root context of this JellyContext. |
| var | java.lang.String | If this is defined then a Properties object containing all the properties will be created and exported, otherwise the current variable scope will be set to the value of the properties. |
replace
A tag that replaces occurrences of a character or string in its body or (or value) and places the result into the context
| Attribute Name | Type | Description |
|---|---|---|
| new | java.lang.String | Sets the newString. |
| newChar | java.lang.String | Sets the newChar. |
| old | java.lang.String | Sets the oldString. |
| oldChar | java.lang.String | Sets the oldChar. |
| value | org.apache.commons.jelly.expression.Expression | Sets the value. |
| var | java.lang.String | Sets the var. |
sleep
A tag which sleeps for a given amount of time.
| Attribute Name | Type | Description |
|---|---|---|
| millis | long | Sets the amount of time that this thread should sleep for in milliseconds. |
sort
| Attribute Name | Type | Description |
|---|---|---|
| items | java.util.List | Set the items to be sorted |
| property | java.lang.String | |
| var | java.lang.String | The variable to hold the sorted collection. |
tokenize
| Attribute Name | Type | Description |
|---|---|---|
| delim | java.lang.String | the delimiter that separates the tokens |
| var | java.lang.String | The variable name to hold the list of tokens |
