All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.basex.query.scope.AModule Maven / Gradle / Ivy

There is a newer version: 11.3
Show newest version
package org.basex.query.scope;

import org.basex.query.*;
import org.basex.query.func.*;
import org.basex.query.var.*;
import org.basex.util.hash.*;

/**
 * An XQuery module.
 *
 * @author BaseX Team 2005-22, BSD License
 * @author Leo Woerteler
 */
public abstract class AModule extends StaticScope {
  /** User-defined functions. */
  public TokenObjMap funcs;
  /** Static variables. */
  public TokenObjMap vars;
  /** URIs of modules. */
  public TokenSet modules;
  /** Namespaces. */
  public TokenMap namespaces;

  /**
   * Constructor.
   * @param sc static context
   */
  AModule(final StaticContext sc) {
    super(sc);
  }

  /**
   * Assigns module properties.
   * @param f user-defined functions
   * @param v static variables
   * @param m URIs of modules
   * @param n namespaces
   * @param d documentation string
   */
  public void set(final TokenObjMap f, final TokenObjMap v,
      final TokenSet m, final TokenMap n, final String d) {
    funcs = f;
    vars = v;
    modules = m;
    namespaces = n;
    doc(d);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy