ISOContact

ISOContact

Format

R6Class object.

Value

Object of R6Class for modelling an ISO Contact

References

ISO 19115:2003 - Geographic information -- Metadata

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> ISOContact

Public fields

phone

phone

address

address

onlineResource

online resource

Methods

Inherited methods


Method new()

Initializes object

Usage

ISOContact$new(xml = NULL)

Arguments

xml

object of class XMLInternalNode-class


Method setPhone()

Set phone

Usage

ISOContact$setPhone(phone)

Arguments

phone

object of class ISOTelephone


Method setAddress()

Set address

Usage

ISOContact$setAddress(address)

Arguments

address

object of class ISOAddress


Method setOnlineResource()

Set online resource

Usage

ISOContact$setOnlineResource(onlineResource)

Arguments

onlineResource

online resource, object of class ISOOnlineResource


Method clone()

The objects of this class are cloneable with this method.

Usage

ISOContact$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

 md <- ISOContact$new()
 phone <- ISOTelephone$new()
 phone$setVoice("myphonenumber")
 phone$setFacsimile("myfacsimile")
 md$setPhone(phone)
 address <- ISOAddress$new()
 address$setDeliveryPoint("theaddress")
 address$setCity("thecity")
 address$setPostalCode("111")
 address$setCountry("France")
 address$setEmail("someone@theorg.org")
 md$setAddress(address)
 res <- ISOOnlineResource$new()
 res$setLinkage("http://www.somewhereovertheweb.org")
 res$setName("somename")
 md$setOnlineResource(res)
 xml <- md$encode()
#> [geometa][INFO] Object 'ISOContact' is VALID according to ISO 19139 XML schemas!