org.concord.pedagogica.engine
Class NodeAccess

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--org.concord.pedagogica.engine.NodeAccess
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Direct Known Subclasses:
NodeViewEditor, RunActivity

public abstract class NodeAccess
extends org.xml.sax.helpers.DefaultHandler


Field Summary
protected  java.lang.Object component
           
protected  java.util.Vector components
           
protected  java.util.Hashtable componentTable
           
protected static org.concord.easl.EASL easlRuntime
           
protected static ECMA ecmaRuntime
           
protected  java.lang.Throwable error
           
protected  java.lang.Object frame
           
protected  java.util.Stack nodeStack
           
protected  java.util.Hashtable nodeTable
           
protected  java.lang.Object placement
           
static java.lang.String STRINGS
           
protected  java.util.Vector stringValues
           
protected  java.util.Vector stringVariables
           
 
Constructor Summary
NodeAccess()
           
 
Method Summary
 void addGlobals(NameStack globals)
           
abstract  java.lang.Object createComponent(org.xml.sax.Attributes atts)
           
protected  java.lang.Object createInstance(java.lang.String className)
           
abstract  java.lang.Object createPlacement(org.xml.sax.Attributes atts)
           
abstract  java.lang.Object createView(org.xml.sax.Attributes atts)
           
 void endElement(java.lang.String namespaceURI, java.lang.String name, java.lang.String qName)
          Receive notification of the end of an element.
 java.lang.Object findComponent(java.lang.String componentName)
           
 java.lang.Object getComponent(java.lang.Object component)
           
 java.lang.String getComponentName(java.lang.Object component)
           
static java.lang.String getExtension(java.lang.String scriptType)
           
 java.lang.Object getObject(java.lang.String name)
           
static ScriptRuntime getRuntime(java.lang.String scriptType)
           
 java.util.Vector getValues()
           
 java.util.Vector getVariables()
           
 void loadStringData(java.util.zip.ZipFile zipFile)
           
 boolean parseInput(ActivityScript node)
           
 boolean parseInput(java.io.InputStream input)
           
 void reset()
           
 void saveStringData(java.util.zip.ZipOutputStream zipOutput)
           
 void setError(java.lang.Throwable t)
           
 void show(ActivityScript node)
           
 void startElement(java.lang.String namespaceURI, java.lang.String name, java.lang.String qName, org.xml.sax.Attributes atts)
          Receive notification of the start of an element.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRINGS

public static final java.lang.String STRINGS

nodeStack

protected java.util.Stack nodeStack

stringVariables

protected java.util.Vector stringVariables

stringValues

protected java.util.Vector stringValues

components

protected java.util.Vector components

componentTable

protected java.util.Hashtable componentTable

nodeTable

protected java.util.Hashtable nodeTable

frame

protected java.lang.Object frame

component

protected java.lang.Object component

placement

protected java.lang.Object placement

error

protected java.lang.Throwable error

ecmaRuntime

protected static ECMA ecmaRuntime

easlRuntime

protected static org.concord.easl.EASL easlRuntime
Constructor Detail

NodeAccess

public NodeAccess()
Method Detail

reset

public void reset()

parseInput

public boolean parseInput(ActivityScript node)

show

public void show(ActivityScript node)

getRuntime

public static ScriptRuntime getRuntime(java.lang.String scriptType)

getExtension

public static java.lang.String getExtension(java.lang.String scriptType)

parseInput

public boolean parseInput(java.io.InputStream input)

getComponent

public java.lang.Object getComponent(java.lang.Object component)

getComponentName

public java.lang.String getComponentName(java.lang.Object component)

addGlobals

public void addGlobals(NameStack globals)

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String name,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
Description copied from class: org.xml.sax.helpers.DefaultHandler
Receive notification of the start of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).

Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Following copied from class: org.xml.sax.helpers.DefaultHandler
Parameters:
name - The element type name.
attributes - The specified or defaulted attributes.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.
See Also:
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String name,
                       java.lang.String qName)
Description copied from class: org.xml.sax.helpers.DefaultHandler
Receive notification of the end of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).

Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Following copied from class: org.xml.sax.helpers.DefaultHandler
Parameters:
name - The element type name.
attributes - The specified or defaulted attributes.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.
See Also:
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)

createInstance

protected java.lang.Object createInstance(java.lang.String className)

findComponent

public java.lang.Object findComponent(java.lang.String componentName)

getVariables

public java.util.Vector getVariables()

getValues

public java.util.Vector getValues()

saveStringData

public void saveStringData(java.util.zip.ZipOutputStream zipOutput)

loadStringData

public void loadStringData(java.util.zip.ZipFile zipFile)

getObject

public java.lang.Object getObject(java.lang.String name)

setError

public void setError(java.lang.Throwable t)

createView

public abstract java.lang.Object createView(org.xml.sax.Attributes atts)

createComponent

public abstract java.lang.Object createComponent(org.xml.sax.Attributes atts)

createPlacement

public abstract java.lang.Object createPlacement(org.xml.sax.Attributes atts)