| Package | Description |
|---|---|
| net.pterodactylus.util.template |
Light-weight template system.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CollectionSortFilter
|
class |
ContainsFilter
Filter implementation that returns a boolean, depending on whether
the object being filtered is contained in a Collection that is given
as parameter to this filter. |
class |
DateFilter
Filter implementation that formats a date. |
class |
DefaultFilter
Filter implementation that can return fixed values when the input
value is null. |
class |
FormatFilter
|
class |
HtmlFilter
Filters HTML by replacing all characters that match a defined HTML entity by
that entity.
|
class |
InsertFilter
Filter implementation that works like a ReplaceFilter, only
that the actual replacement value is read from a template variable, which can
be set either using TemplateContext.set(String, Object) or using a
StoreFilter. |
class |
MatchFilter
Filter implementation that compares (for
equality) the data either with a String
(given as parameter “value”) or an object from the TemplateContext
(whose name is given as parameter “key”). |
class |
ModFilter
The mod filter performs a modulo operation on the given number and the
parameter “divisor,” adding the optional parameter “offset” to the dividend,
and returns
true if the module operation did not return a rest, i.e. |
class |
PaginationFilter
|
class |
RemoveFilter
Filter implementation that can remove elements from a
Collection. |
class |
ReplaceFilter
Filter implementation that replaces parts of a value. |
class |
StoreFilter
Filter that stores the output of the chain in the
TemplateContext. |
class |
XmlFilter
Filters XML by replacing double quotes characters, apostrophes, the less-than
character, the greater-than characters, and the ampersand by their respective
XML entities.
|
| Modifier and Type | Method and Description |
|---|---|
Filter |
TemplateContext.getFilter(String name)
Returns the filter with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
TemplateContext |
TemplateContext.addFilter(String name,
Filter filter)
Adds a filter to this context.
|
void |
TemplateContextFactory.addFilter(String name,
Filter filter)
Adds the given filter to all created templates.
|
Copyright © 2026. All rights reserved.