Class TagDelegator

  • All Implemented Interfaces:
    TagValueListener, TagValueWrapper

    public class TagDelegator
    extends SimpleTagValueWrapper

    Pushes a new parser and listener, or delegate to a listener depending on the tag.

    setParserListener() is used to associate a tag with a TagValueParser and TagValueListener. When this tag is encountered, the pair will be pushed onto the parser processing stack and will gain control of the stream until that tag has ended. setListener() is used to associate a listener with a tag that will be used to handle those values without pushing a sub-context. The delegator is constructed with a default TagValueListener that will be informed of all events for which there are no explicit delegate pairs registered.

    Since:
    1.2
    Author:
    Matthew Pocock