当前位置: 首页>>代码示例>>Java>>正文


Java ParameterTypePassword类代码示例

本文整理汇总了Java中com.rapidminer.parameter.ParameterTypePassword的典型用法代码示例。如果您正苦于以下问题:Java ParameterTypePassword类的具体用法?Java ParameterTypePassword怎么用?Java ParameterTypePassword使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ParameterTypePassword类属于com.rapidminer.parameter包,在下文中一共展示了ParameterTypePassword类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getParameterTypes

import com.rapidminer.parameter.ParameterTypePassword; //导入依赖的package包/类
public List<ParameterType> getParameterTypes() {
    LinkedList types = new LinkedList();
    ParameterTypeFile fileType = new ParameterTypeFile("database_file", "The mdb or accdb file containing the Access database which should be written to.", false, new String[]{"mdb", "accdb"});
    fileType.setExpert(false);
    fileType.setAddAllFileExtensionsFilter(true);
    types.add(fileType);
    types.add(new ParameterTypeString("username", "The username for the Access database.", true, false));
    ParameterTypePassword type = new ParameterTypePassword("password", "The password for the database.");
    type.setExpert(false);
    types.add(type);
    types.add(new ParameterTypeString("table_name", "The name of the table within the Access database to which the data set should be written.", false, false));
    types.add(new ParameterTypeCategory("overwrite_mode", "Indicates if an existing table should be overwritten or if data should be appended.", DatabaseHandler.OVERWRITE_MODES, 0));
    types.add(new ParameterTypeCategory("access_version", "If a new database is created this specifies its format version.", new String[]{"Access 2000", "Access 2003", "Access 2007", "Access 2010"}, 3, true));
    return types;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:16,代码来源:AccessDataWriter.java

示例2: getParameterTypes

import com.rapidminer.parameter.ParameterTypePassword; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> types = new LinkedList<ParameterType>();
	types.add(new ParameterTypeFile(PARAMETER_DATABASE_FILE, "The mdb file containing the Access database which should be written to.", "mdb", false, false));
	types.add(new ParameterTypeString(PARAMETER_USERNAME, "The username for the Access database.", true, false));
	ParameterTypePassword type = new ParameterTypePassword(PARAMETER_PASSWORD, "The password for the database.");
	type.setExpert(false);
	types.add(type);
	types.add(new ParameterTypeString(PARAMETER_TABLE_NAME, "The name of the table within the Access database to which the data set should be written.", false, false));
	types.add(new ParameterTypeCategory(PARAMETER_OVERWRITE_MODE, "Indicates if an existing table should be overwritten or if data should be appended.",
			DatabaseHandler.OVERWRITE_MODES, DatabaseHandler.OVERWRITE_MODE_NONE));
	return types;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:14,代码来源:AccessDataWriter.java


注:本文中的com.rapidminer.parameter.ParameterTypePassword类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。