public final class MarshalParameters extends Object
final ExampleXmlElement object = new ExampleXmlElement("Test");
final String xml = XmlUtil.marshal(new MarshalParameters.Builder(object).build(););
The builder also allows you to set properties. More features can easily be added later.XmlUtil.marshal(MarshalParameters)
Modifier and Type | Class and Description |
---|---|
static class |
MarshalParameters.Builder
Builder class that builds MarshalParameters objects.
|
Modifier and Type | Method and Description |
---|---|
boolean |
escape()
Determines whether the XML is escaped (true) or not (false).
|
JAXBContext |
getJaxbContext()
Gets the optional JAXB context.
|
Object |
getObject()
Gets the object to marshal.
|
Map<String,Object> |
getPoperties()
Gets the marshalling properties.
|
public Object getObject()
public JAXBContext getJaxbContext()
public boolean escape()
Copyright © 2008–2018. All rights reserved.