public class DomainClassMarshaller extends IncludeExcludePropertyMarshaller
Object marshaller for domain classes to JSON
Modifiers | Name | Description |
---|---|---|
private GrailsApplication |
application |
|
private java.util.List<DomainClassFetcher> |
domainClassFetchers |
|
private boolean |
includeClass |
|
private boolean |
includeVersion |
|
private ProxyHandler |
proxyHandler |
Constructor and description |
---|
DomainClassMarshaller(boolean includeVersion, GrailsApplication application) |
DomainClassMarshaller(boolean includeVersion, ProxyHandler proxyHandler, GrailsApplication application) |
DomainClassMarshaller(boolean includeVersion, boolean includeClass, ProxyHandler proxyHandler, GrailsApplication application) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
asShortObject(java.lang.Object refObj, JSON json, org.grails.datastore.mapping.model.PersistentProperty idProperty, org.grails.datastore.mapping.model.PersistentEntity referencedDomainClass) |
|
protected java.lang.Object |
extractValue(java.lang.Object domainObject, org.grails.datastore.mapping.model.PersistentProperty property) |
|
private org.grails.datastore.mapping.model.PersistentEntity |
findDomainClass(java.lang.Object value) |
|
private void |
initializeDomainClassFetchers() |
|
public boolean |
isIncludeClass() |
|
public boolean |
isIncludeVersion() |
|
protected boolean |
isRenderDomainClassRelations() |
|
public void |
marshalObject(java.lang.Object value, JSON json) |
|
public void |
setIncludeClass(boolean includeClass) |
|
public void |
setIncludeVersion(boolean includeVersion) |
|
private boolean |
shouldInclude(IncludeExcludeSupport<java.lang.String> includeExcludeSupport, java.util.List<java.lang.String> includes, java.util.List<java.lang.String> excludes, java.lang.Object object, java.lang.String propertyName) |
|
public boolean |
supports(java.lang.Object object) |
Methods inherited from class | Name |
---|---|
class IncludeExcludePropertyMarshaller |
excludesProperty, includesProperty, shouldInclude |