org.tagnetic.core.scriptcontext.implementer.javascript
Class JavaScriptContext

java.lang.Object
  extended byorg.tagnetic.core.scriptcontext.implementer.javascript.JavaScriptContext
All Implemented Interfaces:
ScriptContext

public class JavaScriptContext
extends java.lang.Object
implements ScriptContext


Constructor Summary
JavaScriptContext()
           
 
Method Summary
 java.lang.Object createScope()
           
 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)
           
 java.lang.Object get(TagGroup tagGroup, java.lang.String varName)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptContext

public JavaScriptContext()
Method Detail

getTopScope

public java.lang.Object getTopScope()
Specified by:
getTopScope in interface ScriptContext

createScope

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

createScope

public java.lang.Object createScope(java.lang.Object currentScope)
                             throws TagneticScriptException
Specified by:
createScope in interface ScriptContext
Throws:
TagneticScriptException

evaluateToString

public java.lang.String evaluateToString(TagGroup tagGroup,
                                         java.lang.String scriptText)
                                  throws TagneticScriptException
Specified by:
evaluateToString in interface ScriptContext
Throws:
TagneticScriptException

evaluateToBoolean

public boolean evaluateToBoolean(TagGroup tagGroup,
                                 java.lang.String scriptText)
                          throws TagneticScriptException
Specified by:
evaluateToBoolean in interface ScriptContext
Throws:
TagneticScriptException

evaluateToInteger

public int evaluateToInteger(TagGroup tagGroup,
                             java.lang.String scriptText)
                      throws TagneticScriptException
Specified by:
evaluateToInteger in interface ScriptContext
Throws:
TagneticScriptException

evaluate

public java.lang.Object evaluate(TagGroup tagGroup,
                                 java.lang.String scriptText)
                          throws TagneticScriptException
Specified by:
evaluate in interface ScriptContext
Throws:
TagneticScriptException

putValue

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

putObject

public void putObject(TagGroup tagGroup,
                      java.lang.String varName,
                      java.lang.Object value)
               throws TagneticScriptException
Specified by:
putObject in interface ScriptContext
Throws:
TagneticScriptException

putXmlValue

public void putXmlValue(TagGroup tagGroup,
                        java.lang.String varName,
                        java.lang.String xmlValue)
                 throws TagneticScriptException
Specified by:
putXmlValue in interface ScriptContext
Throws:
TagneticScriptException

getValue

public java.lang.Object getValue(TagGroup tagGroup,
                                 java.lang.String varName)
                          throws TagneticScriptException
Specified by:
getValue in interface ScriptContext
Throws:
TagneticScriptException

getValueAsType

public java.lang.Object getValueAsType(TagGroup tagGroup,
                                       java.lang.String varName,
                                       java.lang.Class desiredType)
                                throws TagneticScriptException
Specified by:
getValueAsType in interface ScriptContext
Throws:
TagneticScriptException

getValueAsString

public java.lang.String getValueAsString(TagGroup tagGroup,
                                         java.lang.String varName)
                                  throws TagneticScriptException
Specified by:
getValueAsString in interface ScriptContext
Throws:
TagneticScriptException

get

public java.lang.Object get(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
Specified by:
getLoopContext in interface ScriptContext
Throws:
TagneticScriptException


Copyright © 2005 tagnetic.org. All Rights Reserved.