Seif Lotfy has proposed merging lp:~zeitgeist/zeitgeist/bb-symbol into 
lp:~zeitgeist/zeitgeist/bluebird.

Requested reviews:
  Zeitgeist Framework Team (zeitgeist)

For more details, see:
https://code.launchpad.net/~zeitgeist/zeitgeist/bb-symbol/+merge/69837

adding ontology class with a Symbols class 
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bb-symbol/+merge/69837
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~zeitgeist/zeitgeist/bb-symbol into lp:~zeitgeist/zeitgeist/bluebird.
=== modified file 'src/Makefile.am'
--- src/Makefile.am	2011-07-28 18:41:01 +0000
+++ src/Makefile.am	2011-07-29 17:12:33 +0000
@@ -25,6 +25,7 @@
 	constants.vala \
 	errors.vala \
 	table-lookup.vala \
+	ontology.vala \
 	$(NULL)
 
 bluebird_LDADD = \

=== added file 'src/ontology.vala'
--- src/ontology.vala	1970-01-01 00:00:00 +0000
+++ src/ontology.vala	2011-07-29 17:12:33 +0000
@@ -0,0 +1,61 @@
+/* datamodel.vala
+ *
+ * Copyright © 2011 Collabora Ltd.
+ *             By Seif Lotfy <s...@lotfy.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+public class Symbol
+{
+    private HashTable<string, Symbol> children;
+    public HashTable<string, Symbol> allChildren;
+    public string   name { get; private set; }
+    public string   uri { get; private set; }
+    public string   displayName { get; private set; }
+    public string   doc { get; private set; }
+    
+    public Symbol(string uri, string name, string displayName, string doc){
+        this.name = name;
+        this.uri = uri;
+        this.displayName = displayName;
+        this.doc = doc;
+    }
+    
+    public GenericArray<Symbol> get_parents()
+    {
+        return new GenericArray<Symbol>();
+    }
+    
+    public GenericArray<Symbol> get_children()
+    {
+        return new GenericArray<Symbol>();
+    }
+    
+    public GenericArray<Symbol> get_all_children()
+    {
+        return new GenericArray<Symbol>();
+    }
+    
+    public bool is_a(Symbol symbol)
+    {
+        return true;
+    }
+    
+    public string to_string()
+    {
+        return this.uri;
+    }
+}

_______________________________________________
Mailing list: https://launchpad.net/~zeitgeist
Post to     : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp

Reply via email to