org.codehaus.groovy.grails.web.converters.marshaller.xml
Class ValidationErrorsMarshaller
java.lang.Object
org.codehaus.groovy.grails.web.converters.marshaller.xml.ValidationErrorsMarshaller
- All Implemented Interfaces:
- NameAwareMarshaller, ObjectMarshaller<XML>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
public class ValidationErrorsMarshaller
- extends java.lang.Object
- implements ObjectMarshaller<XML>, NameAwareMarshaller, org.springframework.context.ApplicationContextAware
- Since:
- 1.1
|
Method Summary |
java.lang.String |
getElementName(java.lang.Object o)
Returns the tag name for the object |
void |
marshalObject(java.lang.Object object,
XML xml)
Performs the conversion |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
boolean |
supports(java.lang.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 |
ValidationErrorsMarshaller
public ValidationErrorsMarshaller()
supports
public boolean supports(java.lang.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(java.lang.Object object,
XML xml)
throws ConverterException
- Description copied from interface:
ObjectMarshaller
- Performs the conversion
- Specified by:
marshalObject in interface ObjectMarshaller<XML>
- Parameters:
object - the object which is about getting convertedxml - the Converter to use
- Throws:
ConverterException - on failure
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
getElementName
public java.lang.String getElementName(java.lang.Object o)
- Description copied from interface:
NameAwareMarshaller
- Returns the tag name for the object
- Specified by:
getElementName in interface NameAwareMarshaller
- Parameters:
o - the object
- Returns:
- the tag name