public class UnmarshalParameters extends Object
final String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"
+ "<exampleXmlElement><name>Test</name></exampleXmlElement>";
final ExampleXmlElement object = XmlUtil.unmarshal(new UnmarshalParameters.Builder(xml, ExampleXmlElement).build());
XmlUtil.unmarshal(UnmarshalParameters)
Modifier and Type | Class and Description |
---|---|
static class |
UnmarshalParameters.Builder<T>
Builder class that builds UnmarshalParameters objects.
|
Constructor and Description |
---|
UnmarshalParameters(UnmarshalParameters.Builder<T> builder)
Constructs this UnmarshalParameters object from the supplied builder.
|
Modifier and Type | Method and Description |
---|---|
JAXBContext |
getJaxbContext()
Gets the optional JAXB context.
|
Map<String,Object> |
getPoperties()
Gets the unmarshalling properties.
|
Class |
getType()
Gets the type of object to unmarshal to.
|
String |
getXml()
Gets the XML to unmarshal.
|
public UnmarshalParameters(UnmarshalParameters.Builder<T> builder)
T
- The type of the object to unmarshal to.builder
- The builder to create this UnmarshalParameters object from.public String getXml()
public Class getType()
public JAXBContext getJaxbContext()
Copyright © 2008–2018. All rights reserved.