java.lang.Object
com.further.jaudit.ValueGettingVisitor
- All Implemented Interfaces:
- SourceMetricVisitor
- public class ValueGettingVisitor
- extends java.lang.Object
- implements SourceMetricVisitor
The value getting visitor is the exact opposite of the value
setting visitor. This class performs the complementary operation
to setting the value, which is getting the value as a string. This
handles the formatting issues related to the concrete subclasses
of SourceMetric.
- Since:
- 1.0
- Version:
- $Id: ValueGettingVisitor.java,v 1.1.1.1 2001/10/11 16:42:08 krisw Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stringValue
private java.lang.String stringValue
- The formatted string version of the metric's value
ValueGettingVisitor
public ValueGettingVisitor()
- Create a new ValueGettingVisitor. The constructor takes
no arguments, the object is stateless until it completes
its visit.
getStringValue
public java.lang.String getStringValue()
- Get the string value of the metric, after calling metric.accept(this).
This string value will be formatted in a fashion that it can be parsed
by the ValueSettingVisitor
visitMetric
public void visitMetric(BooleanMetric booleanMetric)
- Visit the given boolean source metric.
- Specified by:
visitMetric in interface SourceMetricVisitor
visitMetric
public void visitMetric(FixedRangeMetric fixedRangeMetric)
- Visit the given fixed range metric.
- Specified by:
visitMetric in interface SourceMetricVisitor
visitMetric
public void visitMetric(EnumeratedTypeMetric enumeratedTypeMetric)
- Visit the enumerated type metric.
- Specified by:
visitMetric in interface SourceMetricVisitor