public class ContactBuilder extends AbstractNodeBuilder<Contact>
| Constructor and Description |
|---|
ContactBuilder()
Default constructor.
|
ContactBuilder(Contact contact)
Custom Constructor.
|
ContactBuilder(Node contactNode)
Custom constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Address |
addAddress(String street,
String postalCode,
String city) |
Address |
addAddress(String street,
String postalCode,
String city,
String country,
String countryCode)
Create and add address node to contact.
|
ComChannel |
addComChannel(String channelType,
String locator)
Create and add ComChannel node to contact.
|
ComChannel |
addComChannel(String channelType,
String locator,
String channelTypeDetails)
Create and add ComChannel node to contact.
|
Company |
addCompany(String organizationName)
Create and add company node to contact.
|
Company |
addCompany(String organizationName,
String unit)
Create and add company node to contact.
|
void |
addContactType(Object contactType)
Add contact type to contact node.
|
void |
addContactType(Object[] contactTypes)
Add array of contact types to contact node.
|
void |
addContactType(String contactType)
Add contact type to contact node.
|
Person |
addPerson(String familyName,
String firstName,
String namePrefix)
Create and add person node to contact.
|
protected Contact |
getContact()
Getter for product attribute.
|
build, getNodepublic ContactBuilder()
public ContactBuilder(Node contactNode) throws JAXBException
node - W2C Node object forJAXBExceptionpublic ContactBuilder(Contact contact)
contact - Contact node for initializing.protected Contact getContact()
public void addContactType(String contactType)
contactType - ContactType attribute to add.public void addContactType(Object contactType)
contactType - ContactType attribute to add.public void addContactType(Object[] contactTypes)
contactType - ContactType attribute to add.public Person addPerson(String familyName, String firstName, String namePrefix)
familyName - Persons family name.firstName - Persons fist name.namePrefix - Persons name prefix.public Company addCompany(String organizationName)
name - Organization Name.public Company addCompany(String organizationName, String unit)
name - Organization Name.unit - Organization Unit.public Address addAddress(String street, String postalCode, String city, String country, String countryCode)
street - Street attribute in address.postalCode - PostalCode attribute in address.city - City attribute in address.country - Country attribute in address.countryCode - CountryCode attribute in address.public ComChannel addComChannel(String channelType, String locator)
channelType - ChannelType attribute in node.locator - Locator attribute in node.public ComChannel addComChannel(String channelType, String locator, String channelTypeDetails)
channelType - ChannelType attribute in node.locator - Locator attribute in node.channelTypeDetails - ChannelTypeDetails attribute in node.Copyright © 2016. All rights reserved.