flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [11/13] git commit: Added file to represent telemetry tag
Date Fri, 12 Apr 2013 08:29:26 GMT
Added file to represent telemetry tag


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/544e585b
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/544e585b
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/544e585b

Branch: refs/heads/develop
Commit: 544e585b077e08c91724cb037834bb55057f8d8a
Parents: 26bcc77
Author: Justin Mclean <jmclean@apache.org>
Authored: Fri Apr 12 18:21:45 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Fri Apr 12 18:21:45 2013 +1000

----------------------------------------------------------------------
 .../src/java/flash/swf/tags/EnableTelemetry.java   |   59 +++++++++++++++
 1 files changed, 59 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/544e585b/modules/swfutils/src/java/flash/swf/tags/EnableTelemetry.java
----------------------------------------------------------------------
diff --git a/modules/swfutils/src/java/flash/swf/tags/EnableTelemetry.java b/modules/swfutils/src/java/flash/swf/tags/EnableTelemetry.java
new file mode 100644
index 0000000..a2cc2e4
--- /dev/null
+++ b/modules/swfutils/src/java/flash/swf/tags/EnableTelemetry.java
@@ -0,0 +1,59 @@
+/*
+ *
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+
+package flash.swf.tags;
+
+import flash.swf.Tag;
+import flash.swf.TagHandler;
+
+/**
+ * EnableTelemetry defines advanced telemetry option.
+ */
+public class EnableTelemetry extends Tag
+{
+    public boolean enabled;
+
+    public EnableTelemetry()
+    {
+        super(stagEnableTelemetry);
+    }
+
+    public void visit(TagHandler handler)
+    {
+        handler.enableTelemetry(this);
+    }
+
+    public boolean equals(Object object)
+    {
+        boolean isEqual = false;
+
+        if (super.equals(object) && (object instanceof EnableTelemetry))
+        {
+        	EnableTelemetry tag = (EnableTelemetry)object;
+
+            if ((tag.enabled == this.enabled))
+            {
+                isEqual = true;
+            }
+        }
+
+        return isEqual;
+    }
+
+}


Mime
View raw message