Building Parsers with Java

sjm.examples.coffee
Class CountryHelper

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

public class CountryHelper
extends Helper

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


Constructor Summary
CountryHelper()
           
 
Method Summary
 void characters(java.lang.String s, java.lang.Object target)
          Sets a target coffee object's country attribute to 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

CountryHelper

public CountryHelper()
Method Detail

characters

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

by Steve Metsker