|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.web.converters.AbstractConverter grails.converters.XML
public class XML extends AbstractConverter
A converter that converts domain classes to XML.
Nested Class Summary | |
---|---|
class |
XML.Builder
|
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
XML()
|
|
XML(java.lang.Object target)
|
Method Summary | |
---|---|
XML
|
attribute(java.lang.String name, java.lang.String value)
|
void
|
build(groovy.lang.Closure c)
|
XML
|
chars(java.lang.String chars)
|
void
|
convertAnother(java.lang.Object o)
|
static void
|
createNamedConfig(java.lang.String name, groovy.lang.Closure callable)
|
XML
|
end()
|
int
|
getDepth()
|
java.lang.String
|
getElementName(java.lang.Object o)
|
static ConverterConfiguration
|
getNamedConfig(java.lang.String configName)
|
StreamingMarkupWriter
|
getStream()
|
XMLStreamWriter
|
getWriter()
|
protected void
|
handleCircularRelationship(java.lang.Object o)
|
protected ConverterConfiguration
|
initConfig()
|
ObjectMarshaller
|
lookupObjectMarshaller(java.lang.Object target)
|
static java.lang.Object
|
parse(java.lang.String source)
|
static java.lang.Object
|
parse(java.io.InputStream is, java.lang.String encoding)
|
static java.lang.Object
|
parse(javax.servlet.http.HttpServletRequest request)
|
static void
|
registerObjectMarshaller(java.lang.Class clazz, groovy.lang.Closure callable)
|
static void
|
registerObjectMarshaller(java.lang.Class clazz, int priority, groovy.lang.Closure callable)
|
static void
|
registerObjectMarshaller(ObjectMarshaller om)
|
static void
|
registerObjectMarshaller(ObjectMarshaller om, int priority)
|
void
|
render(java.io.Writer out)
|
void
|
render(javax.servlet.http.HttpServletResponse response)
|
void
|
setTarget(java.lang.Object target)
|
XML
|
startNode(java.lang.String tagName)
|
java.lang.String
|
toString()
|
static java.lang.Object
|
use(java.lang.String configName, groovy.lang.Closure callable)
|
static void
|
use(java.lang.String cfgName)
|
static void
|
withDefaultConfiguration(groovy.lang.Closure callable)
|
Methods inherited from class AbstractConverter | |
---|---|
createBeanWrapper, setTarget, toString |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final org.apache.commons.logging.Log log
Constructor Detail |
---|
public XML()
public XML(java.lang.Object target)
Method Detail |
---|
public XML attribute(java.lang.String name, java.lang.String value)
public void build(; groovy.lang.Closure c)
public XML chars(java.lang.String chars)
public void convertAnother(java.lang.Object o)
public static void createNamedConfig(java.lang.String name, groovy.lang.Closure callable)
public XML end()
public int getDepth()
public java.lang.String getElementName(java.lang.Object o)
public static ConverterConfiguration getNamedConfig(java.lang.String configName)
public StreamingMarkupWriter getStream()
public XMLStreamWriter getWriter()
protected void handleCircularRelationship(Object o) throws ConverterException { protected void handleCircularRelationship(java.lang.Object o)
protected ConverterConfiguration initConfig()
public ObjectMarshaller lookupObjectMarshaller( java.lang.Object target)
public static java.lang.Object parse(java.lang.String source)
public static java.lang.Object parse(java.io.InputStream is, java.lang.String encoding)
public static java.lang.Object parse(javax.servlet.http.HttpServletRequest request)
public static void registerObjectMarshaller(java.lang.Class clazz, groovy.lang.Closure callable)
public static void registerObjectMarshaller(java.lang.Class clazz, int priority, groovy.lang.Closure callable)
public static void registerObjectMarshaller(ObjectMarshaller om)
public static void registerObjectMarshaller(ObjectMarshaller om, int priority)
public void render(java.io.Writer out)
public void render(javax.servlet.http.HttpServletResponse response)
@Override public void setTarget(java.lang.Object target)
public XML startNode(java.lang.String tagName)
* @param source a String containing some XML public java.lang.String toString()
public static java.lang.Object use(java.lang.String configName, groovy.lang.Closure callable)
public static void use(java.lang.String cfgName)
public static void withDefaultConfiguration(groovy.lang.Closure callable)
Groovy Documentation