Program

Program is an o:XML program.

Constructors

Program other, Node deep program = other.program; params.putAll(other.params); Node systemId

Load and compile a program from a file or network resource.

Same as: Program($systemId, true())

try{ program = programproxy.getProgram(systemId.stringValue()); program.loadExtension("org.oXML.extras.java.JavaExtensions"); program.loadExtension("org.oXML.extras.db.DatabaseExtensions"); program.loadExtension("org.oXML.extras.xinclude.XIncludeExtensions"); if(!program.compiled()) program.compile(); }catch(org.xml.sax.SAXException exc){ throw new ObjectBoxException(exc); }catch(java.io.IOException exc){ throw new ObjectBoxException(exc); } Node systemId, Node defaultExtensions

Load and compile a program from a file or network resource.

Parameter defaultExtensions: If true, load the default language extensions.

try{ program = programproxy.getProgram(systemId.stringValue()); if(defaultExtensions.booleanValue()){ program.loadExtension("org.oXML.extras.java.JavaExtensions"); program.loadExtension("org.oXML.extras.db.DatabaseExtensions"); program.loadExtension("org.oXML.extras.xinclude.XIncludeExtensions"); } if(!program.compiled()) program.compile(); }catch(org.xml.sax.SAXException exc){ throw new ObjectBoxException(exc); }catch(java.io.IOException exc){ throw new ObjectBoxException(exc); }

Type Functions

encoding()

getParameterNames()

Set the names of all this program's parameters.

run()

Execute this Program.

Returns: The generated program output or return value.

setParameter(Node name, Node value)

Set a program parameter.

setParameter(Name name, Node value)

Set a program parameter.

systemId()