⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 staxextension.java

📁 Software Testing Automation Framework (STAF)的开发代码
💻 JAVA
字号:
/*****************************************************************************//* Software Testing Automation Framework (STAF)                              *//* (C) Copyright IBM Corp. 2003                                              *//*                                                                           *//* This software is licensed under the Common Public License (CPL) V1.0.     *//*****************************************************************************/package com.ibm.staf.service.stax;import java.util.HashMap;// Helper class for processing the Extension Jar Listpublic class STAXExtension{    public STAXExtension()    { /* Do Nothing */ }    // Constructor used by old EXTENSIONFILE parameter (not XML)    public STAXExtension(String jarFileName, HashMap includeElementMap)    {        fJarFileName = jarFileName;        fIncludeElementMap = includeElementMap;    }    public String getJarFileName() { return fJarFileName; }    public String getExtVersion() { return fExtVersion; }    public String getExtDescription() { return fExtDescription; }    public String getRequiredServiceVersion()    { return fRequiredServiceVersion; }    public String getRequiredMonitorVersion()    { return fRequiredMonitorVersion; }    public HashMap getParmMap() { return fParmMap; }    public HashMap getMonitorExtensionMap() { return fMonitorExtensionMap; }        // Contain any excluded elements via a <exclude-element> in an    // EXTENSIONXMLFILE    public HashMap getExcludeElementMap() { return fExcludeElementMap; }    // Contains any included elements via a <include-element> in an    // EXTENSIONXMLFILE or via a comment (#) in a EXTENSIONFILE    public HashMap getIncludeElementMap() { return fIncludeElementMap; }    // Complete map of all supported elements    public HashMap getSupportedElementMap() { return fSupportedElementMap; }    // Complete map of all unsupported elements    public HashMap getUnsupportedElementMap() { return fUnsupportedElementMap; }    public void setJarFileName(String name)    {        fJarFileName = name;    }    public void setExtVersion(String version)    {        fExtVersion = version;    }    public void setExtDescription(String description)    {        fExtDescription = description;    }    public void setRequiredServiceVersion(String version)    {        fRequiredServiceVersion = version;    }    public void setRequiredMonitorVersion(String version)    {        fRequiredMonitorVersion = version;    }    public boolean setParm(String name, String value)    {        if (fParmMap.containsKey(name))        {            return false;        }        fParmMap.put(name, value);        return true;    }    public void setMonitorExtension(String name, String className)    {        fMonitorExtensionMap.put(name, className);    }    public void setSupportedElement(String elementName, String factoryClassName)    {        fSupportedElementMap.put(elementName, factoryClassName);    }    public void setUnsupportedElement(String elementName)    {        fUnsupportedElementMap.put(elementName, null);    }    public boolean setExcludeElement(String name)    {        if (fExcludeElementMap.containsKey(name))        {            return false;        }        fExcludeElementMap.put(name, null);        return true;    }    public boolean setIncludeElement(String name)    {        if (fIncludeElementMap.containsKey(name))        {            return false;        }        fIncludeElementMap.put(name, null);        return true;    }        private String  fJarFileName = new String();    private String  fExtVersion     = new String();    private String  fExtDescription = new String();    private String  fRequiredServiceVersion = new String("<None>");    private String  fRequiredMonitorVersion = new String("<None>");    private HashMap fParmMap    = new HashMap();    private HashMap fSupportedElementMap = new HashMap();    private HashMap fUnsupportedElementMap = new HashMap();    private HashMap fIncludeElementMap = new HashMap();    private HashMap fExcludeElementMap = new HashMap();    private HashMap fMonitorExtensionMap = new HashMap();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -