as3corelib 0.1.0 → 0.85.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. data/Gemfile +1 -4
  2. data/Gemfile.lock +7 -4
  3. data/README.textile +20 -10
  4. data/Rakefile +32 -2
  5. data/as3corelib.gemspec +13 -11
  6. data/lib/as3corelib.rb +10 -4
  7. data/lib/as3corelib/version.rb +4 -0
  8. metadata +31 -121
  9. data/build/build.properties +0 -48
  10. data/build/build.xml +0 -104
  11. data/examples/JSONExample/JSONExample.mxml +0 -73
  12. data/src/com/adobe/air/crypto/EncryptionKeyGenerator.as +0 -313
  13. data/src/com/adobe/air/filesystem/FileMonitor.as +0 -245
  14. data/src/com/adobe/air/filesystem/FileUtil.as +0 -63
  15. data/src/com/adobe/air/filesystem/VolumeMonitor.as +0 -184
  16. data/src/com/adobe/air/filesystem/events/FileMonitorEvent.as +0 -61
  17. data/src/com/adobe/air/logging/FileTarget.as +0 -95
  18. data/src/com/adobe/air/net/ResourceCache.as +0 -165
  19. data/src/com/adobe/air/net/events/ResourceCacheEvent.as +0 -70
  20. data/src/com/adobe/crypto/HMAC.as +0 -127
  21. data/src/com/adobe/crypto/MD5.as +0 -281
  22. data/src/com/adobe/crypto/MD5Stream.as +0 -402
  23. data/src/com/adobe/crypto/SHA1.as +0 -289
  24. data/src/com/adobe/crypto/SHA224.as +0 -257
  25. data/src/com/adobe/crypto/SHA256.as +0 -261
  26. data/src/com/adobe/crypto/WSSEUsernameToken.as +0 -114
  27. data/src/com/adobe/errors/IllegalStateError.as +0 -63
  28. data/src/com/adobe/fileformats/vcard/Address.as +0 -47
  29. data/src/com/adobe/fileformats/vcard/Email.as +0 -39
  30. data/src/com/adobe/fileformats/vcard/Phone.as +0 -39
  31. data/src/com/adobe/fileformats/vcard/VCard.as +0 -54
  32. data/src/com/adobe/fileformats/vcard/VCardParser.as +0 -246
  33. data/src/com/adobe/images/BitString.as +0 -39
  34. data/src/com/adobe/images/JPGEncoder.as +0 -648
  35. data/src/com/adobe/images/PNGEncoder.as +0 -141
  36. data/src/com/adobe/net/DynamicURLLoader.as +0 -55
  37. data/src/com/adobe/net/IURIResolver.as +0 -76
  38. data/src/com/adobe/net/MimeTypeMap.as +0 -200
  39. data/src/com/adobe/net/URI.as +0 -2466
  40. data/src/com/adobe/net/URIEncodingBitmap.as +0 -139
  41. data/src/com/adobe/net/proxies/RFC2817Socket.as +0 -198
  42. data/src/com/adobe/protocols/dict/Database.as +0 -66
  43. data/src/com/adobe/protocols/dict/Definition.as +0 -71
  44. data/src/com/adobe/protocols/dict/Dict.as +0 -360
  45. data/src/com/adobe/protocols/dict/DictionaryServer.as +0 -60
  46. data/src/com/adobe/protocols/dict/MatchStrategy.as +0 -66
  47. data/src/com/adobe/protocols/dict/Response.as +0 -71
  48. data/src/com/adobe/protocols/dict/events/ConnectedEvent.as +0 -53
  49. data/src/com/adobe/protocols/dict/events/DatabaseEvent.as +0 -67
  50. data/src/com/adobe/protocols/dict/events/DefinitionEvent.as +0 -70
  51. data/src/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as +0 -69
  52. data/src/com/adobe/protocols/dict/events/DictionaryServerEvent.as +0 -69
  53. data/src/com/adobe/protocols/dict/events/DisconnectedEvent.as +0 -55
  54. data/src/com/adobe/protocols/dict/events/ErrorEvent.as +0 -80
  55. data/src/com/adobe/protocols/dict/events/MatchEvent.as +0 -67
  56. data/src/com/adobe/protocols/dict/events/MatchStrategiesEvent.as +0 -70
  57. data/src/com/adobe/protocols/dict/events/NoMatchEvent.as +0 -54
  58. data/src/com/adobe/protocols/dict/util/CompleteResponseEvent.as +0 -68
  59. data/src/com/adobe/protocols/dict/util/SocketHelper.as +0 -81
  60. data/src/com/adobe/serialization/json/JSON.as +0 -86
  61. data/src/com/adobe/serialization/json/JSONDecoder.as +0 -327
  62. data/src/com/adobe/serialization/json/JSONEncoder.as +0 -312
  63. data/src/com/adobe/serialization/json/JSONParseError.as +0 -87
  64. data/src/com/adobe/serialization/json/JSONToken.as +0 -104
  65. data/src/com/adobe/serialization/json/JSONTokenType.as +0 -69
  66. data/src/com/adobe/serialization/json/JSONTokenizer.as +0 -702
  67. data/src/com/adobe/utils/ArrayUtil.as +0 -187
  68. data/src/com/adobe/utils/DateUtil.as +0 -701
  69. data/src/com/adobe/utils/DictionaryUtil.as +0 -87
  70. data/src/com/adobe/utils/IntUtil.as +0 -99
  71. data/src/com/adobe/utils/NumberFormatter.as +0 -74
  72. data/src/com/adobe/utils/StringUtil.as +0 -239
  73. data/src/com/adobe/utils/XMLUtil.as +0 -168
  74. data/src/com/adobe/webapis/ServiceBase.as +0 -48
  75. data/src/com/adobe/webapis/URLLoaderBase.as +0 -108
  76. data/src/com/adobe/webapis/events/ServiceEvent.as +0 -82
  77. data/tests/src/CoreLibTestRunner-app.xml +0 -135
  78. data/tests/src/CoreLibTestRunner.as +0 -138
  79. data/tests/src/CoreLibTestRunner.mxml +0 -46
  80. data/tests/src/com/adobe/air/crypto/EncryptionKeyGeneratorTest.as +0 -176
  81. data/tests/src/com/adobe/air/filesystem/FileMonitorTest.as +0 -63
  82. data/tests/src/com/adobe/air/filesystem/VolumeMonitorTest.as +0 -57
  83. data/tests/src/com/adobe/air/filesystem/events/FileMonitorEventTest.as +0 -59
  84. data/tests/src/com/adobe/air/net/events/ResourceCacheEventTest.as +0 -72
  85. data/tests/src/com/adobe/crypto/HMACMD5Test.as +0 -134
  86. data/tests/src/com/adobe/crypto/HMACSHA1Test.as +0 -138
  87. data/tests/src/com/adobe/crypto/MD5Test.as +0 -82
  88. data/tests/src/com/adobe/crypto/SHA1Test.as +0 -151
  89. data/tests/src/com/adobe/crypto/SHA224Test.as +0 -104
  90. data/tests/src/com/adobe/crypto/SHA256Test.as +0 -116
  91. data/tests/src/com/adobe/crypto/WSSEUsernameTokenTest.as +0 -87
  92. data/tests/src/com/adobe/images/JPGEncoderTest.as +0 -54
  93. data/tests/src/com/adobe/images/PNGEncoderTest.as +0 -54
  94. data/tests/src/com/adobe/net/URITest.as +0 -589
  95. data/tests/src/com/adobe/protocols/events/ConnectedEventTest.as +0 -59
  96. data/tests/src/com/adobe/protocols/events/DatabaseEventTest.as +0 -62
  97. data/tests/src/com/adobe/protocols/events/DefinitionEventTest.as +0 -61
  98. data/tests/src/com/adobe/protocols/events/DefinitionHeaderEventTest.as +0 -61
  99. data/tests/src/com/adobe/protocols/events/DictionaryServerEventTest.as +0 -61
  100. data/tests/src/com/adobe/protocols/events/DisconnectedEventTest.as +0 -59
  101. data/tests/src/com/adobe/protocols/events/ErrorEventTest.as +0 -63
  102. data/tests/src/com/adobe/protocols/events/MatchEventTest.as +0 -61
  103. data/tests/src/com/adobe/protocols/events/MatchStrategiesEventTest.as +0 -61
  104. data/tests/src/com/adobe/protocols/events/NoMatchEventTest.as +0 -58
  105. data/tests/src/com/adobe/protocols/util/CompletedResponseEventTest.as +0 -60
  106. data/tests/src/com/adobe/serialization/json/JSONTest.as +0 -522
  107. data/tests/src/com/adobe/serialization/json/SimpleClass.as +0 -85
  108. data/tests/src/com/adobe/utils/ArrayUtilTest.as +0 -173
  109. data/tests/src/com/adobe/utils/DateUtilTest.as +0 -436
  110. data/tests/src/com/adobe/utils/DictionaryUtilTest.as +0 -93
  111. data/tests/src/com/adobe/utils/IntUtilTest.as +0 -73
  112. data/tests/src/com/adobe/utils/NumberFormatterTest.as +0 -70
  113. data/tests/src/com/adobe/utils/StringUtilTest.as +0 -304
  114. data/tests/src/com/adobe/utils/XMLUtilTest.as +0 -101
  115. data/tests/src/com/adobe/webapis/events/ServiceEventTest.as +0 -66
