/** * Create an instance of {@link DestContextType } * */ public DestContextType createDestContextType() { return new DestContextType(); }
@Override public DestContextType marshal(DestContextTypeMap map) throws Exception { DestContextType destContext = new DestContextType(); map.getMap().values().stream().forEach(destContext.getParam()::add); return destContext; } }
@Override public DestContextTypeMap unmarshal(DestContextType destContext) throws Exception { DestContextTypeMap map = new DestContextTypeMap(); map.setName(destContext.getName()); for (DestContextParamType destParam : destContext.getParam()) { map.getMap().put(destParam.getName(), destParam); } return map; }
/** * Create an instance of {@link DestContextType } * */ public DestContextType createDestContextType() { return new DestContextType(); }