|
Jala 1.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--jala.Utilities
This class contains various convenience methods
which do not fit in any other class.
Defined in Utilities.js
Field Summary | |
<static> <final> Number |
VALUE_ADDED
Static field indicating ad added object property. |
<static> <final> Number |
VALUE_MODIFIED
Static field indicating a modified object property. |
<static> <final> Number |
VALUE_REMOVED
Static field indicating a removed object property. |
Constructor Summary | |
jala.Utilities
()
Construct a utility object. |
Method Summary | |
String
|
createPassword(<Number> len, <Number> level)
Creates a random password with different levels of security. |
Object
|
diffObjects(<Object> obj1, <Object> obj2)
Returns an array containing the properties that are added, removed or modified in one object compared to another. |
Object
|
patchObject(<Object> obj, <Object> diff)
Patches an object with a "diff" object created by the diffObjects() method. |
String
|
toString()
Return a string representation of the utitility object. |
Field Detail |
<static> <final> Number VALUE_ADDED
<static> <final> Number VALUE_MODIFIED
<static> <final> Number VALUE_REMOVED
Constructor Detail |
jala.Utilities()
Method Detail |
String createPassword(<Number> len, <Number> level)
len
- The length of the password (default: 8)
level
- The security level Object diffObjects(<Object> obj1, <Object> obj2)
obj1
- The first of two objects which should be compared
obj2
- The second of two objects which should be compared
Object patchObject(<Object> obj, <Object> diff)
obj
- The Object the diff should be applied to
diff
- A "diff" object created by the diffObjects() method
String toString()
|
Jala 1.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |