/* * Copyright 2013, The Sporting Exchange Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.betfair.cougar.baseline; import java.util.LinkedHashMap; import java.util.Map; import com.betfair.baseline.v2.to.ComplexMapOperationResponseObjectDelegate; import com.betfair.baseline.v2.to.SomeComplexObject; import com.betfair.baseline.v2.to.SomeComplexObjectDelegate; public class ComplexMapOperationResponseObjectDelegateImpl implements ComplexMapOperationResponseObjectDelegate { public Map<String, SomeComplexObject> getResponseMap() { SomeComplexObjectDelegate delegate1 = new SomeComplexObjectDelegateImpl("delegate1"); SomeComplexObjectDelegate delegate2 = new SomeComplexObjectDelegateImpl("delegate2"); SomeComplexObjectDelegate delegate3 = new SomeComplexObjectDelegateImpl("delegate3"); SomeComplexObject complex1 = new SomeComplexObject(delegate1); SomeComplexObject complex2 = new SomeComplexObject(delegate2); SomeComplexObject complex3 = new SomeComplexObject(delegate3); Map<String , SomeComplexObject> responseMap = new LinkedHashMap<String, SomeComplexObject>(); responseMap.put("object1", complex1); responseMap.put("object2", complex2); responseMap.put("object3", complex3); return responseMap; } public void setResponseMap(Map<String, SomeComplexObject> responseMap) { // DO Nothing } }