public abstract class ReprRendererAbstract<R extends ReprRendererAbstract<R,T>,T> extends Object implements ReprRenderer<R,T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
includesSelf |
protected RendererContext |
rendererContext |
protected org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation |
representation |
| Constructor and Description |
|---|
ReprRendererAbstract(RendererContext rendererContext,
LinkFollowSpecs linkFollower,
org.apache.isis.viewer.restfulobjects.applib.RepresentationType representationType,
org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation representation) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtensionsIsisProprietaryChangedObjects()
Convenience for representations that are returned from objects that
mutate state.
|
protected void |
addLink(org.apache.isis.viewer.restfulobjects.applib.Rel rel,
org.apache.isis.core.metamodel.spec.ObjectSpecification objectSpec) |
protected void |
addMediaTypeParams(String param,
String paramValue) |
protected static <R extends ReprRendererAbstract<R,T>,T> |
cast(ReprRendererAbstract<R,T> builder) |
protected org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation |
getExtensions()
Will lazily create extensions map as required
|
LinkFollowSpecs |
getLinkFollowSpecs() |
protected org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation |
getLinks()
Will lazily create links array as required
|
javax.ws.rs.core.MediaType |
getMediaType() |
RendererContext |
getRendererContext() |
protected List<org.apache.isis.core.metamodel.adapter.ObjectAdapter> |
getServiceAdapters() |
protected org.apache.isis.core.runtime.system.transaction.UpdateNotifier |
getUpdateNotifier() |
R |
includesSelf() |
abstract org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation |
render() |
R |
withExtensions(org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation extensions) |
R |
withLink(org.apache.isis.viewer.restfulobjects.applib.Rel rel,
org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation link) |
R |
withLink(org.apache.isis.viewer.restfulobjects.applib.Rel rel,
String href) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithprotected final RendererContext rendererContext
protected final org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation representation
protected boolean includesSelf
public ReprRendererAbstract(RendererContext rendererContext, LinkFollowSpecs linkFollower, org.apache.isis.viewer.restfulobjects.applib.RepresentationType representationType, org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation representation)
public RendererContext getRendererContext()
public LinkFollowSpecs getLinkFollowSpecs()
public javax.ws.rs.core.MediaType getMediaType()
getMediaType in interface ReprRenderer<R extends ReprRendererAbstract<R,T>,T>protected void addMediaTypeParams(String param, String paramValue)
public R includesSelf()
public R withLink(org.apache.isis.viewer.restfulobjects.applib.Rel rel, org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation link)
protected org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation getLinks()
protected void addLink(org.apache.isis.viewer.restfulobjects.applib.Rel rel, org.apache.isis.core.metamodel.spec.ObjectSpecification objectSpec)
protected org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation getExtensions()
public R withExtensions(org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation extensions)
protected static <R extends ReprRendererAbstract<R,T>,T> R cast(ReprRendererAbstract<R,T> builder)
public abstract org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation render()
render in interface ReprRenderer<R extends ReprRendererAbstract<R,T>,T>protected final void addExtensionsIsisProprietaryChangedObjects()
protected List<org.apache.isis.core.metamodel.adapter.ObjectAdapter> getServiceAdapters()
protected org.apache.isis.core.runtime.system.transaction.UpdateNotifier getUpdateNotifier()
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.