org.codehaus.groovy.grails.web.converters.marshaller.xml
Class DomainClassMarshaller

java.lang.Object
  extended by org.codehaus.groovy.grails.web.converters.marshaller.xml.DomainClassMarshaller
All Implemented Interfaces:
ObjectMarshaller<XML>
Direct Known Subclasses:
DeepDomainClassMarshaller

public class DomainClassMarshaller
extends Object
implements ObjectMarshaller<XML>

Since:
1.1
Author:
Siegfried Puchbauer

Constructor Summary
DomainClassMarshaller()
           
DomainClassMarshaller(boolean includeVersion)
           
DomainClassMarshaller(boolean includeVersion, ProxyHandler proxyHandler)
           
 
Method Summary
protected  void asShortObject(Object refObj, XML xml, GrailsDomainClassProperty idProperty, GrailsDomainClass referencedDomainClass)
           
protected  boolean isRenderDomainClassRelations()
           
 void marshalObject(Object value, XML xml)
          Performs the conversion
 boolean supports(Object object)
          Checks wheter the ObjectMarshaller is able/intended to support the given Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainClassMarshaller

public DomainClassMarshaller()

DomainClassMarshaller

public DomainClassMarshaller(boolean includeVersion)

DomainClassMarshaller

public DomainClassMarshaller(boolean includeVersion,
                             ProxyHandler proxyHandler)
Method Detail

supports

public boolean supports(Object object)
Description copied from interface: ObjectMarshaller
Checks wheter the ObjectMarshaller is able/intended to support the given Object

Specified by:
supports in interface ObjectMarshaller<XML>
Parameters:
object - the object which is about getting converted
Returns:
true if the marshaller can/should perform the marshalling, false otherwise

marshalObject

public void marshalObject(Object value,
                          XML xml)
                   throws ConverterException
Description copied from interface: ObjectMarshaller
Performs the conversion

Specified by:
marshalObject in interface ObjectMarshaller<XML>
Parameters:
value - the object which is about getting converted
xml - the Converter to use
Throws:
ConverterException - on failure

asShortObject

protected void asShortObject(Object refObj,
                             XML xml,
                             GrailsDomainClassProperty idProperty,
                             GrailsDomainClass referencedDomainClass)
                      throws ConverterException
Throws:
ConverterException

isRenderDomainClassRelations

protected boolean isRenderDomainClassRelations()


Copyright (c) 2005-2009 The Grails project