| Modifier and Type | Method and Description |
|---|---|
| public @NotNull String | Returns: an encoded URL (depending on the configuration)to be encoded url)
|
| public @NotNull Node | |
| public @NotNull Document | Returns: theDocument node of the current contextRedeclares com.
|
| public @NotNull DataHolder | Returns: the current renderer optionsDataHolderRedeclares com. Get the current rendering context |
| public void | |
| public void | renderChildren(@NotNull Node
node the children of which are to be rendered parent)Render the children of the node, used by custom renderers |
| public default @NotNull ResolvedLink | Returns: resolved link url for this link and its resolved statustype of link being rendered. Core defined links are Link, Image. Extensions can define their own linkType, @NotNull CharSequence link url text url, @Nullable Boolean whether the link should be url encoded, if null then the value of urlEncode)HtmlRenderer#PERCENT_ENCODE_URLS will be used to determine whether the resolved URL is to be encoded.Resolve link for rendering. |
| public @NotNull ResolvedLink | Returns: resolved link url for this link and its resolved statustype of link being rendered. Core defined links are Link, Image. Extensions can define their own linkType, @NotNull CharSequence link url text url, @Nullable Attributes link attributes attributes, @Nullable Boolean whether the link should be url encoded, if null then the value of urlEncode)HtmlRenderer#PERCENT_ENCODE_URLS will be used to determine whether the resolved URL is to be encoded.Resolve link for rendering. |
| encodeUrl | back to summary |
|---|---|
public @NotNull String encodeUrl(@NotNull CharSequence url)
| |
| getCurrentNode | back to summary |
|---|---|
| public @NotNull Node getCurrentNode() | |
| getDocument | back to summary |
|---|---|
| public @NotNull Document getDocument() Redeclares com. | |
| getOptions | back to summary |
|---|---|
| public @NotNull DataHolder getOptions() Redeclares com. Get the current rendering context
| |
| render | back to summary |
|---|---|
| public void render(@NotNull Node node) Render the specified node and its children using the configured renderers. This should be used to render child nodes; be careful not to pass the node that is being rendered, that would result in an endless loop. | |
| renderChildren | back to summary |
|---|---|
| public void renderChildren(@NotNull Node parent) Render the children of the node, used by custom renderers | |
| resolveLink | back to summary |
|---|---|
| public default @NotNull ResolvedLink resolveLink(@NotNull LinkType linkType, @NotNull CharSequence url, @Nullable Boolean urlEncode) Resolve link for rendering. Link Resolvers are going to be called until one returns ResolvedLink with getStatus() != LinkStatus.Unknown A resolver can replace the url but not change the status letting downstream resolvers handle the rest. This is useful when a resolver does partial processing like macro expansion but does not know how to handle the rest. Core processing will simply pass the link as is. It is up to extension LinkResolvers and AttributeProviders to make sense of the link and applicable attributes based on status.
| |
| resolveLink | back to summary |
|---|---|
| public @NotNull ResolvedLink resolveLink(@NotNull LinkType linkType, @NotNull CharSequence url, @Nullable Attributes attributes, @Nullable Boolean urlEncode) Resolve link for rendering. Link Resolvers are going to be called until one returns ResolvedLink with getStatus() != LinkStatus.Unknown A resolver can replace the url but not change the status letting downstream resolvers handle the rest. This is useful when a resolver does partial processing like macro expansion but does not know how to handle the rest. Core processing will simply pass the link as is. It is up to extension LinkResolvers and AttributeProviders to make sense of the link and applicable attributes based on status.
| |