1
2
3
4 package org.rcfaces.core.internal.contentStorage;
5
6 import org.rcfaces.core.internal.contentAccessor.IGeneratedResourceInformation;
7 import org.rcfaces.core.internal.contentAccessor.IGenerationResourceInformation;
8 import org.rcfaces.core.lang.IAdaptable;
9 import org.rcfaces.core.model.IContentModel;
10
11
12
13
14
15
16 public class AdaptationParameters implements IAdaptable {
17
18 private final IContentModel contentModel;
19
20 private final IGenerationResourceInformation generationResourceInformation;
21
22 private final IGeneratedResourceInformation generatedResourceInformation;
23
24 public AdaptationParameters(IContentModel contentModel,
25 IGenerationResourceInformation generationResourceInformation,
26 IGeneratedResourceInformation generatedResourceInformation) {
27 super();
28 this.contentModel = contentModel;
29 this.generationResourceInformation = generationResourceInformation;
30 this.generatedResourceInformation = generatedResourceInformation;
31 }
32
33 public IContentModel getContentModel() {
34 return contentModel;
35 }
36
37 public IGenerationResourceInformation getGenerationResourceInformation() {
38 return generationResourceInformation;
39 }
40
41 public IGeneratedResourceInformation getGeneratedResourceInformation() {
42 return generatedResourceInformation;
43 }
44
45 public Object getAdapter(Class adapter, Object parameter) {
46 if (contentModel instanceof IAdaptable) {
47 return ((IAdaptable) contentModel).getAdapter(adapter, parameter);
48 }
49
50 return null;
51 }
52
53 }