com.atlassian.plugins.rest.common.expand
Class DefaultExpandContext<T>

java.lang.Object
  extended by com.atlassian.plugins.rest.common.expand.DefaultExpandContext<T>
All Implemented Interfaces:
ExpandContext<T>

public class DefaultExpandContext<T>
extends java.lang.Object
implements ExpandContext<T>


Constructor Summary
DefaultExpandContext(T entity, Expandable expandable, ExpandParameter expandParameter)
           
 
Method Summary
 T getEntity()
           
 ExpandParameter getEntityExpandParameter()
           
 Expandable getExpandable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExpandContext

public DefaultExpandContext(T entity,
                            Expandable expandable,
                            ExpandParameter expandParameter)
Method Detail

getExpandable

public Expandable getExpandable()
Specified by:
getExpandable in interface ExpandContext<T>
Returns:
the expandable annotation on the field that is the entity being expanded.

getEntity

public T getEntity()
Specified by:
getEntity in interface ExpandContext<T>
Returns:
the entity being expanded

getEntityExpandParameter

public ExpandParameter getEntityExpandParameter()
Specified by:
getEntityExpandParameter in interface ExpandContext<T>
Returns:
the expand parameter used to match the entity being expanded.


Copyright © 2014 Atlassian. All Rights Reserved.