Exemplo n.º 1
0
 public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {
   if (context.get(IN_NESTED) == null) {
     context.put(IN_NESTED, true);
     try {
       return super.unmarshal(reader, context);
     } finally {
       context.put(IN_NESTED, false);
     }
   } else return leafLabelConverter.unmarshal(reader, context);
 }
Exemplo n.º 2
0
 public void marshal(
     Object source, HierarchicalStreamWriter writer, MarshallingContext context) {
   if (context.get(IN_NESTED) == null) {
     context.put(IN_NESTED, true);
     try {
       super.marshal(source, writer, context);
     } finally {
       context.put(IN_NESTED, false);
     }
   } else leafLabelConverter.marshal(source, writer, context);
 }