Home Manual Reference Source Test
import NodeAddress from 'atvise-scm/src/lib/NodeAddress.js'
public class | source

NodeAddress

A helper class used to translate database addresses to file paths.

Static Method Summary

Static Public Methods
public static

extensionFor(dataType: Object, typeDefinition: Object): String

Returns the extension to use for a database node.

public static

Returns a node path for an AtviseFile.

public static

toFilePath(referenceDescription: Object, readResults: Object): String

Returns a file path for a node

Static Public Methods

public static extensionFor(dataType: Object, typeDefinition: Object): String source

Returns the extension to use for a database node.

Params:

NameTypeAttributeDescription
dataType Object

The node dataType

typeDefinition Object

The node typeDefinition

Return:

String

The extension to use for this type of node.

public static getNodePath(file: AtviseFile): String source

Returns a node path for an AtviseFile.

Params:

NameTypeAttributeDescription
file AtviseFile

The file to get the path for.

Return:

String

The file's node path

public static toFilePath(referenceDescription: Object, readResults: Object): String source

Returns a file path for a node

Params:

NameTypeAttributeDescription
referenceDescription Object

The node's reference description from atvise-server.

readResults Object

The node's read results from atvise-server.

Return:

String

The node's file path