JavaScript is disabled on your browser.
CharGer conceptual graph and knowledge modeling tool
Object
kb.hierarchy.TypeMatchRule
public class TypeMatchRule
extends Object
Encapsulates a single rule for type matching.
The basic rules consist of a simple rule using one of the Rule enumeration values.
Subclasses should be used to create more interesting rules.
Matching should apply the rules one by one.
Author:
Harry S. Delugach (delugach@uah.edu)
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Method Detail
toString
public String toString()
Overrides:
toString
in class Object
transformByRule
public String transformByRule(TypeHierarchy t,
String value)
Apply an arbitrary rule on the value. This method can be used and/or
overridden for subclasses to provide their own method for the rule.
Parameters:
t
- The hierarchy that needs the rule applied. Subclasses may need
to access the hierarchy.
value
- The value to be transformed in applying the rule. Note this
value may have already been altered by previous rules.
Returns:
the altered string
CharGer conceptual graph and knowledge modeling tool
Copyright 1998-2020 by Harry Delugach. All Rights Reserved. Copying is governed by the Lesser GPL license.