summaryrefslogtreecommitdiff
path: root/js/src/Ice/Property.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/Ice/Property.js')
-rw-r--r--js/src/Ice/Property.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/js/src/Ice/Property.js b/js/src/Ice/Property.js
new file mode 100644
index 00000000000..3bea3d09caf
--- /dev/null
+++ b/js/src/Ice/Property.js
@@ -0,0 +1,34 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+(function(global){
+ var Ice = global.Ice || {};
+
+ var Property = function Property(pattern, deprecated, deprecatedBy)
+ {
+ this._pattern = pattern;
+ this._deprecated = deprecated;
+ this._deprecatedBy = deprecatedBy;
+ };
+
+ Object.defineProperty(Property.prototype, "pattern",{
+ get: function() { return this._pattern; }
+ });
+
+ Object.defineProperty(Property.prototype, "deprecated",{
+ get: function() { return this._deprecated; }
+ });
+
+ Object.defineProperty(Property.prototype, "deprecatedBy",{
+ get: function() { return this._deprecatedBy; }
+ });
+
+ Ice.Property = Property;
+ global.Ice = Ice;
+}(typeof (global) === "undefined" ? window : global));