Exemplo n.º 1
0
 private OnWire _adaptM(XMLSerializer serializer, InMemory v) throws MarshalException {
   XmlAdapter<OnWire, InMemory> a = serializer.getAdapter(adapter);
   try {
     return a.marshal(v);
   } catch (Exception e) {
     serializer.handleError(e, v, null);
     throw new MarshalException(e);
   }
 }
Exemplo n.º 2
0
 private @NotNull InMemory adaptU(Unmarshaller _u, OnWire v) throws JAXBException {
   UnmarshallerImpl u = (UnmarshallerImpl) _u;
   XmlAdapter<OnWire, InMemory> a = u.coordinator.getAdapter(adapter);
   u.coordinator.pushCoordinator();
   try {
     return a.unmarshal(v);
   } catch (Exception e) {
     throw new UnmarshalException(e);
   } finally {
     u.coordinator.popCoordinator();
   }
 }
 public void setAdapter(XmlAdapter adapter) {
   setAdapter(adapter.getClass(), adapter);
 }