com.rapidminer.io.process.rules
Class AbstractParseRule

java.lang.Object
  extended by com.rapidminer.io.process.rules.AbstractParseRule
All Implemented Interfaces:
ParseRule
Direct Known Subclasses:
AbstractConditionedParseRule, DeleteAfterAutoWireRule, ExchangeSubprocessesRule, RenamePlotterParametersRule, ReplaceIOContainerWriter, WireAllOperators

public abstract class AbstractParseRule
extends java.lang.Object
implements ParseRule

This superclass of all parse rules retrieves the operatorType affected by this rule. Subclasses might access them by using the operatorTypeName.

Author:
Sebastian Land

Field Summary
protected  VersionNumber appliesBefore
           
protected  VersionNumber appliesSince
           
protected  java.lang.String operatorTypeName
           
 
Constructor Summary
AbstractParseRule(java.lang.String operatorTypeName, org.w3c.dom.Element element)
           
 
Method Summary
protected abstract  java.lang.String apply(Operator operator, java.lang.String operatorTypeName, XMLImporter importer)
           
 java.lang.String apply(Operator operator, VersionNumber processVersion, XMLImporter importer)
          Applies the rule and possibly returns a message describing what has been modified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operatorTypeName

protected java.lang.String operatorTypeName

appliesBefore

protected VersionNumber appliesBefore

appliesSince

protected VersionNumber appliesSince
Constructor Detail

AbstractParseRule

public AbstractParseRule(java.lang.String operatorTypeName,
                         org.w3c.dom.Element element)
                  throws XMLException
Throws:
XMLException
Method Detail

apply

public java.lang.String apply(Operator operator,
                              VersionNumber processVersion,
                              XMLImporter importer)
Description copied from interface: ParseRule
Applies the rule and possibly returns a message describing what has been modified. This takes only place if the rule applies as well to the operator as to the version of the process we are importing or the given processVersion is null. Null is returned if the rule did not apply.

Specified by:
apply in interface ParseRule

apply

protected abstract java.lang.String apply(Operator operator,
                                          java.lang.String operatorTypeName,
                                          XMLImporter importer)


Copyright © 2001-2009 by Rapid-I