1 package com.atlassian.plugins.rest.common.expand;
2
3 import com.atlassian.plugins.rest.common.expand.parameter.ExpandParameter;
4
5 public class DefaultExpandContext<T> implements ExpandContext<T>
6 {
7 private final T entity;
8 private final Expandable expandable;
9 private final ExpandParameter expandParameter;
10
11 public DefaultExpandContext(T entity, Expandable expandable, ExpandParameter expandParameter)
12 {
13 this.expandable = expandable;
14 this.entity = entity;
15 this.expandParameter = expandParameter;
16 }
17
18 public Expandable getExpandable()
19 {
20 return expandable;
21 }
22
23 public T getEntity()
24 {
25 return entity;
26 }
27
28 public ExpandParameter getEntityExpandParameter()
29 {
30 return expandParameter;
31 }
32 }