GNVersion: A GeoNetwork version

GNVersionR Documentation

A GeoNetwork version

Description

This class is an utility wrap the Geonetwork version

Format

R6Class object.

Details

GeoNetwork REST API - GeoNetwork Version

Value

Object of R6Class for modelling a GeoNetwork version

Public fields

version

version

value

value

Methods

Public methods


Method new()

Initializes an object of class GNVersion

Usage
GNVersion$new(version)
Arguments
version

version


Method lowerThan()

Compares to a version and returns TRUE if it is lower, FALSE otherwise

Usage
GNVersion$lowerThan(version)
Arguments
version

version

Returns

TRUE if lower, FALSE otherwise


Method greaterThan()

Compares to a version and returns TRUE if it is greater, FALSE otherwise

Usage
GNVersion$greaterThan(version)
Arguments
version

version

Returns

TRUE if lower, FALSE otherwise


Method equalTo()

Compares to a version and returns TRUE if it is equal, FALSE otherwise

Usage
GNVersion$equalTo(version)
Arguments
version

version

Returns

TRUE if lower, FALSE otherwise


Method clone()

The objects of this class are cloneable with this method.

Usage
GNVersion$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Author(s)

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Examples

## Not run: 
version <- GNVersion$new("2.6.4")

## End(Not run)


eblondel/geonapi documentation built on March 28, 2024, 7:53 a.m.