/** * Convert 200502 AcceptType with 200508 WS-Addressing namespace to internal form. * * @param exposed (may be <code>null</code>) * @return converted (<code>null</code> if internal is <code>null</code>) */ public static AcceptType convert(org.apache.cxf.ws.rm.v200502wsa15.AcceptType exposed) { if (exposed == null) { return null; } AcceptType internal = new AcceptType(); internal.setAcksTo(exposed.getAcksTo()); return internal; }
/** * Convert 200502 AcceptType with 200408 WS-Addressing namespace to internal form. * * @param exposed (may be <code>null</code>) * @return converted (<code>null</code> if internal is <code>null</code>) */ public static AcceptType convert(org.apache.cxf.ws.rm.v200502.AcceptType exposed) { if (exposed == null) { return null; } AcceptType internal = new AcceptType(); internal.setAcksTo( org.apache.cxf.ws.addressing.VersionTransformer.convert(exposed.getAcksTo())); return internal; }
/** * Convert wsrm:AcceptType to 200502 version with 200408 WS-Addressing namespace. * * @param internal (may be <code>null</code>) * @return converted (<code>null</code> if internal is <code>null</code>) */ private static org.apache.cxf.ws.rm.v200502.AcceptType convert200502(AcceptType internal) { if (internal == null) { return null; } org.apache.cxf.ws.rm.v200502.AcceptType exposed = RMUtils.getWSRM200502Factory().createAcceptType(); exposed.setAcksTo( org.apache.cxf.ws.addressing.VersionTransformer.convert(internal.getAcksTo())); addAll(internal.getAny(), exposed.getAny()); putAll(internal.getOtherAttributes(), exposed.getOtherAttributes()); return exposed; }
/** * Convert wsrm:AcceptType to 200502 version with 200508 WS-Addressing namespace. * * @param internal (may be <code>null</code>) * @return converted (<code>null</code> if internal is <code>null</code>) */ private static org.apache.cxf.ws.rm.v200502wsa15.AcceptType convert200502wsa15( AcceptType internal) { if (internal == null) { return null; } org.apache.cxf.ws.rm.v200502wsa15.AcceptType exposed = RMUtils.getWSRM200502WSA200508Factory().createAcceptType(); exposed.setAcksTo(internal.getAcksTo()); addAll(internal.getAny(), exposed.getAny()); putAll(internal.getOtherAttributes(), exposed.getOtherAttributes()); return exposed; }