Method: LoadResourceResponse(Resource, Exception)

1: /*******************************************************************************
2: * Copyright (c) 2013 RCP Vision (http://www.rcp-vision.com) and others.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * Lorenzo Bettini - initial API and implementation
10: *******************************************************************************/
11: package org.eclipse.emf.parsley.resource;
12:
13: import org.eclipse.emf.ecore.resource.Resource;
14:
15: /**
16: * @author Lorenzo Bettini
17: *
18: */
19: public class LoadResourceResponse {
20:
21:         protected Resource resource;
22:
23:         protected Exception exception;
24:
25:         public LoadResourceResponse(Resource resource, Exception exception) {
26:                 super();
27:                 this.resource = resource;
28:                 this.exception = exception;
29:         }
30:
31:         public Resource getResource() {
32:                 return resource;
33:         }
34:
35:         public Exception getException() {
36:                 return exception;
37:         }
38:
39: }