Home Manual Reference Source Test Repository
public class | source

Category

Defines the builder to configure a category of a datamodel. With this builder you can configure a category

Constructor Summary

Public Constructor
public

constructor(Reference: InternalOpenGateAPI, identifier: identifier, datastreams: Array)

Method Summary

Public Methods
public

addDatastream(datastream: Object): Category

Add a datastream to the category

public

addDatastreams(datastreams: Object): Category

Add a datastreams to the category

public

withName(name: *): *

Public Constructors

public constructor(Reference: InternalOpenGateAPI, identifier: identifier, datastreams: Array) source

Params:

NameTypeAttributeDescription
Reference InternalOpenGateAPI
  • nullable: false

to the API object.

identifier identifier
  • nullable: false

of category

datastreams Array

of category

Public Methods

public addDatastream(datastream: Object): Category source

Add a datastream to the category

Params:

NameTypeAttributeDescription
datastream Object
  • nullable: false

json object

Return:

Category

public addDatastreams(datastreams: Object): Category source

Add a datastreams to the category

Params:

NameTypeAttributeDescription
datastreams Object
  • nullable: false

of datastream json object

Return:

Category

public withName(name: *): * source

Params:

NameTypeAttributeDescription
name *

Return:

*