01: package de.schlund.pfixcore.oxm;
02:
03: import java.util.Date;
04:
05: import de.schlund.pfixcore.beans.Alias;
06: import de.schlund.pfixcore.oxm.impl.annotation.DateSerializer;
07: import de.schlund.pfixcore.oxm.impl.annotation.ForceElementSerializer;
08:
09: /**
10: * Simple test bean that tests the
11: * ForceElementSerializer
12: *
13: * @author Stephan Schmidt <schst@stubbles.net>
14: */
15: public class ForceElementTestBean {
16:
17: @ForceElementSerializer
18: public String foo = "foo";
19:
20: @ForceElementSerializer
21: @DateSerializer("yyyy-MM-dd HH:mm:ss")
22: @Alias("openingDate")
23: public Date date = new Date(1204479792269l);
24:
25: @ForceElementSerializer
26: @Alias("baz")
27: public String getBar() {
28: return "bar";
29: }
30: }
|