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

📄 plugindescription.java

📁 为了下东西 随便发了个 datamining 的源代码
💻 JAVA
字号:
package eti.bi.alphaminer.core.Plugin;

import java.util.jar.JarFile;

public class PluginDescription {
	/**
	 * The jar archive of the plugin 
	 */
	JarFile archive;
	
	/** The name of the plugin. */
	String name;
	
	/**	The description of this plugin	*/
	String description;
	
	/** The version of the plugin. */
	String version;
	
	/** The vendor of the plugin. */
	String vendor;
	
	/** The url for this plugin (in WWW). */
	String url;
	
	/** The Alphaminer version which is needed for this plugin. */
	String neededAlphaMinerVersion;
	
	/**	The path of Locale directory. */
	String localepath;
	
	public boolean isValid() {
		if(name==null||archive==null) {
			return false;
		}
		return true;
	}
	
	/**
	 * @return Return true if the pluginDescription equal this
	 * */
	public boolean equal(PluginDescription pluginDescription){
		if(pluginDescription==null){
			return false;
		}
		if(!pluginDescription.archive.getName().equals(archive.getName())){
			return false;
		}
		if(!pluginDescription.name.equals(name)){
			return false;
		}
		if(!pluginDescription.version.equals(version)){
			return false;
		}
		if(!pluginDescription.vendor.equals(vendor)){
			return false;
		}
		if(!pluginDescription.url.equals(url)){
			return false;
		}
		if(!pluginDescription.neededAlphaMinerVersion.equals(neededAlphaMinerVersion)){
			return false;
		}
		if(!pluginDescription.localepath.equals(localepath)){
			return false;
		}
		if(!pluginDescription.description.equals(description)){
			return false;
		}
		return true;
	}
	
	/**
	 * @return Return true if the pluginDescription's Dependency equal this Dependency
	 * */
	public boolean equal(Dependency dependency){
		if(dependency==null){
			return false;
		}
		if(!dependency.name.equals(name)){
			return false;
		}
		if(!dependency.version.equals(version)){
			return false;
		}
		return true;
	}
}

⌨️ 快捷键说明

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