org.sitemesh.tagprocessor
Interface TagProcessorContext


public interface TagProcessorContext

Defines a set of methods that allows TagRules to interact with the TagProcessor.

Author:
Joe Walnes

Method Summary
 void changeState(State newState)
          Change the State of the processor, which will result in different TagRules being applied.
 Appendable currentBuffer()
          Get the current destination output buffer.
 CharSequence currentBufferContents()
          Get the contents of the current destination output buffer.
 State currentState()
          Return the current State the processor is in.
 void popBuffer()
           
 void pushBuffer()
          Push a new destination output buffer onto the stack.
 void pushBuffer(CharSequenceBuffer customBuffer)
          Push a new destination output buffer onto the stack.
 

Method Detail

currentState

State currentState()
Return the current State the processor is in.


changeState

void changeState(State newState)
Change the State of the processor, which will result in different TagRules being applied.


currentBuffer

Appendable currentBuffer()
Get the current destination output buffer.


currentBufferContents

CharSequence currentBufferContents()
Get the contents of the current destination output buffer.


pushBuffer

void pushBuffer()
Push a new destination output buffer onto the stack. All content in the document from this point forwards will be written to this buffer instead of the default destination, until popBuffer() is called. Will use a default implementation of CharSequenceBuffer.


pushBuffer

void pushBuffer(CharSequenceBuffer customBuffer)
Push a new destination output buffer onto the stack. All content in the document from this point forwards will be written to this buffer instead of the default destination, until popBuffer() is called.


popBuffer

void popBuffer()
See Also:
pushBuffer()


Copyright © 2011. All Rights Reserved.