[Mulgara-svn] r458 - branches/nw-interface/src/jar/itql/java/org/mulgara/itql

pag at mulgara.org pag at mulgara.org
Fri Sep 28 19:03:30 UTC 2007


Author: pag
Date: 2007-09-28 14:03:29 -0500 (Fri, 28 Sep 2007)
New Revision: 458

Added:
   branches/nw-interface/src/jar/itql/java/org/mulgara/itql/Aliasing.java
Log:
The idea of this interface is to keep aliases inside the package, but it will require Interpreter implementations to become package accessible only, as the interface forces them to make their interfaced methods public.

Added: branches/nw-interface/src/jar/itql/java/org/mulgara/itql/Aliasing.java
===================================================================
--- branches/nw-interface/src/jar/itql/java/org/mulgara/itql/Aliasing.java	2007-09-26 05:14:48 UTC (rev 457)
+++ branches/nw-interface/src/jar/itql/java/org/mulgara/itql/Aliasing.java	2007-09-28 19:03:29 UTC (rev 458)
@@ -0,0 +1,41 @@
+/**
+ * The contents of this file are subject to the Open Software License
+ * Version 3.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.opensource.org/licenses/osl-3.0.txt
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ */
+package org.mulgara.itql;
+
+import java.net.URI;
+import java.util.Map;
+
+/**
+ * An interface for indicating that an object holds and manages aliases.
+ * @created Sep 26, 2007
+ * @author Paul Gearon
+ * @copyright &copy;2007 <a href="mailto:pgearon at users.sourceforge.net">Paul Gearon</a>
+ * @licence <a href="{@docRoot}/../../LICENCE.txt">Open Software License v3.0</a>
+ */
+interface Aliasing {
+  
+  /**
+   * Sets the alias map associated with this session.
+   *
+   * @param aliasMap the alias map associated with this interpreter
+   */
+  void setAliasMap(Map<String,URI> aliasMap);
+
+
+  /**
+   * Returns the alias map associated with this session.
+   *
+   * @return the alias namespace map associated with this session
+   */
+  Map<String,URI> getAliasMap();
+
+}




More information about the Mulgara-svn mailing list