@@ -1,139 +0,0 @@
1
- /*
2
- Copyright (c) 2008, Adobe Systems Incorporated
3
- All rights reserved.
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are
7
- met:
8
-
9
- * Redistributions of source code must retain the above copyright notice,
10
- this list of conditions and the following disclaimer.
11
-
12
- * Redistributions in binary form must reproduce the above copyright
13
- notice, this list of conditions and the following disclaimer in the
14
- documentation and/or other materials provided with the distribution.
15
-
16
- * Neither the name of Adobe Systems Incorporated nor the names of its
17
- contributors may be used to endorse or promote products derived from
18
- this software without specific prior written permission.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
- */
32
-
33
- package com.adobe.net
34
- {
35
- import flash.utils.ByteArray;
36
-
37
- /**
38
- * This class implements an efficient lookup table for URI
39
- * character escaping. This class is only needed if you
40
- * create a derived class of URI to handle custom URI
41
- * syntax. This class is used internally by URI.
42
- *
43
- * @langversion ActionScript 3.0
44
- * @playerversion Flash 9.0*
45
- */
46
- public class URIEncodingBitmap extends ByteArray
47
- {
48
- /**
49
- * Constructor. Creates an encoding bitmap using the given
50
- * string of characters as the set of characters that need
51
- * to be URI escaped.
52
- *
53
- * @langversion ActionScript 3.0
54
- * @playerversion Flash 9.0
55
- */
56
- public function URIEncodingBitmap(charsToEscape:String) : void
57
- {
58
- var i:int;
59
- var data:ByteArray = new ByteArray();
60
-
61
- // Initialize our 128 bits (16 bytes) to zero
62
- for (i = 0; i < 16; i++)
63
- this.writeByte(0);
64
-
65
- data.writeUTFBytes(charsToEscape);
66
- data.position = 0;
67
-
68
- while (data.bytesAvailable)
69
- {
70
- var c:int = data.readByte();
71
-
72
- if (c > 0x7f)
73
- continue; // only escape low bytes
74
-
75
- var enc:int;
76
- this.position = (c >> 3);
77
- enc = this.readByte();
78
- enc |= 1 << (c & 0x7);
79
- this.position = (c >> 3);
80
- this.writeByte(enc);
81
- }
82
- }
83
-
84
- /**
85
- * Based on the data table contained in this object, check
86
- * if the given character should be escaped.
87
- *
88
- * @param char the character to be escaped. Only the first
89
- * character in the string is used. Any other characters
90
- * are ignored.
91
- *
92
- * @return the integer value of the raw UTF8 character. For
93
- * example, if '%' is given, the return value is 37 (0x25).
94
- * If the character given does not need to be escaped, the
95
- * return value is zero.
96
- *
97
- * @langversion ActionScript 3.0
98
- * @playerversion Flash 9.0
99
- */
100
- public function ShouldEscape(char:String) : int
101
- {
102
- var data:ByteArray = new ByteArray();
103
- var c:int, mask:int;
104
-
105
- // write the character into a ByteArray so
106
- // we can pull it out as a raw byte value.
107
- data.writeUTFBytes(char);
108
- data.position = 0;
109
- c = data.readByte();
110
-
111
- if (c & 0x80)
112
- {
113
- // don't escape high byte characters. It can make international
114
- // URI's unreadable. We just want to escape characters that would
115
- // make URI syntax ambiguous.
116
- return 0;
117
- }
118
- else if ((c < 0x1f) || (c == 0x7f))
119
- {
120
- // control characters must be escaped.
121
- return c;
122
- }
123
-
124
- this.position = (c >> 3);
125
- mask = this.readByte();
126
-
127
- if (mask & (1 << (c & 0x7)))
128
- {
129
- // we need to escape this, return the numeric value
130
- // of the character
131
- return c;
132
- }
133
- else
134
- {
135
- return 0;
136
- }
137
- }
138
- }
139
- }
@@ -1,198 +0,0 @@
1
- /*
2
- Copyright (c) 2008, Adobe Systems Incorporated
3
- All rights reserved.
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are
7
- met:
8
-
9
- * Redistributions of source code must retain the above copyright notice,
10
- this list of conditions and the following disclaimer.
11
-
12
- * Redistributions in binary form must reproduce the above copyright
13
- notice, this list of conditions and the following disclaimer in the
14
- documentation and/or other materials provided with the distribution.
15
-
16
- * Neither the name of Adobe Systems Incorporated nor the names of its
17
- contributors may be used to endorse or promote products derived from
18
- this software without specific prior written permission.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
- */
32
- package com.adobe.net.proxies
33
- {
34
- import flash.events.Event;
35
- import flash.events.IOErrorEvent;
36
- import flash.events.ProgressEvent;
37
- import flash.net.Socket;
38
-
39
- /**
40
- * This class allows TCP socket connections through HTTP proxies in accordance with
41
- * RFC 2817:
42
- *
43
- * ftp://ftp.rfc-editor.org/in-notes/rfc2817.txt
44
- *
45
- * It can also be used to make direct connections to a destination, as well. If you
46
- * pass the host and port into the constructor, no proxy will be used. You can also
47
- * call connect, passing in the host and the port, and if you didn't set the proxy
48
- * info, a direct connection will be made. A proxy is only used after you have called
49
- * the setProxyInfo function.
50
- *
51
- * The connection to and negotiation with the proxy is completely hidden. All the
52
- * same events are thrown whether you are using a proxy or not, and the data you
53
- * receive from the target server will look exact as it would if you were connected
54
- * to it directly rather than through a proxy.
55
- *
56
- * @author Christian Cantrell
57
- *
58
- **/
59
- public class RFC2817Socket
60
- extends Socket
61
- {
62
- private var proxyHost:String = null;
63
- private var host:String = null;
64
- private var proxyPort:int = 0;
65
- private var port:int = 0;
66
- private var deferredEventHandlers:Object = new Object();
67
- private var buffer:String = new String();
68
-
69
- /**
70
- * Construct a new RFC2817Socket object. If you pass in the host and the port,
71
- * no proxy will be used. If you want to use a proxy, instantiate with no
72
- * arguments, call setProxyInfo, then call connect.
73
- **/
74
- public function RFC2817Socket(host:String = null, port:int = 0)
75
- {
76
- super(host, port);
77
- }
78
-
79
- /**
80
- * Set the proxy host and port number. Your connection will only proxied if
81
- * this function has been called.
82
- **/
83
- public function setProxyInfo(host:String, port:int):void
84
- {
85
- this.proxyHost = host;
86
- this.proxyPort = port;
87
-
88
- var deferredSocketDataHandler:Object = this.deferredEventHandlers[ProgressEvent.SOCKET_DATA];
89
- var deferredConnectHandler:Object = this.deferredEventHandlers[Event.CONNECT];
90
-
91
- if (deferredSocketDataHandler != null)
92
- {
93
- super.removeEventListener(ProgressEvent.SOCKET_DATA, deferredSocketDataHandler.listener, deferredSocketDataHandler.useCapture);
94
- }
95
-
96
- if (deferredConnectHandler != null)
97
- {
98
- super.removeEventListener(Event.CONNECT, deferredConnectHandler.listener, deferredConnectHandler.useCapture);
99
- }
100
- }
101
-
102
- /**
103
- * Connect to the specified host over the specified port. If you want your
104
- * connection proxied, call the setProxyInfo function first.
105
- **/
106
- public override function connect(host:String, port:int):void
107
- {
108
- if (this.proxyHost == null)
109
- {
110
- this.redirectConnectEvent();
111
- this.redirectSocketDataEvent();
112
- super.connect(host, port);
113
- }
114
- else
115
- {
116
- this.host = host;
117
- this.port = port;
118
- super.addEventListener(Event.CONNECT, this.onConnect);
119
- super.addEventListener(ProgressEvent.SOCKET_DATA, this.onSocketData);
120
- super.connect(this.proxyHost, this.proxyPort);
121
- }
122
- }
123
-
124
- private function onConnect(event:Event):void
125
- {
126
- this.writeUTFBytes("CONNECT "+this.host+":"+this.port+" HTTP/1.1\n\n");
127
- this.flush();
128
- this.redirectConnectEvent();
129
- }
130
-
131
- private function onSocketData(event:ProgressEvent):void
132
- {
133
- while (this.bytesAvailable != 0)
134
- {
135
- this.buffer += this.readUTFBytes(1);
136
- if (this.buffer.search(/\r?\n\r?\n$/) != -1)
137
- {
138
- this.checkResponse(event);
139
- break;
140
- }
141
- }
142
- }
143
-
144
- private function checkResponse(event:ProgressEvent):void
145
- {
146
- var responseCode:String = this.buffer.substr(this.buffer.indexOf(" ")+1, 3);
147
-
148
- if (responseCode.search(/^2/) == -1)
149
- {
150
- var ioError:IOErrorEvent = new IOErrorEvent(IOErrorEvent.IO_ERROR);
151
- ioError.text = "Error connecting to the proxy ["+this.proxyHost+"] on port ["+this.proxyPort+"]: " + this.buffer;
152
- this.dispatchEvent(ioError);
153
- }
154
- else
155
- {
156
- this.redirectSocketDataEvent();
157
- this.dispatchEvent(new Event(Event.CONNECT));
158
- if (this.bytesAvailable > 0)
159
- {
160
- this.dispatchEvent(event);
161
- }
162
- }
163
- this.buffer = null;
164
- }
165
-
166
- private function redirectConnectEvent():void
167
- {
168
- super.removeEventListener(Event.CONNECT, onConnect);
169
- var deferredEventHandler:Object = this.deferredEventHandlers[Event.CONNECT];
170
- if (deferredEventHandler != null)
171
- {
172
- super.addEventListener(Event.CONNECT, deferredEventHandler.listener, deferredEventHandler.useCapture, deferredEventHandler.priority, deferredEventHandler.useWeakReference);
173
- }
174
- }
175
-
176
- private function redirectSocketDataEvent():void
177
- {
178
- super.removeEventListener(ProgressEvent.SOCKET_DATA, onSocketData);
179
- var deferredEventHandler:Object = this.deferredEventHandlers[ProgressEvent.SOCKET_DATA];
180
- if (deferredEventHandler != null)
181
- {
182
- super.addEventListener(ProgressEvent.SOCKET_DATA, deferredEventHandler.listener, deferredEventHandler.useCapture, deferredEventHandler.priority, deferredEventHandler.useWeakReference);
183
- }
184
- }
185
-
186
- public override function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int=0.0, useWeakReference:Boolean=false):void
187
- {
188
- if (type == Event.CONNECT || type == ProgressEvent.SOCKET_DATA)
189
- {
190
- this.deferredEventHandlers[type] = {listener:listener,useCapture:useCapture, priority:priority, useWeakReference:useWeakReference};
191
- }
192
- else
193
- {
194
- super.addEventListener(type, listener, useCapture, priority, useWeakReference);
195
- }
196
- }
197
- }
198
- }
@@ -1,66 +0,0 @@
1
- /*
2
- Copyright (c) 2009, Adobe Systems Incorporated
3
- All rights reserved.
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are
7
- met:
8
-
9
- * Redistributions of source code must retain the above copyright notice,
10
- this list of conditions and the following disclaimer.
11
-
12
- * Redistributions in binary form must reproduce the above copyright
13
- notice, this list of conditions and the following disclaimer in the
14
- documentation and/or other materials provided with the distribution.
15
-
16
- * Neither the name of Adobe Systems Incorporated nor the names of its
17
- contributors may be used to endorse or promote products derived from
18
- this software without specific prior written permission.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
- */
32
-
33
- package com.adobe.protocols.dict
34
- {
35
- public class Database
36
- {
37
- private var _name:String;
38
- private var _description:String;
39
-
40
- public function Database(name:String, description:String)
41
- {
42
- this._name = name;
43
- this._description = description;
44
- }
45
-
46
- public function set name(name:String):void
47
- {
48
- this._name = name;
49
- }
50
-
51
- public function get name():String
52
- {
53
- return this._name;
54
- }
55
-
56
- public function set description(description:String):void
57
- {
58
- this._description = description;
59
- }
60
-
61
- public function get description():String
62
- {
63
- return this._description;
64
- }
65
- }
66
- }
@@ -1,71 +0,0 @@
1
- /*
2
- Copyright (c) 2009, Adobe Systems Incorporated
3
- All rights reserved.
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are
7
- met:
8
-
9
- * Redistributions of source code must retain the above copyright notice,
10
- this list of conditions and the following disclaimer.
11
-
12
- * Redistributions in binary form must reproduce the above copyright
13
- notice, this list of conditions and the following disclaimer in the
14
- documentation and/or other materials provided with the distribution.
15
-
16
- * Neither the name of Adobe Systems Incorporated nor the names of its
17
- contributors may be used to endorse or promote products derived from
18
- this software without specific prior written permission.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
- */
32
-
33
- package com.adobe.protocols.dict
34
- {
35
- public class Definition
36
- {
37
- private var _definition:String;
38
- private var _database:String;
39
- private var _term:String;
40
-
41
- public function set definition(definition:String):void
42
- {
43
- this._definition = definition;
44
- }
45
-
46
- public function get definition():String
47
- {
48
- return this._definition;
49
- }
50
-
51
- public function set database(database:String):void
52
- {
53
- this._database = database;
54
- }
55
-
56
- public function get database():String
57
- {
58
- return this._database;
59
- }
60
-
61
- public function set term(term:String):void
62
- {
63
- this._term = term;
64
- }
65
-
66
- public function get term():String
67
- {
68
- return this._term;
69
- }
70
- }
71
- }