API Docs for: 0.8.2
Show:

XooMLUtil Class

Collection of type checking, exception throwing, utility methods for the XooML tools.

For ItemMirror core developers only. Enable protected to see.

Methods

generateGUID

() String protected

Generates a GUID.

Returns:

String:

Randomly generated GUID.

hasOptions

(
  • checkedOptions
  • options
)
protected

Checks if each option within the given checkedOptions is a property of the given options.

Parameters:

  • checkedOptions Object

    Array of strings for each expected option.

  • options Object

    Options given to a function.

isArray

(
  • value
)
protected

Returns if the given value is an array.

Throws NullArgumentException when value is null.

Parameters:

  • value Object

    Given object have it's type checked.

isFunction

(
  • value
)
Boolean protected

Returns if the given value is an function.

Throws NullArgumentException when value is null.

Parameters:

  • value Object

    Given object have it's type checked.

Returns:

Boolean:

True if the given value is a Function, else false.

isObject

(
  • value
)
Boolean protected

Returns if the given value is an object.

Throws NullArgumentException when value is null.

Parameters:

  • value Object

    Given object have it's type checked.

Returns:

Boolean:

True if the given value is an Object, else false.

isString

(
  • value
)
Boolean protected

Returns if the given value is an string.

Throws NullArgumentException when value is null.

Parameters:

  • value Object

    Given object have it's type checked.

Returns:

Boolean:

True if the given value is a String, else false.