generateDataMap: Create java beans and mapping functions for a R data type

Description Usage Arguments Value Author(s) See Also Examples

Description

The generateDataMap function generates java beans and R–Java data type conversions for a R data type if they are not available in the environment lookup. All java mappings are output as files under CurrentWorkingDir/biocJavaMap, where CurrentWorkingDir is the result of getwd(). This function also updates environments lookup and cvtImport (see arguments below) as a side effect.

Usage

1
generateDataMap(rType, javaToR, deployMode, typeMode, lookup)

Arguments

rType

a character vector containing a R data type name. The data type is either a S4 class or a ClassUnion.

javaToR

logical, TRUE if want to convert Java data to R, FALSE if want to convert R data to Java.

deployMode

Character, either "demo" or "jms". How the service will be deployed. "demo" is no longer supported.

typeMode

Character, either "robject" or "javalib". How Java objects should be generated; see generateDataMap and converters

lookup

environment, key is rType, value is of type RJMap. RJMap provides the java type, java package, and java–R conversion function names for the key. By default, lookup only contains mapping information for vector, list, factor, data frame, array, matrix, environment and NULL

Value

returns updated environment lookup.

Author(s)

Nianhua Li

See Also

printLookup

Examples

1
    ## used internally

RWebServices documentation built on Oct. 5, 2016, 4:53 a.m.