public class XML extends AbstractConverter
A converter that converts domain classes to XML.
Modifiers | Name | Description |
---|---|---|
class |
XML.Builder |
Modifiers | Name | Description |
---|---|---|
static org.apache.commons.logging.Log |
log |
Fields inherited from class | Fields |
---|---|
class AbstractConverter |
contentType, encoding, excludes, includes |
Constructor and description |
---|
XML
() |
XML
(java.lang.Object target) |
XML
(XMLStreamWriter writer) |
Type | Name and description |
---|---|
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<XML> |
getNamedConfig(java.lang.String configName) |
StreamingMarkupWriter |
getStream() |
XMLStreamWriter |
getWriter() |
protected void |
handleCircularRelationship(java.lang.Object o) |
protected ConverterConfiguration<XML> |
initConfig() |
ObjectMarshaller<XML> |
lookupObjectMarshaller(java.lang.Object target) |
static java.lang.Object |
parse(java.lang.String source) Parses the given XML |
static java.lang.Object |
parse(java.io.InputStream is, java.lang.String encoding) Parses the given XML |
static java.lang.Object |
parse(javax.servlet.http.HttpServletRequest request) Parses the give XML (read from the POST Body of the 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<XML> om) |
static void |
registerObjectMarshaller(ObjectMarshaller<XML> om, int priority) |
void |
render(java.io.Writer out) |
void |
render(javax.servlet.http.HttpServletResponse response) |
void |
setExcludes(java.util.List<java.lang.String> excludes) |
void |
setIncludes(java.util.List<java.lang.String> includes) |
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 | Name |
---|---|
class AbstractConverter |
createBeanWrapper, getExcludes, getIncludes, setContentType, setEncoding, setExcludes, setIncludes, setTarget, toString |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |
Parses the given XML
source
- a String containing some XMLParses the given XML
is
- an InputStream to read fromencoding
- the Character Encoding to useParses the give XML (read from the POST Body of the Request)
request
- an HttpServletRequest