/** * Convert 200502 wsrm:CreateSequenceResponseType with 200408 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 CreateSequenceResponseType convert( org.apache.cxf.ws.rm.v200502.CreateSequenceResponseType exposed) { if (exposed == null) { return null; } CreateSequenceResponseType internal = new CreateSequenceResponseType(); internal.setAccept(convert(exposed.getAccept())); internal.setExpires(convert(exposed.getExpires())); internal.setIdentifier(convert(exposed.getIdentifier())); addAll(exposed.getAny(), internal.getAny()); putAll(exposed.getOtherAttributes(), internal.getOtherAttributes()); return internal; }
/** * Convert wsrm:CreateSequenceResponseType to 200502 version with 200408 WS-Addressing namespace. * * @param internal (non-<code>null</code>) * @return converted */ public static org.apache.cxf.ws.rm.v200502.CreateSequenceResponseType convert200502( CreateSequenceResponseType internal) { org.apache.cxf.ws.rm.v200502.CreateSequenceResponseType exposed = RMUtils.getWSRM200502Factory().createCreateSequenceResponseType(); exposed.setIdentifier(convert200502(internal.getIdentifier())); exposed.setExpires(convert200502(internal.getExpires())); exposed.setAccept(convert200502(internal.getAccept())); addAll(internal.getAny(), exposed.getAny()); putAll(internal.getOtherAttributes(), exposed.getOtherAttributes()); return exposed; }