org.knime.base.node.mine.decisiontree2
Enum PMMLPredicate.PMMLPredicates

java.lang.Object
  extended by java.lang.Enum<PMMLPredicate.PMMLPredicates>
      extended by org.knime.base.node.mine.decisiontree2.PMMLPredicate.PMMLPredicates
All Implemented Interfaces:
Serializable, Comparable<PMMLPredicate.PMMLPredicates>
Enclosing class:
PMMLPredicate

static enum PMMLPredicate.PMMLPredicates
extends Enum<PMMLPredicate.PMMLPredicates>

Enumeration of all subclasses of PMMLPredicate. New implementations must be added here for being able to instantiate the correct subclass when loading from predictor params.

Author:
Dominik Morent, KNIME.com, Zurich, Switzerland

Enum Constant Summary
COMPOUND_PREDICATE
           
FALSE_PREDICATE
           
SIMPLE_PREDICATE
           
SIMPLE_SET_PREDICATE
           
TRUE_PREDICATE
           
 
Method Summary
static Class<? extends PMMLPredicate> get(String type)
          Returns the corresponding class for the passed predicate type.
 Class<? extends PMMLPredicate> getPredClass()
          Returns the predicate class.
 String toString()
          
static PMMLPredicate.PMMLPredicates valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PMMLPredicate.PMMLPredicates[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SIMPLE_PREDICATE

public static final PMMLPredicate.PMMLPredicates SIMPLE_PREDICATE
See Also:
PMMLSimplePredicate

SIMPLE_SET_PREDICATE

public static final PMMLPredicate.PMMLPredicates SIMPLE_SET_PREDICATE
See Also:
PMMLSimpleSetPredicate

COMPOUND_PREDICATE

public static final PMMLPredicate.PMMLPredicates COMPOUND_PREDICATE
See Also:
PMMLCompoundPredicate

TRUE_PREDICATE

public static final PMMLPredicate.PMMLPredicates TRUE_PREDICATE
See Also:
PMMLTruePredicate

FALSE_PREDICATE

public static final PMMLPredicate.PMMLPredicates FALSE_PREDICATE
See Also:
PMMLFalsePredicate
Method Detail

values

public static PMMLPredicate.PMMLPredicates[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PMMLPredicate.PMMLPredicates c : PMMLPredicate.PMMLPredicates.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PMMLPredicate.PMMLPredicates valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

public String toString()

Overrides:
toString in class Enum<PMMLPredicate.PMMLPredicates>

getPredClass

public Class<? extends PMMLPredicate> getPredClass()
Returns the predicate class.

Returns:
the class

get

public static Class<? extends PMMLPredicate> get(String type)
                                          throws InstantiationException
Returns the corresponding class for the passed predicate type.

Parameters:
type - the predicate type to find the class for
Returns:
the predicate class
Throws:
InstantiationException - - if no such PMML predicate exists


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.