Class Derived
java.lang.Object
org.apache.juneau.console.freemarker.Derived
Declares a derived data source: transforms run in the browser on each new frame of another source, published on
data:<as> .
The built-in transforms are
Example:
- Since:
- 10.0.0
-
Method Summary
-
Method Details
-
from
- Parameters:
source- The input source id.- Returns:
- A new declaration.
- Throws:
IllegalArgumentException- E-40 if the id is not a valid topic key.
-
transform
Appends a transform.- Parameters:
name- A registered transform (bare built-in or dotted app name).args- The transform's arguments, ornull . The map is copied one level deep; nested values are shared, so do not mutate them after the call.- Returns:
- This object.
-
params
- Parameters:
subs- Subscriptions with roleparams . @return This object.
-
as
Names the output.- Parameters:
value- The derived source id; the topic isdata:<value> .- Returns:
- This object.
-
id
- Returns:
- The output id, or
null beforeas(String).
-
toMap
Thecontract.dataSources[] entry.- Returns:
- A new map.
- Throws:
IllegalStateException- Ifas(String)was not called.
-