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
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 |
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
NodeAccess
public NodeAccess()
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)