r20517: re-add cleaned-up webapps
[sfrench/samba-autobuild/.git] / webapps / qooxdoo-0.6.3-sdk / frontend / framework / source / class / qx / util / format / Format.js
1 /* ************************************************************************
2
3    qooxdoo - the new era of web development
4
5    http://qooxdoo.org
6
7    Copyright:
8      2006 by STZ-IDA, Germany, http://www.stz-ida.de
9
10    License:
11      LGPL 2.1: http://www.gnu.org/licenses/lgpl.html
12
13    Authors:
14      * Til Schneider (til132)
15
16 ************************************************************************ */
17
18 /* ************************************************************************
19
20
21 ************************************************************************ */
22
23 /**
24  * Superclass for formatters and parsers.
25  */
26 qx.OO.defineClass("qx.util.format.Format", qx.core.Object,
27 function() {
28   qx.core.Object.call(this);
29 });
30
31
32 /**
33  * Formats an object.
34  *
35  * @param obj {var} The object to format.
36  * @return {string} the formatted object.
37  */
38 qx.Proto.format = function(obj) {
39   throw new Error("format is abstract");
40 }
41
42
43 /**
44  * Parses an object.
45  *
46  * @param str {string} the string to parse.
47  * @return {var} the parsed object.
48  */
49 qx.Proto.parse = function(str) {
50   throw new Error("parse is abstract");
51 }