01: package de.schlund.pfixcore.oxm;
02:
03: import de.schlund.pfixcore.oxm.impl.annotation.XMLFragmentSerializer;
04:
05: /**
06: * Simple test bean to test the serialization
07: * of XML fragments
08: *
09: * @author Stephan Schmidt <schst@stubbles.net>
10: */
11: public class FragmentBean {
12:
13: private String myFragment = "<foo><bar baz=\"true\"/>character data</foo>";
14:
15: @XMLFragmentSerializer
16: public String anotherFragment = "This is a <real>fragment</real>.";
17:
18: @XMLFragmentSerializer
19: public String thirdFragment = "<foo/><bar>baz</bar>";
20:
21: @XMLFragmentSerializer
22: public String getMyFragment() {
23: return myFragment;
24: }
25: }
|