コード例 #1
0
 /**
  * Convert wsrm:Expires 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.Expires convert200502(Expires internal) {
   if (internal == null) {
     return null;
   }
   org.apache.cxf.ws.rm.v200502.Expires exposed = RMUtils.getWSRM200502Factory().createExpires();
   exposed.setValue(internal.getValue());
   putAll(internal.getOtherAttributes(), exposed.getOtherAttributes());
   return exposed;
 }
コード例 #2
0
 /**
  * Convert 200502 Expires 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 Expires convert(org.apache.cxf.ws.rm.v200502.Expires exposed) {
   if (exposed == null) {
     return null;
   }
   Expires internal = new Expires();
   internal.setValue(exposed.getValue());
   return internal;
 }