Learn R Programming

geometa (version 0.2-0)

ISOExtendedElementInformation: ISOExtendedElementInformation

Description

ISOExtendedElementInformation

Usage

ISOExtendedElementInformation

Arguments

Value

Object of R6Class for modelling an ISO ExtendedElementInformation

Format

R6Class object.

Fields

name

shortName

domainCode

definition

obligation

condition

dataType

maximumOccurrence

domainValue

parentEntity

rule

rationale

source

Methods

new(xml)

This method is used to instantiate an ISOExtendedElementInformation

setName(name)

Sets the element name, object of class Character

setShortName(shortName)

Sets the element shortname, object of class character

setDomainCode(domainCode)

Sets the element domain code, object of class integer

setDefinition(definition)

Sets the element definition, object of class character

setObligation(obligation)

Sets an obligation, as object of class character or class ISOObligation. If an object of class "character" is specified, it must match the accepted obligation values ISOObligation$values().

setCondition(condition)

Sets the element condition, object of class character

setDatatype(dataType)

Sets the element datatype, as object of class character or class ISODatatype. If an object of class "character" is specified, it must match the accepted datatype values ISODatatype$values().

setMaximumOccurrrence(maximumOccurrence)

Sets the element maximum occurrence, object of class character

setDomainValue(domainValue)

Sets the element domain value, object of class character

addParentyEntity(parentEntity)

Adds a parent Entity, object of class character

delParentEntity(parentEntity)

Deletes a parent Entity, object of class character

setRule(rule)

Sets a rule, object of class character

addRationale(rationale)

Adds a rationale, object of class character

delRationale(rationale)

Deletes a rationale, object of class character

addSource(source)

Adds a source, object of class ISOResponsibleParty

delSource(source)

Deletes a source, object of class ISOResponsibleParty

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
# NOT RUN {
md <- ISOExtendedElementInformation$new()
  md$setName("name")
  md$setShortName("shortName")
  md$setDomainCode(1L)
  md$setDefinition("some definition")
  md$setObligation("mandatory")
  md$setCondition("no condition")
  md$setDatatype("characterString")
  md$setMaximumOccurrence("string")
  md$setDomainValue("value")
  md$addParentEntity("none")
  md$setRule("rule")
  md$addRationale("rationale")

  #adding a source
  rp <- ISOResponsibleParty$new()
  rp$setIndividualName("someone")
  rp$setOrganisationName("somewhere")
  rp$setPositionName("someposition")
  rp$setRole("pointOfContact")
  contact <- ISOContact$new()
  phone <- ISOTelephone$new()
  phone$setVoice("myphonenumber")
  phone$setFacsimile("myfacsimile")
  contact$setPhone(phone)
  address <- ISOAddress$new()
  address$setDeliveryPoint("theaddress")
  address$setCity("thecity")
  address$setPostalCode("111")
  address$setCountry("France")
  address$setEmail("someone@theorg.org")
  contact$setAddress(address)
  res <- ISOOnlineResource$new()
  res$setLinkage("http://www.somewhereovertheweb.org")
  res$setName("somename")
  contact$setOnlineResource(res)
  rp$setContactInfo(contact)

  md$addSource(rp)

  xml <- md$encode()
# }

Run the code above in your browser using DataLab