Main Page | Class Hierarchy | Class List | Class Members

kddml.Operators.Preprocessing.PP_REWRITING_SETTINGS Class Reference

Inheritance diagram for kddml.Operators.Preprocessing.PP_REWRITING_SETTINGS:

kddml.Operators.Preprocessing.PPAlgorithmLoaderSettings kddml.Operators.AlgorithmLoaderSettings kddml.Operators.OperatorSettings List of all members.

Public Member Functions

String[] listAttributes ()
Boolean isRequired (String attribute_name)
Boolean isFixed (String attribute_name)
String getDefaultAttributeValue (String attribute_name)
KDDMLScalarType getAttributeType (String attribute_name)
void checkAttributes (Hashtable< String, KDDMLScalarManager > attributes) throws SettingsException

Detailed Description

The operator rewrites the values of an input table attribute. It is a construct based on regular expressions that are a powerful way to specify string matching and the substitution of some pattern with new values. There are many methods for attribute rewriting, each of them expressed by using the XML element ALGORITHM.
Attributes:

Title: KDDML

Description: Knowledge Discovery in Database Environment

Copyright: Copyright (c) 2003-2005

Company: Universita' di Pisa - Dipartimento di Informatica

Author:
Andrea Romei (romei@di.unipi.it)

Sandra Zimei

Version:
2.0.16


Member Function Documentation

String [] kddml.Operators.Preprocessing.PP_REWRITING_SETTINGS.listAttributes  )  [virtual]
 

Returns the list of attributes belonging to the operator specification.

Returns:
String[]

Reimplemented from kddml.Operators.AlgorithmLoaderSettings.

Boolean kddml.Operators.Preprocessing.PP_REWRITING_SETTINGS.isRequired String  attribute_name  )  [virtual]
 

Returns true if a given attribute is required in the operator specification. Returns false if the attribute is implied or fixed. Finally, the method returns null if the attribute name do not belong to the list of attributes returned by the method listAttributes().

Parameters:
attribute_name String
Returns:
boolean

Reimplemented from kddml.Operators.AlgorithmLoaderSettings.

Boolean kddml.Operators.Preprocessing.PP_REWRITING_SETTINGS.isFixed String  attribute_name  )  [virtual]
 

Returns true if a given attribute is fixed (i.e. constant) in the operator specification. Returns false if the attribute is implied or required. Finally, the method returns null if the attribute name do not belong to the list of attributes returned by the method listAttributes().

Parameters:
attribute_name String
Returns:
boolean

Reimplemented from kddml.Operators.AlgorithmLoaderSettings.

String kddml.Operators.Preprocessing.PP_REWRITING_SETTINGS.getDefaultAttributeValue String  attribute_name  )  [virtual]
 

Returns the default value related to a given input attribute. Returns null if the attribute do not admit a default value. An attribute can be given any legal value as a default. The attribute value is not required on each element in the document, but if it is not present, it will appear to be the specified default. If the attribute is implied and it is not included in the element, the operator assumes that this is the attribute value.

Parameters:
attribute_name String
Returns:
String

Reimplemented from kddml.Operators.AlgorithmLoaderSettings.

KDDMLScalarType kddml.Operators.Preprocessing.PP_REWRITING_SETTINGS.getAttributeType String  attribute_name  )  [virtual]
 

Returns the type related to a given input attribute. KDDML supports the attribute types as expressed by the class KDDMLScalarType. Returns null if the attribute name do no belong to the list of attributes returned by the method listAttributes().

Parameters:
attribute_name String
Returns:
KDDMLScalarType

Reimplemented from kddml.Operators.AlgorithmLoaderSettings.

void kddml.Operators.Preprocessing.PP_REWRITING_SETTINGS.checkAttributes Hashtable< String, KDDMLScalarManager attributes  )  throws SettingsException
 

Overloading of super.checkAttributes(Hashtable attributes).
Performs a correctness control about the input attributes of the operator (e.g., check that the level attribute of the PP_HIERARCHY_DISCRETIZATION> operator is a positive integer number. Attributes are given as hash-table where the key of the hashtable is the XML attribute name and the value of the hashtable is the XML attribute value as KDDMLScalarManager. The method throws an exception if an error is occurs. More precisely, for each attribute returned by listAttributes(), the method checks if the hashtable contains the attribute. If this is the case, then a type checking is performed on attribute value. Otherwise, if the attribute is required (i.e. the method isRequired() returns true), then the method throws an exception.

Parameters:
attributes Hashtable the input attributes with the name as key and the value as KDDMLScalarManager object.
Exceptions:
SettingsException if a type checking error occurs or the attribute is required but the hashtable do not contains it.

Reimplemented from kddml.Operators.AlgorithmLoaderSettings.


Generated on Thu Feb 23 13:04:54 2006 for kddml by  doxygen 1.4.3