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


Java OperatorDocumentation类代码示例

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


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

示例1: OperatorDescription

import com.rapidminer.tools.documentation.OperatorDocumentation; //导入依赖的package包/类
/**
 * Creates an operator description with the given fields.
 *
 * @deprecated This constructor cannot provide an internationalization mechanism since
 *             description is not taken from operator documentation bundle.
 */
@SuppressWarnings("unchecked")
@Deprecated
public OperatorDescription(final ClassLoader classLoader, final String key, final String name, final String className,
		final String shortDescription, final String longDescription, final String groupName, final String iconName,
		final String deprecationInfo, final Plugin provider) throws ClassNotFoundException {
	this.key = key;

	this.clazz = (Class<? extends Operator>) Class.forName(className, true, classLoader);
	this.documentation = new OperatorDocumentation(name);
	this.documentation.setSynopsis(shortDescription);
	this.documentation.setDocumentation(longDescription);
	this.documentation.setDeprecation(deprecationInfo);

	this.fullyQualifiedGroupKey = groupName;

	this.provider = provider;

	setIconName(iconName);
	updateIcons();
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:27,代码来源:OperatorDescription.java

示例2: OperatorDescription

import com.rapidminer.tools.documentation.OperatorDocumentation; //导入依赖的package包/类
/**
 * Parses an operator in the RM 5.0 xml standard for operator definitions.
 * In contrast to earlier versions, the {@link OperatorDescription} does not
 * register themselves on the OperatorTree. This is now handled centralized by the {@link OperatorService}.
 * 
 * @param bundle
 */
@SuppressWarnings("unchecked")
public OperatorDescription(String fullyQualifiedGroupKey, Element element, ClassLoader classLoader, Plugin provider, OperatorDocBundle bundle) throws ClassNotFoundException, XMLException {
    this.provider = provider;
    this.fullyQualifiedGroupKey = fullyQualifiedGroupKey;

    key = XMLTools.getTagContents(element, "key", true);
    setIconName(XMLTools.getTagContents(element, "icon"));

    Class<?> generatedClass = Class.forName(XMLTools.getTagContents(element, "class", true).trim(), true, classLoader);
    this.clazz = (Class<? extends Operator>) generatedClass;

    this.documentation = (OperatorDocumentation) bundle.getObject("operator." + key);
    if (documentation.getName().equals("")) {
        documentation.setName(key);
        documentation.setDocumentation("Operator's description is missing in referenced OperatorDoc.");
    }

    NodeList children = element.getChildNodes();
    for (int i = 0; i < children.getLength(); i++) {
        Node child = children.item(i);
        if (child instanceof Element && ((Element) child).getTagName().equals("replaces")) {
            setIsReplacementFor(((Element) child).getTextContent());
        }
    }
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:33,代码来源:OperatorDescription.java

示例3: getLongDescriptionHTML

import com.rapidminer.tools.documentation.OperatorDocumentation; //导入依赖的package包/类
public String getLongDescriptionHTML() {
	OperatorDocumentation operatorDocumentation = getOperatorDocumentation();
	if (operatorDocumentation.getDocumentation() != null) {
		return operatorDocumentation.getDocumentation();
	}
	if (operatorDocumentation.getSynopsis() != null) {
		return operatorDocumentation.getSynopsis();
	}
	return "";
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:11,代码来源:OperatorDescription.java

示例4: addParentFolderOperatorTags

import com.rapidminer.tools.documentation.OperatorDocumentation; //导入依赖的package包/类
/**
 * Adds parent folder name of each operator to the operator tags.
 */
private static void addParentFolderOperatorTags() {
	for (String operatorKey : getOperatorKeys()) {
		OperatorDescription operatorDescription = getOperatorDescription(operatorKey);
		if (operatorDescription == null) {
			continue;
		}
		if (ProcessRootOperator.class.equals(operatorDescription.getOperatorClass())) {
			// no tags for the root process
			continue;
		}
		GroupTree subTree = groupTreeRoot.findGroup(operatorDescription.getGroup());
		if (subTree == null) {
			continue;
		}
		String groupName = subTree.getName();
		if (groupName != null && !groupName.trim().isEmpty()) {
			if (!operatorDescription.getTags().contains(groupName.trim())) {
				OperatorDocumentation operatorDocumentation = operatorDescription.getOperatorDocumentation();
				ArrayList<String> updatedTags = new ArrayList<>(operatorDocumentation.getTags().size() + 1);
				updatedTags.addAll(operatorDocumentation.getTags());
				updatedTags.add(groupName.trim());
				operatorDocumentation.setTags(updatedTags);
			}
		}
	}
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:30,代码来源:OperatorService.java

示例5: getLongDescriptionHTML

import com.rapidminer.tools.documentation.OperatorDocumentation; //导入依赖的package包/类
public String getLongDescriptionHTML() {
    OperatorDocumentation operatorDocumentation = getOperatorDocumentation();
    if (operatorDocumentation.getDocumentation() != null)
        return operatorDocumentation.getDocumentation();
    if (operatorDocumentation.getSynopsis() != null)
        return operatorDocumentation.getSynopsis();
    return "";
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:9,代码来源:OperatorDescription.java

示例6: getOperatorDocumentation

import com.rapidminer.tools.documentation.OperatorDocumentation; //导入依赖的package包/类
public OperatorDocumentation getOperatorDocumentation() {
	return documentation;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:4,代码来源:OperatorDescription.java

示例7: getOperatorDocumentation

import com.rapidminer.tools.documentation.OperatorDocumentation; //导入依赖的package包/类
public OperatorDocumentation getOperatorDocumentation() {
    return documentation;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:4,代码来源:OperatorDescription.java

示例8: getOperatorDocumentation

import com.rapidminer.tools.documentation.OperatorDocumentation; //导入依赖的package包/类
/**
 * This method has to return a {@link OperatorDocumentation} for the given key. The result must
 * be not null! If no documentation exists, use a default one, with just the key as name.
 */
public OperatorDocumentation getOperatorDocumentation(String operatorKey);
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:6,代码来源:OperatorLibrary.java

示例9: getOperatorDocumentation

import com.rapidminer.tools.documentation.OperatorDocumentation; //导入依赖的package包/类
/**
 * This method has to return a {@link OperatorDocumentation} for the given key.
 * The result must be not null! If no documentation exists, use a default one,
 * with just the key as name.
 */
public OperatorDocumentation getOperatorDocumentation(String operatorKey);
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:7,代码来源:OperatorLibrary.java


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