public static final class XAD.Builder extends Object
XAD.Builder
Build class used to construct and validate an XAD object.| Constructor and Description |
|---|
Builder()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
XAD |
build()
Build
XAD and validate necessary fields. |
XAD.Builder |
city(String value)
Set the street address city.
|
XAD.Builder |
country(String value)
Set the street address country.
|
XAD.Builder |
firstLine(String value)
Set the first line of the street address.
|
XAD.Builder |
postCode(int value)
Set the street address post code.
|
XAD.Builder |
secondLine(String value)
Set the second line of the street address.
|
XAD.Builder |
state(String value)
Set the street address state.
|
public XAD.Builder firstLine(String value)
value - First line (not null).XAD.Builderpublic XAD.Builder secondLine(String value)
value - Second line (not null).XAD.Builderpublic XAD.Builder city(String value)
value - City (not null).XAD.Builderpublic XAD.Builder state(String value)
value - State (not null).XAD.Builderpublic XAD.Builder postCode(int value)
value - Post code (not null).XAD.Builderpublic XAD.Builder country(String value)
value - Country (not null).XAD.Builderpublic XAD build() throws MDMValidationException
XAD and validate necessary fields.XADMDMValidationException - Thrown when validation fails.Copyright © 2021. All rights reserved.