Package org.xmlet.htmlapifaster
Interface Element
-
- All Implemented Interfaces:
-
org.xmlet.htmlapifaster.ElementExtensions,org.xmlet.htmlapifaster.async.AsyncElement
public interface Element<T extends Element, Z extends Element> implements AsyncElement<E>, ElementExtensions<T>
-
-
Method Summary
Modifier and Type Method Description abstract Tself()abstract ElementVisitorgetVisitor()abstract StringgetName()abstract Z__()abstract ZgetParent()TaddTextFromkotlin(@NotNull() String txt)Element<T, Z>unaryPlus(@NotNull() String $this$unaryPlus)<R> Traw(R text)To distinguish from text() that escapes HTML by default. <M> Tawait(AwaitConsumer<T, M> asyncAction)Executes an async operation on a certain model <U> Tdynamic(BiConsumer<T, U> consumer)Tof(Consumer<T> consumer)CustomElement<T>custom(String name)-
-
Method Detail
-
getVisitor
abstract ElementVisitor getVisitor()
-
addTextFromkotlin
T addTextFromkotlin(@NotNull() String txt)
-
raw
<R> T raw(R text)
To distinguish from text() that escapes HTML by default. This raw() acts like text() but keeping text as it is.
-
await
<M> T await(AwaitConsumer<T, M> asyncAction)
Executes an async operation on a certain model
- Parameters:
asyncAction- The async action to be executed on a element and model- Returns:
The processed element
-
dynamic
<U> T dynamic(BiConsumer<T, U> consumer)
- Parameters:
consumer- The continuation that consumes the element and a model.- Returns:
The same element that is passed to the consumer, corresponding to this element, i.e. self.
-
custom
CustomElement<T> custom(String name)
-
-
-
-