public class StandardMappingManager
extends java.lang.Object
Constructor and Description |
---|
StandardMappingManager(RegistryProvider registryProvider)
Constructor for initializing the needed resources for this utility class.
|
Modifier and Type | Method and Description |
---|---|
EmailAddress |
createEmailAddress(java.lang.String email)
Creates an EmailAddress instance by specifying an email address.
|
EmailAddress |
createEmailAddress(java.lang.String email,
java.lang.String type)
Creates an EmailAddress instance by specifying email address and type of
address.
|
InternationalString |
createInternationalString()
Creates an InternationalString instance.
|
InternationalString |
createInternationalString(java.util.Locale locale,
java.lang.String data)
Creates an InternationalString instance by specifying locale and String
data.
|
InternationalString |
createInternationalString(java.lang.String data)
Creates an InternationalString instance by specifying String data.
|
LocalizedString |
createLocalizedString(java.util.Locale locale,
java.lang.String data)
Creates a LocalizedString instance by specifying locale and String
data.
|
LocalizedString |
createLocalizedString(java.util.Locale locale,
java.lang.String stringData,
java.lang.String charSetname)
Creates a LocalizedString instance by specifying locale, String
data and charSetName.
|
PersonName |
createPersonName(java.lang.String name)
Creates a PersonName instance by specifying name.
|
PersonName |
createPersonName(java.lang.String firstName,
java.lang.String midlleName,
java.lang.String lastName)
Creates a PersonName instance by specifying firstName, middleName and lastName.
|
PostalAddress |
createPostalAddress(java.lang.String streetNumber,
java.lang.String street,
java.lang.String city,
java.lang.String stateOrProvince,
java.lang.String country,
java.lang.String postalCode,
java.lang.String type)
Creates a PostalAddress instance by specifying String parameters.
|
Slot |
createSlot(java.lang.String name,
java.util.Collection<java.lang.String> values,
java.lang.String slotType)
Creates a Slot instance.
|
Slot |
createSlot(java.lang.String name,
java.lang.String value,
java.lang.String slotType)
Creates a Slot instance.
|
TelephoneNumber |
createTelephoneNumber()
Creates a telephone number.
|
public StandardMappingManager(RegistryProvider registryProvider) throws CSAppFrameworkException
registryProvider
- the registry provider.CSAppFrameworkException
- if an internal occurs on creating the object.public EmailAddress createEmailAddress(java.lang.String email) throws CSAppFrameworkException
email
- the email address.CSAppFrameworkException
- if an internal error occurs on creating email address.public EmailAddress createEmailAddress(java.lang.String email, java.lang.String type) throws CSAppFrameworkException
email
- the email address.type
- the type of the address.CSAppFrameworkException
- if an internal error occurs on creating email address.public InternationalString createInternationalString() throws CSAppFrameworkException
CSAppFrameworkException
- if an internal error occurs.public InternationalString createInternationalString(java.lang.String data) throws CSAppFrameworkException
data
- the string data.CSAppFrameworkException
- if an internal error occurs.public InternationalString createInternationalString(java.util.Locale locale, java.lang.String data) throws CSAppFrameworkException
locale
- the current locale.data
- the string data.CSAppFrameworkException
- if an internal error occurs.public LocalizedString createLocalizedString(java.util.Locale locale, java.lang.String data) throws CSAppFrameworkException
locale
- the current locale.data
- the string data.CSAppFrameworkException
- if an internal error occurs on creating localized string.public LocalizedString createLocalizedString(java.util.Locale locale, java.lang.String stringData, java.lang.String charSetname) throws CSAppFrameworkException
locale
- the current locale.stringData
- the string data.charSetname
- the canonical name for the char-set.CSAppFrameworkException
- if an internal error occurs on creating localized string.public PersonName createPersonName(java.lang.String name) throws CSAppFrameworkException
name
- the name of the person.CSAppFrameworkException
- if an internal error occurs on creating the person name.public PersonName createPersonName(java.lang.String firstName, java.lang.String midlleName, java.lang.String lastName) throws CSAppFrameworkException
firstName
- the first name of the person.midlleName
- the middle name of the person.lastName
- the last name of the person.CSAppFrameworkException
- if an internal error occurs on creating the person name.public PostalAddress createPostalAddress(java.lang.String streetNumber, java.lang.String street, java.lang.String city, java.lang.String stateOrProvince, java.lang.String country, java.lang.String postalCode, java.lang.String type) throws CSAppFrameworkException
streetNumber
- the street number.street
- the street name.city
- the city name.stateOrProvince
- the state or province.country
- the country name.postalCode
- the postal code.type
- he type of address (for example, "headquarters") as a String.CSAppFrameworkException
- if an internal error occurs on creating the postal address.public TelephoneNumber createTelephoneNumber() throws CSAppFrameworkException
CSAppFrameworkException
- if an internal error occurs on creating the telephone number.public Slot createSlot(java.lang.String name, java.lang.String value, java.lang.String slotType) throws CSAppFrameworkException
name
- the name of the slot.value
- the value of the slot.slotType
- the type of the slot.CSAppFrameworkException
- if an internal error occurs on creating the slot.public Slot createSlot(java.lang.String name, java.util.Collection<java.lang.String> values, java.lang.String slotType) throws CSAppFrameworkException
name
- the name of the slot.values
- the collection of values of the slot.slotType
- the type of the slot.CSAppFrameworkException
- if an internal error occurs on creating the slot.