@groovy.transform.CompileStatic abstract class AbstractLinkingRenderer<T> extends AbstractIncludeExcludeRenderer<T>
Abstract base class for HAL renderers
Modifiers | Name | Description |
---|---|---|
protected static java.util.List<java.lang.String> |
DEFAULT_EXCLUDES |
|
static java.lang.String |
DEPRECATED_ATTRIBUTE |
|
static java.lang.String |
HREFLANG_ATTRIBUTE |
|
static java.lang.String |
HREF_ATTRIBUTE |
|
static java.lang.String |
RELATIONSHIP_SELF |
|
static java.lang.String |
TEMPLATED_ATTRIBUTE |
|
static java.lang.String |
TITLE_ATTRIBUTE |
|
static java.lang.String |
TYPE_ATTRIBUTE |
Type | Name and description |
---|---|
boolean |
absoluteLinks |
java.lang.String |
encoding |
org.grails.web.gsp.io.GrailsConventionGroovyPageLocator |
groovyPageLocator |
LinkGenerator |
linkGenerator |
org.grails.datastore.mapping.model.MappingContext |
mappingContext |
org.springframework.context.MessageSource |
messageSource |
boolean |
prettyPrint |
ProxyHandler |
proxyHandler |
RendererRegistry |
rendererRegistry |
Constructor and description |
---|
AbstractLinkingRenderer
(java.lang.Class<T> targetType, MimeType mimeType) |
AbstractLinkingRenderer
(java.lang.Class<T> targetType, MimeType[] mimeTypes) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected java.lang.String |
getLinkTitle(org.grails.datastore.mapping.model.PersistentEntity entity, java.util.Locale locale) |
|
java.util.Collection<Link> |
getLinksForObject(java.lang.Object object) |
|
protected java.lang.String |
getResourceTitle(java.lang.String uri, java.util.Locale locale) |
|
protected boolean |
isDomainResource(java.lang.Class clazz) |
|
final void |
render(T object, org.radeox.api.engine.context.RenderContext context) |
|
abstract void |
renderInternal(T object, org.radeox.api.engine.context.RenderContext context) |
|
protected java.util.Map<Association, java.lang.Object> |
writeAssociationLinks(org.radeox.api.engine.context.RenderContext context, java.lang.Object object, java.util.Locale locale, java.lang.Object writer, org.grails.datastore.mapping.model.PersistentEntity entity, groovy.lang.MetaClass metaClass) |
|
protected void |
writeDomain(org.radeox.api.engine.context.RenderContext context, groovy.lang.MetaClass metaClass, org.grails.datastore.mapping.model.PersistentEntity entity, java.lang.Object object, java.lang.Object writer) Writes a domain instance |
|
protected abstract void |
writeDomainProperty(java.lang.Object value, java.lang.String propertyName, java.lang.Object writer) |
|
protected void |
writeExtraLinks(java.lang.Object object, java.util.Locale locale, java.lang.Object writer) |
|
protected abstract void |
writeLink(Link link, java.util.Locale locale, java.lang.Object writerObject) |
Writes a domain instance
clazz
- The classobject
- The objectwriter
- The writerGroovy Documentation