Class mozile.util

Object
   |
   +--mozile.Module
         |
         +--mozile.util

class mozile.util
extends mozile.Module

Field Summary
<static>  Object m
          An associative array of string replacements.
   
Method Summary
<static> String arrayToJSON(<Array> obj)
           Take an array and return a JSON string.
<static> String booleanToJSON(<Boolean> obj)
           Take a boolean and return a JSON string.
<static> String capitalize(<String> string)
           Makes the first character of each word in the given string uppercase and returns the new string.
<static> Object clone(obj, <Boolean> deep)
           Clone an object by making copies of all its properties.
<static> String dateToJSON(<Date> obj)
           Take a date and return a JSON string.
<static> String dumpKeys(<Object> obj)
           Output all an object's property and method names as a comma-separated string.
<static> String dumpValues(<Object> obj)
           Output all an object's keys and values as a newline separated string.
<static> String json(obj)
           Take an object and return a JSON string.
<static> String numberToJSON(<Number> obj)
           Take a number and return a JSON string.
<static> String objectToJSON(<Object> obj)
           Take an object and return a JSON string.
<static> String pad(<String> string, <Integer> length, <Boolean> left)
           Pads a string with spaces.
<static> Object parseJSON(obj)
           Take a JSON string and return a JavaScript object.
<static> String stringToJSON(<String> obj)
           Take a string and return a JSON string.

Field Detail

m

<static> Object m


Method Detail

arrayToJSON

<static> String arrayToJSON(<Array> obj)

booleanToJSON

<static> String booleanToJSON(<Boolean> obj)

capitalize

<static> String capitalize(<String> string)

clone

<static> Object clone(obj, <Boolean> deep)

dateToJSON

<static> String dateToJSON(<Date> obj)

dumpKeys

<static> String dumpKeys(<Object> obj)

dumpValues

<static> String dumpValues(<Object> obj)

json

<static> String json(obj)

numberToJSON

<static> String numberToJSON(<Number> obj)

objectToJSON

<static> String objectToJSON(<Object> obj)

pad

<static> String pad(<String> string, <Integer> length, <Boolean> left)

parseJSON

<static> Object parseJSON(obj)

stringToJSON

<static> String stringToJSON(<String> obj)


Documentation generated by JSDoc on Wed Feb 20 13:25:28 2008