Class Index | File Index

Classes


Class Utilities

A static class which provides utility functions
Defined in: </home/ubuntu/streamscape/NeeveBuild/stjsapi/src/main/webapp/js/Utilities.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static> void 
Utilities.decode(json)
Decodes the specified json-string and returns the javascript object encoded in this string.
<static> String 
Utilities.encode(o)
Encodes the specified the javascript object in json notation and returns the obtained string.
<static> void 
Utilities.extend(Child, Parent)
Inherits the specified 'Child' class from the specified 'Parent' class
<static> boolean 
Utilities.isException(event, exceptionCode)
Returns true if the specified event object contains an exception.
Class Detail
Utilities()
Method Detail
<static> Utilities.decode(json)
Decodes the specified json-string and returns the javascript object encoded in this string.
Parameters:
{String} json
The json-string to be decoded
Returns:
The javascript object decoded from the specified json-string

<static> {String} Utilities.encode(o)
Encodes the specified the javascript object in json notation and returns the obtained string.
Parameters:
{Object} o
The javascript object to be encoded in json notation
Returns:
The string containing the json encoding of the specified object

<static> Utilities.extend(Child, Parent)
Inherits the specified 'Child' class from the specified 'Parent' class
Parameters:
{Function} Child
The constructor function of the child class
{Function} Parent
The constructor function of the parent class

<static> {boolean} Utilities.isException(event, exceptionCode)
Returns true if the specified event object contains an exception. In this case use event.detailMessage to get the exception message.
Parameters:
{Object} event
The event object to be checked for exception
exceptionCode
Returns:
True if the specified event object contains an exception, false otherwise.

Copyright © 2015-2021 StreamScape Technologies. All rights reserved.