[isidorus-cvs] r510 - branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel
lgiessmann at common-lisp.net
lgiessmann at common-lisp.net
Mon Jun 27 11:38:29 UTC 2011
Author: lgiessmann
Date: Mon Jun 27 04:38:29 2011
New Revision: 510
Log:
gdl-frontend: Topic Maps Model: fixed a bug in tm.js => Topic.createName(String value, JsArray<Topic> scope) when the default name type is used
Modified:
branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Topic.java
Modified: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Topic.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Topic.java Mon Jun 27 04:01:52 2011 (r509)
+++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Topic.java Mon Jun 27 04:38:29 2011 (r510)
@@ -5,6 +5,9 @@
public class Topic extends JavaScriptObject implements Construct{
+ private final String defaultNameTypePsi = "http://psi.topicmaps.org/iso13250/model/topic-name";
+
+
protected Topic() {}
@@ -23,9 +26,11 @@
}-*/;
- public final native Name createName(String value, JsArray<Topic> scope) /*-{
- return this.createName(value, scope);
- }-*/;
+ public Name createName(String value, JsArray<Topic> scope){
+ TopicMap tm = this.getTopicMap();
+ Topic defaultNameType = tm.createTopicBySubjectIdentifier(tm.createLocator(defaultNameTypePsi));
+ return this.createName(value, defaultNameType, scope);
+ }
public final native Name createName(String value, Topic type, JsArray<Topic> scope) /*-{
More information about the Isidorus-cvs
mailing list