Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Collections;
import java.util.HashMap;

import java.util.Map;

import javax.xml.namespace.QName;

public class Main {
    private static Map<QName, Object> sGlobalVariables = Collections.synchronizedMap(new HashMap<QName, Object>());

    /**
     * Registers a global variable. Global variables are added to the list of
     * variable of a webtest at the webtest start.
     * @param namespaceURI the namespace URI of the function to be registered (<code>null</code>
     *            if none).
     * @param localName the non-prefixed local portion of the function name to
     *            be registered
     * @param value the variable to be registered
     */
    public static void registerGlobalVariable(final String namespaceURI, final String localName,
            final Object value) {
        sGlobalVariables.put(new QName(namespaceURI, localName), value);
    }
}