Home Manual Reference Source Repository
import Transform from 'vulp/src/Transform.js'
public class | source

Transform

Transform tracks changes to state structure, is used for mounting transforms.

Static Method Summary

Static Public Methods
public static

parse target keys to json pointer and return transform

Constructor Summary

Public Constructor
public

Transform constructors

Member Summary

Public Members
public

length: *

public

map: *

Method Summary

Public Methods
public

apply transform on JSONPointer

public

check if transforms are equal

public

check if transform is identify

public

resolve keys from child transform with targets from object

public

returns targets (target pointer as rfc string)

Static Public Methods

public static ofTargets(targets: Object<string, string>): Transform source

parse target keys to json pointer and return transform

Params:

NameTypeAttributeDescription
targets Object<string, string>

Return:

Transform

Public Constructors

public constructor(map: Map) source

Transform constructors

Params:

NameTypeAttributeDescription
map Map

instances sdds

Public Members

public length: * source

public map: * source

Public Methods

public apply(pointer: JSONPointer): Transform source

apply transform on JSONPointer

Params:

NameTypeAttributeDescription
pointer JSONPointer

pointer

Return:

Transform

public equals(x: Transform): boolean source

check if transforms are equal

Params:

NameTypeAttributeDescription
x Transform

transfrom to check against

Return:

boolean

public isIdentity(): boolean source

check if transform is identify

Return:

boolean

public sub(child: Transform): Transform source

resolve keys from child transform with targets from object

Params:

NameTypeAttributeDescription
child Transform

the child

Return:

Transform

public toTargets(): Object<string, string> source

returns targets (target pointer as rfc string)

Return:

Object<string, string>