Building Parsers with Java

sjm.examples.coffee
Class PriceHelper

java.lang.Object
  |
  +--sjm.examples.coffee.Helper
        |
        +--sjm.examples.coffee.PriceHelper

public class PriceHelper
extends Helper

This helper sets a target coffee object's price attribute.


Constructor Summary
PriceHelper()
           
 
Method Summary
 void characters(java.lang.String s, java.lang.Object target)
          Sets a target coffee object's price attribute to the double value of the given string.
 
Methods inherited from class sjm.examples.coffee.Helper
startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriceHelper

public PriceHelper()
Method Detail

characters

public void characters(java.lang.String s,
                       java.lang.Object target)
Sets a target coffee object's price attribute to the double value of the given string. The target coffee is the last coffee in a Vector of coffees.
Overrides:
characters in class Helper

by Steve Metsker