Tabnine Logo
Engine
Code IndexAdd Tabnine to your IDE (free)

How to use
Engine
in
com.occamlab.te

Best Java code snippets using com.occamlab.te.Engine (Showing top 20 results out of 315)

origin: org.opengis.cite.teamengine/teamengine-core

public Engine(Collection<Index> indexes,
    Map<String, TEClassLoader> classLoaders, int cacheSize)
    throws Exception {
  this();
  this.classLoaders = classLoaders;
  if (cacheSize > 0) {
    this.cacheSize = cacheSize;
  }
  addFunctionLibrary(indexes);
}
origin: org.opengis.cite.teamengine/teamengine-core

  loadedExecutables.put(key, executable);
} catch (OutOfMemoryError e) {
  boolean freed = freeExecutable();
  if (!freed) {
    throw e;
boolean freed = freeExecutable();
if (!freed) {
  break;
origin: opengeospatial/teamengine

public int execute_test(String testName, List<String> params,
    XdmNode contextNode) throws Exception {
 if (LOGR.isLoggable( FINE)) {
  String logMsg = String.format(
      "Preparing test %s for execution, using params:%n %s",
      testName, params);
  LOGR.fine(logMsg);
 }
 TestEntry test = index.getTest(testName);
 if (test == null) {
  throw new Exception("Error: Test " + testName + " not found.");
 }
 XdmNode paramsNode = engine.getBuilder().build(
     new StreamSource(new StringReader(getParamsXML(params))));
 if (contextNode == null && test.usesContext()) {
  String contextNodeXML = "<context><value>" + test.getContext()
      + "</value></context>";
  contextNode = engine.getBuilder().build(
      new StreamSource(new StringReader(contextNodeXML)));
 }
 XPathContext context = getXPathContext(test, opts.getSourcesName(),
     contextNode);
 return executeTest(test, paramsNode, context);
}
origin: org.opengis.cite.teamengine/teamengine-core

else masterIndex = new Index();
TEClassLoader cl = new TEClassLoader(findResourcesDirectory(sourceFile));
Engine engine = new Engine(masterIndex, setupOpts.getSourcesName(), cl);
  engine.preload(masterIndex, setupOpts.getSourcesName());
origin: org.opengis.cite.teamengine/teamengine-spi-ctl

Engine engine = new Engine(masterIndex,
    setupOpts.getSourcesName(), defaultLoader);
TECore ctlRunner = new TECore(engine, masterIndex, runOpts);
origin: org.opengis.cite.teamengine/teamengine-core

/**
 * Loads all of the XSL executables. This is a time consuming operation.
 * 
 * @param index
 * @param sourcesName
 *            A stylesheet reference.
 * @throws Exception
 *             If the stylesheet fail to compile.
 */
public void preload(Index index, String sourcesName) throws Exception {
  for (String key : index.getTestKeys()) {
    TestEntry te = index.getTest(key);
    loadExecutable(te, sourcesName);
  }
  for (String key : index.getFunctionKeys()) {
    List<FunctionEntry> functions = index.getFunctions(key);
    for (FunctionEntry fe : functions) {
      if (!fe.isJava()) {
        loadExecutable(fe, sourcesName);
      }
    }
  }
}
origin: org.opengis.cite.teamengine/teamengine-core

if (instance == null) {
 try {
  TEClassLoader cl = engine.getClassLoader(opts
      .getSourcesName());
  instance = Misc.makeInstance(pe.getClassName(),
TEClassLoader cl = engine.getClassLoader(opts.getSourcesName());
method = Misc.getMethod(pe.getClassName(), pe.getMethod(), cl,
    3, 4);
origin: org.opengis.cite.teamengine/teamengine-core

XsltTransformer formTransformer = engine.getFormExecutable().load();
formTransformer.setSource(new DOMSource(ctlForm));
  formTransformer.setParameter(new QName("title"), new XdmAtomicValue(
origin: opengeospatial/teamengine

else masterIndex = new Index();
TEClassLoader cl = new TEClassLoader(findResourcesDirectory(sourceFile));
Engine engine = new Engine(masterIndex, setupOpts.getSourcesName(), cl);
  engine.preload(masterIndex, setupOpts.getSourcesName());
origin: opengeospatial/teamengine

Engine engine = new Engine(masterIndex,
    setupOpts.getSourcesName(), defaultLoader);
TECore ctlRunner = new TECore(engine, masterIndex, runOpts);
origin: opengeospatial/teamengine

/**
 * Loads all of the XSL executables. This is a time consuming operation.
 * 
 * @param index
 * @param sourcesName
 *            A stylesheet reference.
 * @throws Exception
 *             If the stylesheet fail to compile.
 */
public void preload(Index index, String sourcesName) throws Exception {
  for (String key : index.getTestKeys()) {
    TestEntry te = index.getTest(key);
    loadExecutable(te, sourcesName);
  }
  for (String key : index.getFunctionKeys()) {
    List<FunctionEntry> functions = index.getFunctions(key);
    for (FunctionEntry fe : functions) {
      if (!fe.isJava()) {
        loadExecutable(fe, sourcesName);
      }
    }
  }
}
origin: opengeospatial/teamengine

if (instance == null) {
 try {
  TEClassLoader cl = engine.getClassLoader(opts
      .getSourcesName());
  instance = Misc.makeInstance(pe.getClassName(),
TEClassLoader cl = engine.getClassLoader(opts.getSourcesName());
method = Misc.getMethod(pe.getClassName(), pe.getMethod(), cl,
    3, 4);
origin: opengeospatial/teamengine

XsltTransformer formTransformer = engine.getFormExecutable().load();
formTransformer.setSource(new DOMSource(ctlForm));
  formTransformer.setParameter(new QName("title"), new XdmAtomicValue(
origin: org.opengis.cite.teamengine/teamengine-core

public int execute_test(String testName, List<String> params,
    XdmNode contextNode) throws Exception {
 if (LOGR.isLoggable( FINE)) {
  String logMsg = String.format(
      "Preparing test %s for execution, using params:%n %s",
      testName, params);
  LOGR.fine(logMsg);
 }
 TestEntry test = index.getTest(testName);
 if (test == null) {
  throw new Exception("Error: Test " + testName + " not found.");
 }
 XdmNode paramsNode = engine.getBuilder().build(
     new StreamSource(new StringReader(getParamsXML(params))));
 if (contextNode == null && test.usesContext()) {
  String contextNodeXML = "<context><value>" + test.getContext()
      + "</value></context>";
  contextNode = engine.getBuilder().build(
      new StreamSource(new StringReader(contextNodeXML)));
 }
 XPathContext context = getXPathContext(test, opts.getSourcesName(),
     contextNode);
 return executeTest(test, paramsNode, context);
}
origin: org.opengis.cite.teamengine/teamengine-core

XPathContext getXPathContext(TestEntry test, String sourcesName,
    XdmNode contextNode) throws Exception {
 XPathContext context = null;
 if (test.usesContext()) {
  XsltExecutable xe = engine.loadExecutable(test, sourcesName);
  Executable ex = xe.getUnderlyingCompiledStylesheet()
      .getExecutable();
  context = new XPathContextMajor(contextNode.getUnderlyingNode(), ex);
 }
 return context;
}
origin: org.opengis.cite.teamengine/teamengine-core

int argCount = paramElements.size();
if (fe.getMinArgs() >= argCount && fe.getMaxArgs() <= argCount) {
 TEClassLoader cl = engine.getClassLoader(opts
     .getSourcesName());
 Method method = Misc.getMethod(fe.getClassName(),
origin: opengeospatial/teamengine

public Engine(Collection<Index> indexes,
    Map<String, TEClassLoader> classLoaders, int cacheSize)
    throws Exception {
  this();
  this.classLoaders = classLoaders;
  if (cacheSize > 0) {
    this.cacheSize = cacheSize;
  }
  addFunctionLibrary(indexes);
}
origin: opengeospatial/teamengine

  loadedExecutables.put(key, executable);
} catch (OutOfMemoryError e) {
  boolean freed = freeExecutable();
  if (!freed) {
    throw e;
boolean freed = freeExecutable();
if (!freed) {
  break;
origin: org.opengis.cite.teamengine/teamengine-core

String testId = LogUtils.getTestIdFromLog(log);
TestEntry test = index.getTest(testId);
net.sf.saxon.s9api.DocumentBuilder builder = engine.getBuilder();
XdmNode paramsNode = LogUtils.getParamsFromLog(builder, log);
XdmNode contextNode = LogUtils.getContextFromLog(builder, log);
origin: opengeospatial/teamengine

XPathContext getXPathContext(TestEntry test, String sourcesName,
    XdmNode contextNode) throws Exception {
 XPathContext context = null;
 if (test.usesContext()) {
  XsltExecutable xe = engine.loadExecutable(test, sourcesName);
  Executable ex = xe.getUnderlyingCompiledStylesheet()
      .getExecutable();
  context = new XPathContextMajor(contextNode.getUnderlyingNode(), ex);
 }
 return context;
}
com.occamlab.teEngine

Most used methods

  • <init>
  • addFunctionLibrary
  • freeExecutable
  • getBuilder
  • getClassLoader
  • getFormExecutable
  • loadExecutable
  • preload
    Loads all of the XSL executables. This is a time consuming operation.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Path (java.nio.file)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Notification (javax.management)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now