public static interface

TemplateParser.OpenBuilder

chan.text.TemplateParser.OpenBuilder<H>
Known Indirect Subclasses

Class Overview

Parser builder.

Summary

Public Methods
abstract InitialBuilder<H> content(ContentCallback<H> contentCallback)

Defines a reaction callback when full tag content parsed.

abstract ContentBuilder<H> open(OpenCallback<H> openCallback)

Defines a reaction callback when tag opened.

Public Methods

public abstract InitialBuilder<H> content (ContentCallback<H> contentCallback)

Defines a reaction callback when full tag content parsed. This callback may be not called if open callback returned a false value.

Parameters
contentCallback ContentCallback: Tag content callback.
Returns
InitialBuilder<H> Parser builder.

public abstract ContentBuilder<H> open (OpenCallback<H> openCallback)

Defines a reaction callback when tag opened. This callback determines whether parser should parse the full tag content and call content callback or not depending on the return value. If you don't specify this callback parser will parse full content anyway.

Parameters
openCallback OpenCallback: Tag open callback.
Returns
ContentBuilder<H> Parser builder.