/** * Create an instance of {@link DestContextsType } * */ public DestContextsType createDestContextsType() { return new DestContextsType(); }
@Override public DestContextsType marshal(DestContextsTypeMap map) throws Exception { DestContextsType destContexts = new DestContextsType(); map.getMap().values().stream().forEach(destContexts.getDestContext()::add); return destContexts; } }
@Override public DestContextsTypeMap unmarshal(DestContextsType destContexts) throws Exception { DestContextsTypeMap map = new DestContextsTypeMap(); for (DestContextTypeMap destContext : destContexts.getDestContext()) { map.getMap().put(destContext.getName(), destContext); } return map; }
/** * Create an instance of {@link DestContextsType } * */ public DestContextsType createDestContextsType() { return new DestContextsType(); }