|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BuildContext
The context for building a template from chunks.
Method Summary | |
---|---|
MacroReference |
getMacroReference(java.lang.String qualifiedName)
Returns the macro reference with the specified name and the specified extension |
Messages |
getMessages()
Returns the current messages object from the stack |
java.lang.Object |
getVariable(java.lang.String name)
Returns the variable with the specified name or null if not set |
java.lang.Object |
getWorkingObject()
Gets the top most working object from the stack without popping it |
Messages |
popMessages()
Pops the messages from the stack |
java.lang.Object |
popWorkingObject()
Pops the working object from the stack |
void |
pushMessages(Messages messages)
Pushes the messages to the stack |
void |
pushWorkingObject(java.lang.Object object)
Pushes the working object to the stack |
void |
releaseVariable(java.lang.String name)
Releases the variable with the specified name |
void |
setVariable(java.lang.String name,
java.lang.Object value)
Sets the variable with the specified name |
Methods inherited from interface org.peaseplate.RenderContext |
---|
getEngine, getLineSeparator, getLocale, getMessage, getTemplate |
Method Detail |
---|
void pushWorkingObject(java.lang.Object object)
object
- the working objectjava.lang.Object popWorkingObject() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if there is no working object on the stackjava.lang.Object getWorkingObject() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if there is no working object on the stackvoid pushMessages(Messages messages)
messages
- the messagesMessages popMessages() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if there is no messages object on the stackMessages getMessages() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if there is no messages object on the stackMacroReference getMacroReference(java.lang.String qualifiedName)
qualifiedName
- the qualifiedName of the macro
void setVariable(java.lang.String name, java.lang.Object value)
name
- the name of the variablevalue
- the value of the variablejava.lang.Object getVariable(java.lang.String name)
name
- the name
void releaseVariable(java.lang.String name)
name
- the name of the variable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |