public class ContactPersonBuilder extends AbstractSAMLObjectBuilder<ContactPerson>
ContactPerson
elements.Constructor and Description |
---|
ContactPersonBuilder()
Default constructor.
|
ContactPersonBuilder(ContactPerson template)
Creates a builder from an object template.
|
Modifier and Type | Method and Description |
---|---|
static ContactPersonBuilder |
builder()
Creates a builder instance.
|
static ContactPersonBuilder |
builder(ContactPerson template)
Creates a builder instance.
|
ContactPersonBuilder |
company(String company)
Assigns the
Company element. |
ContactPersonBuilder |
emailAddresses(List<String> emailAddresses)
Assigns the
EmailAddress elements. |
ContactPersonBuilder |
emailAddresses(String... emailAddresses) |
protected Class<ContactPerson> |
getObjectType()
Returns the object type.
|
ContactPersonBuilder |
givenName(String givenName)
Assigns the
GivenName element. |
ContactPersonBuilder |
surname(String surname)
Assigns the
SurName element. |
ContactPersonBuilder |
telephoneNumbers(List<String> telephoneNumbers)
Assigns the
TelephoneNumber elements. |
ContactPersonBuilder |
telephoneNumbers(String... telephoneNumbers) |
ContactPersonBuilder |
type(ContactPersonTypeEnumeration type)
Assigns the type of contact person.
|
build, object
public ContactPersonBuilder()
public ContactPersonBuilder(ContactPerson template) throws MarshallingException, UnmarshallingException
template
- the object templateMarshallingException
- for marshalling errorsUnmarshallingException
- for unmarshalling errorspublic static ContactPersonBuilder builder()
public static ContactPersonBuilder builder(ContactPerson template) throws MarshallingException, UnmarshallingException
template
- the object templateMarshallingException
- for marshalling errorsUnmarshallingException
- for unmarshalling errorspublic ContactPersonBuilder type(ContactPersonTypeEnumeration type)
type
- the typepublic ContactPersonBuilder company(String company)
Company
element.company
- the companypublic ContactPersonBuilder givenName(String givenName)
GivenName
element.givenName
- the namepublic ContactPersonBuilder surname(String surname)
SurName
element.surname
- the namepublic ContactPersonBuilder emailAddresses(List<String> emailAddresses)
EmailAddress
elements.emailAddresses
- the email addressespublic ContactPersonBuilder emailAddresses(String... emailAddresses)
emailAddresses
- the email addressesemailAddresses(List)
public ContactPersonBuilder telephoneNumbers(List<String> telephoneNumbers)
TelephoneNumber
elements.telephoneNumbers
- the numbers to assignpublic ContactPersonBuilder telephoneNumbers(String... telephoneNumbers)
telephoneNumbers
- the numbers to assigntelephoneNumbers(List)
protected Class<ContactPerson> getObjectType()
getObjectType
in class AbstractSAMLObjectBuilder<ContactPerson>
Copyright © 2018 Litsec AB. All rights reserved.