Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.further.jaudit
Class ValueGettingVisitor  view ValueGettingVisitor download ValueGettingVisitor.java

java.lang.Object
  extended bycom.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 $

Field Summary
private  java.lang.String stringValue
          The formatted string version of the metric's value
 
Constructor Summary
ValueGettingVisitor()
          Create a new ValueGettingVisitor.
 
Method Summary
 java.lang.String getStringValue()
          Get the string value of the metric, after calling metric.accept(this).
 void visitMetric(BooleanMetric booleanMetric)
          Visit the given boolean source metric.
 void visitMetric(EnumeratedTypeMetric enumeratedTypeMetric)
          Visit the enumerated type metric.
 void visitMetric(FixedRangeMetric fixedRangeMetric)
          Visit the given fixed range metric.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stringValue

private java.lang.String stringValue
The formatted string version of the metric's value

Constructor Detail

ValueGettingVisitor

public ValueGettingVisitor()
Create a new ValueGettingVisitor. The constructor takes no arguments, the object is stateless until it completes its visit.

Method Detail

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