File

src/models/port/port-idl.ts

Description

Serializable REDHAWK Port IDL Model

Implements

ISerializable

Index

Properties
Methods

Methods

deserialize
deserialize(input: any)

Deserializes a JSON object into this class

Parameters :
Name Type Optional Description
input any
Returns : this

Properties

Public namespace
namespace: enums.PortIDLNameSpace
Type : enums.PortIDLNameSpace

Port IDL Namespace

Public type
type: enums.PortIDLType
Type : enums.PortIDLType

IDL Type

Public version
version: string
Type : string

IDL Version

import { ISerializable } from '../serialization/index';

import * as enums from './enums/index';

/**
 * Serializable REDHAWK Port IDL Model
 */
export class PortIDL implements ISerializable<PortIDL> {
    /** Port IDL Namespace */
    public namespace: enums.PortIDLNameSpace;
    /** IDL Version */
    public version: string;
    /** IDL Type */
    public type: enums.PortIDLType;

    /** Deserializes a JSON object into this class */
    deserialize(input: any) {
        this.namespace = enums.resolvePortIDLNameSpace(input.namespace);
        this.version = input.version;
        this.type = enums.resolvePortIDLType(input.type);
        return this;
    }
}

results matching ""

    No results matching ""