ISOAddress

ISOAddress

Format

R6Class object.

Value

Object of R6Class for modelling an ISO Address

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> ISOAddress

Public fields

deliveryPoint

delivery point

city

city

postalCode

postal code

country

country

electronicMailAddress

email

Methods

Inherited methods


Method new()

Initializes object

Usage

ISOAddress$new(xml = NULL)

Arguments

xml

object of class XMLInternalNode-class


Method setDeliveryPoint()

Set delivery point

Usage

ISOAddress$setDeliveryPoint(deliveryPoint, locales = NULL)

Arguments

deliveryPoint

delivery point

locales

list of localized names


Method addDeliveryPoint()

Adds delivery point

Usage

ISOAddress$addDeliveryPoint(deliveryPoint, locales = NULL)

Arguments

deliveryPoint

delivery point

locales

list of localized names

Returns

TRUE if added, FALSE otherwise


Method delDeliveryPoint()

Deletes delivery point

Usage

ISOAddress$delDeliveryPoint(deliveryPoint, locales = NULL)

Arguments

deliveryPoint

delivery point

locales

list of localized names

Returns

TRUE if added, FALSE otherwise


Method setCity()

Set city

Usage

ISOAddress$setCity(city, locales = NULL)

Arguments

city

city

locales

list of localized names


Method setPostalCode()

Set postal code

Usage

ISOAddress$setPostalCode(postalCode, locales = NULL)

Arguments

postalCode

postal code

locales

list of localized names


Method setCountry()

Set country

Usage

ISOAddress$setCountry(country, locales = NULL)

Arguments

country

country

locales

list of localized names


Method setEmail()

Set email

Usage

ISOAddress$setEmail(email, locales = NULL)

Arguments

email

email

locales

list of localized names


Method addEmail()

Adds email

Usage

ISOAddress$addEmail(email, locales = NULL)

Arguments

email

email

locales

list of localized names

Returns

TRUE if added, FALSE otherwise


Method delEmail()

Deletes email

Usage

ISOAddress$delEmail(email, locales = NULL)

Arguments

email

email

locales

list of localized names

Returns

TRUE if deleted, FALSE otherwise


Method clone()

The objects of this class are cloneable with this method.

Usage

ISOAddress$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

 md <- ISOAddress$new()
 md$setDeliveryPoint("theaddress")
 md$setCity("thecity")
 md$setPostalCode("111")
 md$setCountry("France")
 md$setEmail("someone@theorg.org")
 xml <- md$encode()
#> [geometa][INFO] Object 'ISOAddress' is VALID according to ISO 19139 XML schemas!