org.tagnetic.core.scriptcontext
Interface ScriptContext

All Known Implementing Classes:
JavaScriptContext

public interface ScriptContext


Method Summary
 java.lang.Object createScope(java.lang.Object currentScope)
           
 java.lang.Object evaluate(TagGroup tagGroup, java.lang.String scriptText)
           
 boolean evaluateToBoolean(TagGroup tagGroup, java.lang.String scriptText)
           
 int evaluateToInteger(TagGroup tagGroup, java.lang.String scriptText)
           
 java.lang.String evaluateToString(TagGroup tagGroup, java.lang.String scriptText)
           
 LoopContext getLoopContext(TagGroup tagGroup, java.lang.String objectName, java.lang.String varName, java.lang.String loopStatusVarName, java.lang.String start, java.lang.String end, java.lang.String step)
           
 java.lang.Object getTopScope()
           
 java.lang.Object getValue(TagGroup tagGroup, java.lang.String varName)
           
 java.lang.String getValueAsString(TagGroup tagGroup, java.lang.String varName)
           
 java.lang.Object getValueAsType(TagGroup tagGroup, java.lang.String varName, java.lang.Class desiredType)
           
 void putObject(TagGroup tagGroup, java.lang.String varName, java.lang.Object value)
           
 void putValue(TagGroup tagGroup, java.lang.String varName, java.lang.Object value, boolean valueIsVar)
           
 void putXmlValue(TagGroup tagGroup, java.lang.String varName, java.lang.String xmlValue)
           
 

Method Detail

getTopScope

public java.lang.Object getTopScope()
                             throws TagneticScriptException
Throws:
TagneticScriptException

createScope

public java.lang.Object createScope(java.lang.Object currentScope)
                             throws TagneticScriptException
Throws:
TagneticScriptException

evaluate

public java.lang.Object evaluate(TagGroup tagGroup,
                                 java.lang.String scriptText)
                          throws TagneticScriptException
Throws:
TagneticScriptException

evaluateToString

public java.lang.String evaluateToString(TagGroup tagGroup,
                                         java.lang.String scriptText)
                                  throws TagneticScriptException
Throws:
TagneticScriptException

evaluateToBoolean

public boolean evaluateToBoolean(TagGroup tagGroup,
                                 java.lang.String scriptText)
                          throws TagneticScriptException
Throws:
TagneticScriptException

evaluateToInteger

public int evaluateToInteger(TagGroup tagGroup,
                             java.lang.String scriptText)
                      throws TagneticScriptException
Throws:
TagneticScriptException

putValue

public void putValue(TagGroup tagGroup,
                     java.lang.String varName,
                     java.lang.Object value,
                     boolean valueIsVar)
              throws TagneticScriptException
Throws:
TagneticScriptException

putXmlValue

public void putXmlValue(TagGroup tagGroup,
                        java.lang.String varName,
                        java.lang.String xmlValue)
                 throws TagneticScriptException
Throws:
TagneticScriptException

putObject

public void putObject(TagGroup tagGroup,
                      java.lang.String varName,
                      java.lang.Object value)
               throws TagneticScriptException
Throws:
TagneticScriptException

getValue

public java.lang.Object getValue(TagGroup tagGroup,
                                 java.lang.String varName)
                          throws TagneticScriptException
Throws:
TagneticScriptException

getValueAsType

public java.lang.Object getValueAsType(TagGroup tagGroup,
                                       java.lang.String varName,
                                       java.lang.Class desiredType)
                                throws TagneticScriptException
Throws:
TagneticScriptException

getValueAsString

public java.lang.String getValueAsString(TagGroup tagGroup,
                                         java.lang.String varName)
                                  throws TagneticScriptException
Throws:
TagneticScriptException

getLoopContext

public LoopContext getLoopContext(TagGroup tagGroup,
                                  java.lang.String objectName,
                                  java.lang.String varName,
                                  java.lang.String loopStatusVarName,
                                  java.lang.String start,
                                  java.lang.String end,
                                  java.lang.String step)
                           throws TagneticScriptException
Throws:
TagneticScriptException


Copyright © 2005 tagnetic.org. All Rights Reserved.