simkin.examples.array
Class ArrayExample
java.lang.Object
|
+--simkin.ExecutableRoot
|
+--simkin.XMLElementObject
|
+--simkin.XMLExecutable
|
+--simkin.examples.array.ArrayExample
- All Implemented Interfaces:
- Executable
- public class ArrayExample
- extends XMLExecutable
This class shows how an array can be accessed by a Simkin script, where the array is stored in an XML file, or as a Java array
Field Summary |
java.lang.String[] |
nativeArray
this java array is public, and therefore accessible to the Simkin scripts |
Constructor Summary |
ArrayExample(java.lang.String location,
java.io.InputStream in)
constructor just passes the XML input stream to its parent |
Method Summary |
static void |
main(java.lang.String[] args)
load up the xml file named in the command line into an ArrayExample object and then run the main method |
Methods inherited from class simkin.XMLElementObject |
addElement, containsElement, copyAttributesInto, copyItemsInto, createIterator, createIterator, createXMLElementObject, dump, enumerate, enumerate, equals, findChild, findChild, findChild, getAddIfNotPresent, getAttribute, getAttributes, getData, getElement, getInstanceVariables, getLocation, getSource, getValue, getValueAt, method, setAddIfNotPresent, setAttribute, setData, setElement, setValue, setValueAt, tagName, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
nativeArray
public java.lang.String[] nativeArray
- this java array is public, and therefore accessible to the Simkin scripts
ArrayExample
public ArrayExample(java.lang.String location,
java.io.InputStream in)
throws org.xml.sax.SAXException,
java.io.IOException
- constructor just passes the XML input stream to its parent
main
public static void main(java.lang.String[] args)
- load up the xml file named in the command line into an ArrayExample object and then run the main method