/** * Convert CreateSequenceType to 200502 version with 200508 WS-Addressing namespace. * * @param internal (non-<code>null</code>) * @return converted */ public static org.apache.cxf.ws.rm.v200502wsa15.CreateSequenceType convert200502wsa15( CreateSequenceType internal) { org.apache.cxf.ws.rm.v200502wsa15.CreateSequenceType exposed = RMUtils.getWSRM200502WSA200508Factory().createCreateSequenceType(); exposed.setAcksTo(internal.getAcksTo()); exposed.setExpires(convert200502wsa15(internal.getExpires())); exposed.setOffer(convert200502wsa15(internal.getOffer())); addAll(internal.getAny(), exposed.getAny()); putAll(internal.getOtherAttributes(), exposed.getOtherAttributes()); return exposed; }
/** * Convert 200502 wsrm:CreateSequenceType with 200508 WS-Addressing namespace to internal form. * * @param exposed (may be <code>null</code>) * @return converted (<code>null</code> if exposed is <code>null</code>) */ public static CreateSequenceType convert( org.apache.cxf.ws.rm.v200502wsa15.CreateSequenceType exposed) { if (exposed == null) { return null; } CreateSequenceType internal = new CreateSequenceType(); internal.setAcksTo(exposed.getAcksTo()); internal.setExpires(convert(exposed.getExpires())); internal.setOffer(convert(exposed.getOffer())); addAll(exposed.getAny(), internal.getAny()); putAll(exposed.getOtherAttributes(), internal.getOtherAttributes()); return internal; }