/** * Convert 200502 Expires 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 OfferType convert(org.apache.cxf.ws.rm.v200502wsa15.OfferType exposed) { if (exposed == null) { return null; } OfferType internal = new OfferType(); internal.setExpires(convert(exposed.getExpires())); internal.setIdentifier(convert(exposed.getIdentifier())); return internal; }
/** * Convert wsrm:Offer 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.OfferType convert200502(OfferType internal) { if (internal == null) { return null; } org.apache.cxf.ws.rm.v200502.OfferType exposed = RMUtils.getWSRM200502Factory().createOfferType(); exposed.setExpires(convert200502(internal.getExpires())); exposed.setIdentifier(convert200502(internal.getIdentifier())); addAll(internal.getAny(), exposed.getAny()); putAll(internal.getOtherAttributes(), exposed.getOtherAttributes()); return exposed; }