T - The type of the object to build.public static class UnmarshalParameters.Builder<T> extends Object implements Builder<UnmarshalParameters>
| Constructor and Description |
|---|
Builder(String xml,
Class<T> type)
Creates this Builder from the supplied xml, using default settings.
|
| Modifier and Type | Method and Description |
|---|---|
UnmarshalParameters |
build()
Builds the UnmarshalParameters object.
|
UnmarshalParameters.Builder<T> |
jaxbContext(JAXBContext jaxbContext)
Adds the JAXB context used for unmarshalling.
|
UnmarshalParameters.Builder<T> |
property(String propertyName,
Object propertyValue)
Adds an unmarshalling property.
|
public UnmarshalParameters.Builder<T> jaxbContext(JAXBContext jaxbContext)
jaxbContext - The JAXB context.public UnmarshalParameters.Builder<T> property(String propertyName, Object propertyValue)
propertyName - The name of the unmarshalling property.propertyValue - The value of the unmarshalling property.NullPointerException - When either the supplied propertyName or propertyValue is null.IllegalArgumentException - When the supplied propertyName is empty.public UnmarshalParameters build()
build in interface Builder<UnmarshalParameters>Copyright © 2008–2017. All rights reserved.