KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thoughtworks > acceptance > someobjects > ZConverter


1 package com.thoughtworks.acceptance.someobjects;
2
3 import com.thoughtworks.xstream.converters.basic.AbstractBasicConverter;
4
5 public class ZConverter extends AbstractBasicConverter {
6
7     public boolean canConvert(Class JavaDoc type) {
8         return type.equals(Z.class);
9     }
10
11     protected Object JavaDoc fromString(String JavaDoc str) {
12         return new Z("z");
13     }
14
15 }
16
Popular Tags