[isidorus-cvs] r503 - in branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model: . .settings src src/us src/us/isidor src/us/isidor/gdl src/us/isidor/gdl/anaToMia src/us/isidor/gdl/anaToMia/TopicMaps src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel test test-classes test-classes/us test-classes/us/isidor test-classes/us/isidor/gdl test-classes/us/isidor/gdl/anaToMia test-classes/us/isidor/gdl/anaToMia/TopicMaps test/us test/us/isidor test/us/isidor/gdl t

Author: lgiessmann Date: Fri Jun 24 05:25:15 2011 New Revision: 503 Log: fixed some svn problems II Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/.classpath branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/.project branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/.settings/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/.settings/com.google.gdt.eclipse.core.prefs branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/.settings/com.google.gwt.eclipse.core.prefs branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/GDL_TopicMaps_Model.gwt.xml branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/ExporterException.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/FormatException.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/MissingReference.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/TmEngine.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Association.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Construct.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/DatatypeAware.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Locator.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Name.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Occurrence.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Reifiable.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/ReifiableStub.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Role.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Scoped.java 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/TopicMap.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/TopicMapsTypes.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Typed.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Variant.java branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/test/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/test-classes/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/test-classes/us/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/test-classes/us/isidor/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/test-classes/us/isidor/gdl/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/test-classes/us/isidor/gdl/anaToMia/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/test-classes/us/isidor/gdl/anaToMia/TopicMaps/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/test/us/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/test/us/isidor/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/test/us/isidor/gdl/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/test/us/isidor/gdl/anaToMia/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/test/us/isidor/gdl/anaToMia/TopicMaps/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/GDL_TopicMaps_Model.css branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/GDL_TopicMaps_Model.html branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/GDL_TopicMaps_Model.gwt.xml branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/ExporterException.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/FormatException.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/MissingReference.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/TmEngine.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Association.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Construct.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/DatatypeAware.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Locator.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Name.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Occurrence.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Reifiable.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/ReifiableStub.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Role.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Scoped.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Topic.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/TopicMap.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/TopicMapsTypes.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Typed.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Variant.class (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/deploy/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/deploy/gdl_topicmaps_model/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/deploy/gdl_topicmaps_model/rpcPolicyManifest/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/deploy/gdl_topicmaps_model/rpcPolicyManifest/manifest.txt branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/lib/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/lib/gwt-servlet.jar (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/web.xml branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/gdl_topicmaps_model/ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/gdl_topicmaps_model/clear.cache.gif (contents, props changed) branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/gdl_topicmaps_model/gdl_topicmaps_model.nocache.js branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/gdl_topicmaps_model/hosted.html Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/.classpath ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/.classpath Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="src" output="test-classes" path="test"/> + <classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="output" path="war/WEB-INF/classes"/> +</classpath> Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/.project ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/.project Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>GDL_TopicMaps_Model</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.google.gdt.eclipse.core.webAppProjectValidator</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.google.gwt.eclipse.core.gwtProjectValidator</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>com.google.gwt.eclipse.core.gwtNature</nature> + </natures> +</projectDescription> Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/.settings/com.google.gdt.eclipse.core.prefs ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/.settings/com.google.gdt.eclipse.core.prefs Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,4 @@ +#Fri Jun 24 13:38:19 CEST 2011 +eclipse.preferences.version=1 +warSrcDir=war +warSrcDirIsOutput=true Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/.settings/com.google.gwt.eclipse.core.prefs ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/.settings/com.google.gwt.eclipse.core.prefs Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,3 @@ +#Fri Jun 24 13:38:19 CEST 2011 +eclipse.preferences.version=1 +filesCopiedToWebInfLib=gwt-servlet.jar Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/GDL_TopicMaps_Model.gwt.xml ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/GDL_TopicMaps_Model.gwt.xml Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module rename-to='gdl_topicmaps_model'> + <!-- Inherit the core Web Toolkit stuff. --> + <inherits name='com.google.gwt.user.User'/> + + <!-- Inherit the default GWT style sheet. You can change --> + <!-- the theme of your GWT application by uncommenting --> + <!-- any one of the following lines. --> + <!--<inherits name='com.google.gwt.user.theme.clean.Clean'/>--> + <!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> --> + <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> --> + <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> --> + + <!-- Other module inherits --> + + <!-- Specify the app entry point class. --> + <!--<entry-point class='us.isidor.gdl.anaToMia.TopicMaps.client.GDL_TopicMaps_Model'/>--> + + <!-- Specify the paths for translatable code --> + <source path='TmEngineModel'/> + <source path='TopicMapsModel'/> + + <!-- Reference the javascript file that is necessary for tmjs --> + <script src="lib/tm.min.js" /> +</module> Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/ExporterException.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/ExporterException.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,18 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TmEngineModel; + +public class ExporterException extends Exception { + private static final long serialVersionUID = 1L; + private String message = ""; + + protected ExporterException() {} + + + public ExporterException(String message){ + this.message = message; + } + + + public String getMessage(){ + return this.message; + } +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/FormatException.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/FormatException.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,18 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TmEngineModel; + +public class FormatException extends Exception{ + private static final long serialVersionUID = 1L; + private String message = ""; + + protected FormatException() {} + + + public FormatException(String message){ + this.message = message; + } + + + public String getMessage(){ + return this.message; + } +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/MissingReference.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/MissingReference.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,18 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TmEngineModel; + +public class MissingReference extends Exception { + private static final long serialVersionUID = 1L; + private String message = ""; + + protected MissingReference() {} + + + public MissingReference(String message){ + this.message = message; + } + + + public String getMessage(){ + return this.message; + } +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/TmEngine.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/TmEngine.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,31 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TmEngineModel; + +import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.Association; +import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.Name; +import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.Occurrence; +import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.Role; +import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.Topic; +import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.TopicMap; +import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.Variant; + + + +public interface TmEngine{ + public TopicMap importTopicMap(String tmData, TopicMap tm) throws FormatException, MissingReference; + public Topic importTopic(String tmData, TopicMap tm) throws FormatException, MissingReference; + public Name importName(String tmData, TopicMap tm) throws FormatException, MissingReference; + public Variant importVariant(String tmData, TopicMap tm) throws FormatException, MissingReference; + public Occurrence importOccurrence(String tmData, TopicMap tm) throws FormatException, MissingReference; + public Association importAssociation(String tmData, TopicMap tm) throws FormatException, MissingReference; + public Role importRole(String tmData, TopicMap tm) throws FormatException, MissingReference; + public String exportTm(TopicMap tm) throws ExporterException; + public String exportTm(Topic topic) throws ExporterException; + public String exportTm(Name name) throws ExporterException; + public String exportTm(Variant variant) throws ExporterException; + public String exportTm(Occurrence occurrence) throws ExporterException; + public String exportTm(Association association) throws ExporterException; + public String exportTm(Role role) throws ExporterException; + public TopicMap createTopicMap(String tmLocator); + public TopicMap getTopicMap(String tmLocator); + public TopicMap[] getTopicMaps(); +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Association.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Association.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,104 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + +import com.google.gwt.core.client.JavaScriptObject; +import com.google.gwt.core.client.JsArray; + + +public class Association extends JavaScriptObject implements Scoped, Reifiable, Typed{ + protected Association() {} + + + public final native Role createRole(Topic type, Topic player) /*-{ + return this.createRole(type, player); + }-*/; + + + public final native String getId() /*-{ + return this.getId() + ""; + }-*/; + + + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + this.addItemIdentifier(itemIdentifier); + }-*/; + + + public final native JsArray<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + public final native TopicMap getParent() /*-{ + return this.getParent(); + }-*/; + + + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + public final native void remove() /*-{ + this.remove(); + }-*/; + + + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(itemIdentifier); + }-*/; + + + public final native Topic getReifier() /*-{ + return this.getReifier(); + }-*/; + + + public final native void setReifier(Topic reifier) /*-{ + this.setReifier(reifier); + }-*/; + + + public final native void addTheme(Topic theme) /*-{ + this.addTheme(theme); + }-*/; + + + public final native void removeTheme(Topic theme) /*-{ + this.removeTheme(theme); + }-*/; + + + public final native JsArray<Topic> getScope() /*-{ + return this.getScope(); + }-*/; + + + public final native Topic getType() /*-{ + return this.getType(); + }-*/; + + + public final native void setType(Topic type) /*-{ + this.setType(type); + }-*/; + + + public final native JsArray<Role> getRoles() /*-{ + return this.getRoles(); + }-*/; + + + public final native JsArray<Role> getRoles(Topic type) /*-{ + return this.getRoles(type); + }-*/; + + + public final native JsArray<Topic> getRoleTypes() /*-{ + return this.getRoleTypes(); + }-*/; + + + public final TopicMapsTypes classType(){ + return TopicMapsTypes.Association; + } +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Construct.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Construct.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,23 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + + +public interface Construct { + /* instances of JavaScriptObject are not allowed to implement interfaces + * defining methods, so all interfaces in the package + * us.isidor.gdl.anaToMia.TmEngine.TopicMaps have no mehtods defined. + * That means classes derived of such an interfaces must be implemented carefully + * and take all commented methods into account. + */ + + + /* + public String getId(); + public boolean equals(Object other); + public void addItemIdentifier(Locator itemIdentifier); + public JsArray<Locator> getItemIdentifiers(); + public Construct getParent(); + public TopicMap getTopicMap(); + public void remove(); + public void removeItemIdentifier(Locator itemIdentifier); + */ +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/DatatypeAware.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/DatatypeAware.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,30 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + + +public interface DatatypeAware extends Scoped, Reifiable{ + /* instances of JavaScriptObject are not allowed to implement interfaces + * defining methods, so all interfaces in the package + * us.isidor.gdl.anaToMia.TmEngine.TopicMaps have no mehtods defined. + * That means classes derived of such an interfaces must be implemented carefully + * and take all commented methods into account. + */ + + /* + public BigDecimal decimalValue(); + public float floatValue(); + public Locator getDatatype(); + public String getValue(); + public BigInteger integerValue(); + public int intValue(); + public Locator locatorValue(); + public Long longValue(); //long is not supported by JSNI + public void setValue(BigDecimal value); + public void setValue(BigInteger value); + public void setValue(float value); + public void setValue(int value); + public void setValue(Locator value); + public void setValue(Long value); //long is not supported by JSNI + public void setValue(String value); + public void setValue(String value, Locator datatype); + */ +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Locator.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Locator.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,26 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + +import com.google.gwt.core.client.JavaScriptObject; + +public class Locator extends JavaScriptObject{ + protected Locator() {}; + + public final native boolean equal(Object other) /*-{ + return this.equals(other); + }-*/; + + + public final native String getReference() /*-{ + return this.getReference(); + }-*/; + + + public final native Locator resolve(String reference) /*-{ + return this.resolve(reference); + }-*/; + + + public final TopicMapsTypes classType(){ + return TopicMapsTypes.Locator; + } +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Name.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Name.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,114 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + +import com.google.gwt.core.client.JavaScriptObject; +import com.google.gwt.core.client.JsArray; + +public class Name extends JavaScriptObject implements Scoped, Reifiable, Typed{ + protected Name() {} + + + public final native Variant createVariant(Locator value, JsArray<Topic> scope) /*-{ + return this.createVariant(value, scope); + }-*/; + + + public final native Variant createVariant(String value, JsArray<Topic> scope) /*-{ + return this.createVariant(value, scope); + }-*/; + + + public final native Variant createVariant(String value, Locator datatype, JsArray<Topic> scope) /*-{ + return this.createVariant(value, datatype, scope); + }-*/; + + + public final native String getValue() /*-{ + return this.getValue(); + }-*/; + + + public final native JsArray<Variant> getVariants() /*-{ + return this.getVariants(); + }-*/; + + + public final native void setValue(String value) /*-{ + this.setValue(value); + }-*/; + + + public final native String getId() /*-{ + return this.getId() + ""; + }-*/; + + + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + this.addItemIdentifier(itemIdentifier); + }-*/; + + + public final native JsArray<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + public final native Topic getParent() /*-{ + return this.getParent(); + }-*/; + + + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + public final native void remove() /*-{ + this.remove(); + }-*/; + + + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(itemIdentifier); + }-*/; + + + public final native Topic getType() /*-{ + return this.getType(); + }-*/; + + + public final native void setType(Topic type) /*-{ + this.setType(type); + }-*/; + + + public final native Topic getReifier() /*-{ + return this.getReifier(); + }-*/; + + + public final native void setReifier(Topic reifier) /*-{ + this.setReiffier(reifier); + }-*/; + + + public final native void addTheme(Topic theme) /*-{ + this.addTheme(theme); + }-*/; + + + public final native void removeTheme(Topic theme) /*-{ + this.removeTheme(theme); + + }-*/; + + + public final native JsArray<Topic> getScope() /*-{ + return this.getScope(); + }-*/; + + + public final TopicMapsTypes classType(){ + return TopicMapsTypes.Name; + } +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Occurrence.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Occurrence.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,166 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + +import java.math.BigDecimal; +import java.math.BigInteger; +import com.google.gwt.core.client.JavaScriptObject; +import com.google.gwt.core.client.JsArray; + + +public class Occurrence extends JavaScriptObject implements DatatypeAware, Typed { + protected Occurrence() {} + + + public final native String getId() /*-{ + return this.getId() + ""; + }-*/; + + + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + this.addItemIdentifier(itemIdentifier); + }-*/; + + + public final native JsArray<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + public final native Topic getParent() /*-{ + return this.getParent(); + }-*/; + + + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + public final native void remove() /*-{ + this.remove(); + }-*/; + + + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(); + }-*/; + + + public final native Topic getType() /*-{ + return this.getType(); + }-*/; + + + public final native void setType(Topic type) /*-{ + this.setType(type); + }-*/; + + + public final native void addTheme(Topic theme) /*-{ + this.addTheme(theme); + }-*/; + + + public final native void removeTheme(Topic theme) /*-{ + this.removeTheme(theme); + }-*/; + + + public final native JsArray<Topic> getScope() /*-{ + return this.getScope(); + }-*/; + + + public final native Topic getReifier() /*-{ + return this.getReifier(); + }-*/; + + + public final native void setReifier(Topic reifier) /*-{ + tis.setReifier(reifier); + }-*/; + + + public final native BigDecimal decimalValue() /*-{ + return this.decimalValue(); + }-*/; + + + public final native float floatValue() /*-{ + return this.floatValue(); + }-*/; + + + public final native Locator getDatatype() /*-{ + return this.getDatatype(); + }-*/; + + + public final native String getValue() /*-{ + return this.getValue(); + }-*/; + + + public final native BigInteger integerValue() /*-{ + return this.integerValue(); + }-*/; + + + public final native int intValue() /*-{ + return this.intValue(); + }-*/; + + + public final native Locator locatorValue() /*-{ + return this.locatorValue(); + }-*/; + + + public final native Long longValue() /*-{ + this.longValue(); + }-*/; + + + public final native void setValue(BigDecimal value) /*-{ + this.setValue(value); + }-*/; + + + public final native void setValue(BigInteger value) /*-{ + this.setValue(value); + }-*/; + + + public final native void setValue(float value) /*-{ + this.setValue(value); + }-*/; + + + public final native void setValue(int value) /*-{ + this.setValue(value); + }-*/; + + + public final native void setValue(Locator value) /*-{ + this.setValue(value); + }-*/; + + + public final native Long setValue(Long value) /*-{ + this.setValue(value); + }-*/; + + + public final native void setValue(String value) /*-{ + this.setValue(value); + }-*/; + + + public final native void setValue(String value, Locator datatype) /*-{ + this.setValue(value); + }-*/; + + + public final TopicMapsTypes classType(){ + return TopicMapsTypes.Occurrence; + } +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Reifiable.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Reifiable.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,15 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + +public interface Reifiable extends Construct{ + /* instances of JavaScriptObject are not allowed to implement interfaces + * defining methods, so all interfaces in the package + * us.isidor.gdl.anaToMia.TmEngine.TopicMaps have no mehtods defined. + * That means classes derived of such an interfaces must be implemented carefully + * and take all commented methods into account. + */ + + /* + public Topic getReifier(); + public void setReifier(Topic reifier); + */ +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/ReifiableStub.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/ReifiableStub.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,59 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + +import com.google.gwt.core.client.JavaScriptObject; +import com.google.gwt.core.client.JsArray; + + +public class ReifiableStub extends JavaScriptObject implements Reifiable { + protected ReifiableStub() {} + + + public final native String getId() /*-{ + return this.getId() + ""; + }-*/; + + + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + this.addItemIdentifier(itemIdentifier); + }-*/; + + + public final native JsArray<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + public final native Construct getParent() /*-{ + return this.getParent(); + }-*/; + + + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + public final native void remove() /*-{ + this.remove(); + }-*/; + + + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(itemIdentifier); + }-*/; + + + public final native Topic getReifier() /*-{ + return this.getReifier(); + }-*/; + + + public final native void setReifier(Topic reifier) /*-{ + this.setReifier(reifier); + }-*/; + + + public final TopicMapsTypes classType(){ + return TopicMapsTypes.Reifiable; + } +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Role.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Role.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,80 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + + +import com.google.gwt.core.client.JavaScriptObject; +import com.google.gwt.core.client.JsArray; + + +public class Role extends JavaScriptObject implements Reifiable, Typed { + protected Role() {} + + + public final native Topic getPlayer() /*-{ + return this.getPlayer(); + }-*/; + + + public final native void setPlayer(Topic player) /*-{ + this.setPlayer(player); + }-*/; + + + public final native String getId() /*-{ + return this.getId() + ""; + }-*/; + + + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + this.addItemIdentifier(itemIdentifier); + }-*/; + + + public final native JsArray<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + public final native Association getParent() /*-{ + return this.getParent(); + }-*/; + + + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + public final native void remove() /*-{ + this.remove(); + }-*/; + + + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(itemIdentifier); + }-*/; + + + public final native Topic getType() /*-{ + return this.getType(); + }-*/; + + + public final native void setType(Topic type) /*-{ + this.setType(type); + }-*/; + + + public final native Topic getReifier() /*-{ + return this.getReifier(); + }-*/; + + + public final native void setReifier(Topic reifier) /*-{ + this.setReifier(reifier); + }-*/; + + + public final TopicMapsTypes classType(){ + return TopicMapsTypes.Role; + } +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Scoped.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Scoped.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,18 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + + +public interface Scoped extends Construct{ + /* instances of JavaScriptObject are not allowed to implement interfaces + * defining methods, so all interfaces in the package + * us.isidor.gdl.anaToMia.TmEngine.TopicMaps have no mehtods defined. + * That means classes derived of such an interfaces must be implemented carefully + * and take all commented methods into account. + */ + + + /* + public void addTheme(Topic theme); + public void removeTheme(Topic theme); + public JsArray<Topic> getScope(); + */ +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Topic.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Topic.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,164 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + +import com.google.gwt.core.client.JavaScriptObject; +import com.google.gwt.core.client.JsArray; + + +public class Topic extends JavaScriptObject implements Construct{ + protected Topic() {} + + + public final native void addSubjectLocator(Locator subjectLocator) /*-{ + this.addSubjectLocator(subjectLocator); + }-*/; + + + public final native void addSubjectIdentifier(Locator subjectIdentifier) /*-{ + this.addSubjectIdentifier(subjectIdentifier); + }-*/; + + + public final native void addType(Topic type) /*-{ + this.addType(type); + }-*/; + + + public final native Name createName(String value, JsArray<Topic> scope) /*-{ + return this.createName(value, scope); + }-*/; + + + public final native Name createName(String value, Topic type, JsArray<Topic> scope) /*-{ + return this.createName(value, type, scope); + }-*/; + + + public final native Occurrence createOccurrence(Topic type, Locator value, JsArray<Topic> scope) /*-{ + return this.createOccurrence(type, value, scope); + }-*/; + + + public final native Occurrence createOccurrence(Topic type, String value, JsArray<Topic> scope) /*-{ + return this.createOccurrence(type, value, scope); + }-*/; + + + public final native Occurrence createOccurrence(Topic type, String value, Locator datatype, JsArray<Topic> scope) /*-{ + return this.createOccurrence(type, value, datatype, scope); + }-*/; + + + public final native JsArray<Name> getNames() /*-{ + return this.getNames(); + }-*/; + + + public final native JsArray<Name> getNames(Topic type) /*-{ + return this.getNames(type); + }-*/; + + + public final native JsArray<Occurrence> getOccurrences() /*-{ + return this.getOccurrences(); + }-*/; + + + public final native JsArray<Occurrence> getOccurrences(Topic type) /*-{ + return this.getOccurrences(type); + }-*/; + + + public final native Reifiable getReified() /*-{ + return this.getReified(); + }-*/; + + + public final native JsArray<Role> getRolesPlayed() /*-{ + return this.getRolesPlayed(); + }-*/; + + + public final native JsArray<Role> getRolesPlayed(Topic type) /*-{ + return this.getRolesPlayed(type); + }-*/; + + + public final native JsArray<Role> getRolesPlayed(Topic type, Topic assocType) /*-{ + return this.getRolesPlayed(type, assocType); + }-*/; + + + public final native JsArray<Locator> getSubjectIdentifiers() /*-{ + return this.getSubjectIdentifiers(); + }-*/; + + + public final native JsArray<Locator> getSubjectLocators() /*-{ + return this.getSubjectLocators(); + }-*/; + + + public final native JsArray<Topic> getTypes() /*-{ + return this.getTypes(); + }-*/; + + + public final native void mergeIn(Topic other) /*-{ + this.mergeIn(other); + }-*/; + + + public final native void removeSubjectIdentifier(Locator subjectIdentifier) /*-{ + this.removeSubjectIdentifier(subjectIdentifier); + }-*/; + + + public final native void removeSubjectLocator(Locator subjectLocator) /*-{ + this.removeSubjectIdentifier(subjectLocator); + }-*/; + + + public final native void removeType(Topic type) /*-{ + this.removeType(type); + }-*/; + + + public final native String getId() /*-{ + return this.getId() + ""; + }-*/; + + + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + this.addItemIdentifier(); + }-*/; + + + public final native JsArray<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + public final native TopicMap getParent() /*-{ + return this.getParent(); + }-*/; + + + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + public final native void remove() /*-{ + this.remove(); + }-*/; + + + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(itemIdentifier); + }-*/; + + + public final TopicMapsTypes classType(){ + return TopicMapsTypes.Topic; + } +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/TopicMap.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/TopicMap.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,134 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + +import com.google.gwt.core.client.JavaScriptObject; +import com.google.gwt.core.client.JsArray; + + +public class TopicMap extends JavaScriptObject implements Reifiable{ + protected TopicMap() {} + + + public final native void close() /*-{ + this.close(); + }-*/; + + + public final native Association createAssociation(Topic type, JsArray<Topic> scope) /*-{ + this.createAssociation(type, scope); + }-*/; + + + public final native Topic createTopic() /*-{ + return this.createTopic(); + }-*/; + + + public final native Topic createTopicByItemIdentifier(Locator itemIdentifier) /*-{ + return this.createTopicByItemIdentifier(itemIdentifier); + }-*/; + + + public final native Topic createTopicBySubjectLocator(Locator subjectLocator) /*-{ + return this.createTopicBySubjectLocator(subjectLocator); + }-*/; + + + public final native Topic createTopicBySubjectIdentifier(Locator subjectIdentifier) /*-{ + return this.createTopicBySubjectIdentifier(subjectIdentifier); + }-*/; + + + public final native JsArray<Association> getAssociations() /*-{ + return this.getAssociations(); + }-*/; + + + public final native Construct getConstructById(String id) /*-{ + return this.getConstructById(id); + }-*/; + + + public final native Construct getConstructByItemIdentifier(Locator itemIdentifier) /*-{ + return this.getConstructByItemIdentifier(itemIdentifier); + }-*/; + + + public final native Locator getLocator() /*-{ + return this.getLocator(); + }-*/; + + + public final native Construct getParent() /*-{ + return this.getParent(); + }-*/; + + + public final native Topic getTopicBySubjectLocator(Locator subjectLocator) /*-{ + return this.getTopicBySubjectLocator(subjectLocator); + }-*/; + + + public final native Topic getTopicBySubjectIdentifier(Locator subjectIdentifier) /*-{ + return this.getTopicBySubjectIdentifier(subjectIdentifier); + }-*/; + + + public final native JsArray<Topic> getTopics() /*-{ + return this.getTopics(); + }-*/; + + + public final native void mergeIn(TopicMap other) /*-{ + this.mergeIn(other); + }-*/; + + + public final native String getId() /*-{ + return this.getId() + ""; + }-*/; + + + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + return this.addItemIdentifier(itemIdentifier); + }-*/; + + + public final native JsArray<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + public final native void remove() /*-{ + return this.remove(); + }-*/; + + + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(itemIdentifier); + }-*/; + + + public final native Topic getReifier() /*-{ + return this.getReifier(); + }-*/; + + + public final native void setReifier(Topic reifier) /*-{ + this.setReifier(reifier); + }-*/; + + + public final native Locator createLocator(String reference) /*-{ + return this.createLocator(reference); + }-*/; + + + public final TopicMapsTypes classType(){ + return TopicMapsTypes.TopicMap; + } +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/TopicMapsTypes.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/TopicMapsTypes.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,17 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + +public enum TopicMapsTypes { + TopicMap, + Association, + Role, + Topic, + Name, + Variant, + Occurrence, + Reifiable, + Scoped, + Typed, + Locator, + DatatypeAware, + Construct +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Typed.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Typed.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,15 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + +public interface Typed extends Construct{ + /* instances of JavaScriptObject are not allowed to implement interfaces + * defining methods, so all interfaces in the package + * us.isidor.gdl.anaToMia.TmEngine.TopicMaps have no mehtods defined. + * That means classes derived of such an interfaces must be implemented carefully + * and take all commented methods into account. + */ + + /* + public Topic getType(); + public void setType(Topic type); + */ +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Variant.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Variant.java Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,155 @@ +package us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel; + +import java.math.BigDecimal; +import java.math.BigInteger; +import com.google.gwt.core.client.JavaScriptObject; +import com.google.gwt.core.client.JsArray; + + +public class Variant extends JavaScriptObject implements DatatypeAware{ + protected Variant() {} + + public final native void addTheme(Topic theme) /*-{ + this.addTheme(theme); + }-*/; + + + public final native void removeTheme(Topic theme) /*-{ + this.removeTheme(theme); + }-*/; + + + public final native JsArray<Topic> getScope() /*-{ + return this.getScope(); + }-*/; + + + public final native String getId() /*-{ + return this.getId() + ""; + }-*/; + + + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + this.addItemIdentifier(itemIdentifier); + }-*/; + + + public final native JsArray<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + public final native Name getParent() /*-{ + return this.getParent(); + }-*/; + + + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + public final native void remove() /*-{ + this.remove(); + }-*/; + + + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(itemIdentifier); + }-*/; + + + public final native Topic getReifier() /*-{ + return this.getReifier(); + }-*/; + + + public final native void setReifier(Topic reifier) /*-{ + this.setReifier(reifier); + }-*/; + + + public final native BigDecimal decimalValue() /*-{ + return this.decimalValue(); + }-*/; + + + public final native float floatValue() /*-{ + return this.floatValue(); + }-*/; + + + public final native Locator getDatatype() /*-{ + return this.getDatatype(); + }-*/; + + + public final native String getValue() /*-{ + return this.getValue(); + }-*/; + + + public final native BigInteger integerValue() /*-{ + return this.integerValue(); + }-*/; + + + public final native int intValue() /*-{ + return this.intValue(); + }-*/; + + + public final native Locator locatorValue() /*-{ + return this.locatorValue(); + }-*/; + + + public final native Long longValue() /*-{ + return this.longValue(); + }-*/; + + + public final native void setValue(BigDecimal value) /*-{ + this.setValue(value); + }-*/; + + + public final native void setValue(BigInteger value) /*-{ + this.setValue(value); + }-*/; + + + public final native void setValue(float value) /*-{ + this.setValue(value); + }-*/; + + + public final native void setValue(int value) /*-{ + this.setValue(value); + }-*/; + + + public final native void setValue(Locator value) /*-{ + this.setValue(value); + }-*/; + + + public final native Long setValue(Long value) /*-{ + this.setValue(value); + }-*/; + + + public final native void setValue(String value) /*-{ + this.setValue(value); + }-*/; + + + public final native void setValue(String value, Locator datatype) /*-{ + this.setValue(value); + }-*/; + + + public final TopicMapsTypes classType(){ + return TopicMapsTypes.Variant; + } +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/GDL_TopicMaps_Model.css ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/GDL_TopicMaps_Model.css Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,34 @@ +/** Add css rules here for your application. */ + + +/** Example rules used by the template application (remove for your app) */ +h1 { + font-size: 2em; + font-weight: bold; + color: #777777; + margin: 40px 0px 70px; + text-align: center; +} + +.sendButton { + display: block; + font-size: 16pt; +} + +/** Most GWT widgets already have a style name defined */ +.gwt-DialogBox { + width: 400px; +} + +.dialogVPanel { + margin: 5px; +} + +.serverResponseLabelError { + color: red; +} + +/** Set ids using widget.getElement().setId("idOfElement") */ +#closeButton { + margin: 15px 6px 6px; +} Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/GDL_TopicMaps_Model.html ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/GDL_TopicMaps_Model.html Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,63 @@ +<!doctype html> +<!-- The DOCTYPE declaration above will set the --> +<!-- browser's rendering engine into --> +<!-- "Standards Mode". Replacing this declaration --> +<!-- with a "Quirks Mode" doctype may lead to some --> +<!-- differences in layout. --> + +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + + <!-- --> + <!-- Consider inlining CSS to reduce the number of requested files --> + <!-- --> + <link type="text/css" rel="stylesheet" href="GDL_TopicMaps_Model.css"> + + <!-- --> + <!-- Any title is fine --> + <!-- --> + <title>Web Application Starter Project</title> + + <!-- --> + <!-- This script loads your compiled module. --> + <!-- If you add any GWT meta tags, they must --> + <!-- be added before this line. --> + <!-- --> + <script type="text/javascript" language="javascript" src="gdl_topicmaps_model/gdl_topicmaps_model.nocache.js"></script> + </head> + + <!-- --> + <!-- The body can have arbitrary html, or --> + <!-- you can leave the body empty if you want --> + <!-- to create a completely dynamic UI. --> + <!-- --> + <body> + + <!-- OPTIONAL: include this if you want history support --> + <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe> + + <!-- RECOMMENDED if your web app will not function without JavaScript enabled --> + <noscript> + <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif"> + Your web browser must have JavaScript enabled + in order for this application to display correctly. + </div> + </noscript> + + <h1>Web Application Starter Project</h1> + + <table align="center"> + <tr> + <td colspan="2" style="font-weight:bold;">Please enter your name:</td> + </tr> + <tr> + <td id="nameFieldContainer"></td> + <td id="sendButtonContainer"></td> + </tr> + <tr> + <td colspan="2" style="color:red;" id="errorLabelContainer"></td> + </tr> + </table> + </body> +</html> Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/GDL_TopicMaps_Model.gwt.xml ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/GDL_TopicMaps_Model.gwt.xml Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module rename-to='gdl_topicmaps_model'> + <!-- Inherit the core Web Toolkit stuff. --> + <inherits name='com.google.gwt.user.User'/> + + <!-- Inherit the default GWT style sheet. You can change --> + <!-- the theme of your GWT application by uncommenting --> + <!-- any one of the following lines. --> + <!--<inherits name='com.google.gwt.user.theme.clean.Clean'/>--> + <!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> --> + <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> --> + <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> --> + + <!-- Other module inherits --> + + <!-- Specify the app entry point class. --> + <!--<entry-point class='us.isidor.gdl.anaToMia.TopicMaps.client.GDL_TopicMaps_Model'/>--> + + <!-- Specify the paths for translatable code --> + <source path='TmEngineModel'/> + <source path='TopicMapsModel'/> + + <!-- Reference the javascript file that is necessary for tmjs --> + <script src="lib/tm.min.js" /> +</module> Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/ExporterException.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/FormatException.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/MissingReference.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TmEngineModel/TmEngine.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Association.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Construct.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/DatatypeAware.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Locator.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Name.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Occurrence.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Reifiable.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/ReifiableStub.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Role.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Scoped.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Topic.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/TopicMap.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/TopicMapsTypes.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Typed.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/classes/us/isidor/gdl/anaToMia/TopicMaps/TopicMapsModel/Variant.class ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/deploy/gdl_topicmaps_model/rpcPolicyManifest/manifest.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/deploy/gdl_topicmaps_model/rpcPolicyManifest/manifest.txt Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,2 @@ +# Module gdl_topicmaps_model +# RPC service class, partial path of RPC policy file Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/lib/gwt-servlet.jar ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/web.xml ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/WEB-INF/web.xml Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE web-app + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" + "http://java.sun.com/dtd/web-app_2_3.dtd"> + +<web-app> + + <!-- Servlets --> + + <!-- Default page to serve --> + <welcome-file-list> + <welcome-file>GDL_TopicMaps_Model.html</welcome-file> + </welcome-file-list> + +</web-app> Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/gdl_topicmaps_model/clear.cache.gif ============================================================================== Binary file. No diff available. Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/gdl_topicmaps_model/gdl_topicmaps_model.nocache.js ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/gdl_topicmaps_model/gdl_topicmaps_model.nocache.js Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,16 @@ +function gdl_topicmaps_model(){var N='',ub='" for "gwt:onLoadErrorFn"',sb='" for "gwt:onPropertyErrorFn"',gb='"><\/script>',X='#',Pb='.cache.html',Z='/',Ob=':',mb='::',Ub='<script defer="defer">gdl_topicmaps_model.onInjectionDone(\'gdl_topicmaps_model\')<\/script>',fb='<script id="',Sb='<script language="javascript" src="',pb='=',Y='?',rb='Bad handler "',Qb='DOMContentLoaded',Nb="GWT module 'gdl_topicmaps_model' may need to be (re)compiled",hb='SCRIPT',eb='__gwt_marker_gdl_topicmaps_model',ib='base',ab='baseUrl',R='begin',Q='bootstrap',_='clear.cache.gif',ob='content',W='end',O='gdl_topicmaps_model',cb='gdl_topicmaps_model.nocache.js',lb='gdl_topicmaps_model::',Hb='gecko',Ib='gecko1_8',S='gwt.codesvr=',T='gwt.hosted=',U='gwt.hybrid',tb='gwt:onLoadErrorFn',qb='gwt:onPropertyErrorFn',nb='gwt:property',Lb='hosted.html?gdl_topicmaps_model',Gb='ie6',Fb='ie8',Eb='ie9',vb='iframe',$='img',wb="javascript:''",Rb='lib/tm.min.js',Tb='lib/tm.min.js"><\/script>',Kb='loadExternalRefs',jb='meta',yb='moduleRequested',V='moduleStartup',Db='msie',kb='name',Ab='opera',xb='position:absolute;width:0;height:0;border:none',Cb='safari',bb='script',Mb='selectingPermutation',P='startup',db='undefined',Jb='unknown',zb='user.agent',Bb='webkit';var l=window,m=document,n=l.__gwtStatsEvent?function(a){return l.__gwtStatsEvent(a)}:null,o=l.__gwtStatsSessionId?l.__gwtStatsSessionId:null,p,q,r,s=N,t={},u=[],v=[],w=[],x=0,y,z;n&&n({moduleName:O,sessionId:o,subSystem:P,evtGroup:Q,millis:(new Date).getTime(),type:R});if(!l.__gwt_stylesLoaded){l.__gwt_stylesLoaded={}}if(!l.__gwt_scriptsLoaded){l.__gwt_scriptsLoaded={}}function A(){var b=false;try{var c=l.location.search;return (c.indexOf(S)!=-1||(c.indexOf(T)!=-1||l.external&&l.external.gwtOnLoad))&&c.indexOf(U)==-1}catch(a){}A=function(){return b};return b} +function B(){if(p&&q){var b=m.getElementById(O);var c=b.contentWindow;if(A()){c.__gwt_getProperty=function(a){return F(a)}}gdl_topicmaps_model=null;c.gwtOnLoad(y,O,s,x);n&&n({moduleName:O,sessionId:o,subSystem:P,evtGroup:V,millis:(new Date).getTime(),type:W})}} +function C(){function e(a){var b=a.lastIndexOf(X);if(b==-1){b=a.length}var c=a.indexOf(Y);if(c==-1){c=a.length}var d=a.lastIndexOf(Z,Math.min(c,b));return d>=0?a.substring(0,d+1):N} +function f(a){if(a.match(/^\w+:\/\//)){}else{var b=m.createElement($);b.src=a+_;a=e(b.src)}return a} +function g(){var a=E(ab);if(a!=null){return a}return N} +function h(){var a=m.getElementsByTagName(bb);for(var b=0;b<a.length;++b){if(a[b].src.indexOf(cb)!=-1){return e(a[b].src)}}return N} +function i(){var a;if(typeof isBodyLoaded==db||!isBodyLoaded()){var b=eb;var c;m.write(fb+b+gb);c=m.getElementById(b);a=c&&c.previousSibling;while(a&&a.tagName!=hb){a=a.previousSibling}if(c){c.parentNode.removeChild(c)}if(a&&a.src){return e(a.src)}}return N} +function j(){var a=m.getElementsByTagName(ib);if(a.length>0){return a[a.length-1].href}return N} +var k=g();if(k==N){k=h()}if(k==N){k=i()}if(k==N){k=j()}if(k==N){k=e(m.location.href)}k=f(k);s=k;return k} +function D(){var b=document.getElementsByTagName(jb);for(var c=0,d=b.length;c<d;++c){var e=b[c],f=e.getAttribute(kb),g;if(f){f=f.replace(lb,N);if(f.indexOf(mb)>=0){continue}if(f==nb){g=e.getAttribute(ob);if(g){var h,i=g.indexOf(pb);if(i>=0){f=g.substring(0,i);h=g.substring(i+1)}else{f=g;h=N}t[f]=h}}else if(f==qb){g=e.getAttribute(ob);if(g){try{z=eval(g)}catch(a){alert(rb+g+sb)}}}else if(f==tb){g=e.getAttribute(ob);if(g){try{y=eval(g)}catch(a){alert(rb+g+ub)}}}}}} +function E(a){var b=t[a];return b==null?null:b} +function F(a){var b=v[a](),c=u[a];if(b in c){return b}var d=[];for(var e in c){d[c[e]]=e}if(z){z(a,d,b)}throw null} +var G;function H(){if(!G){G=true;var a=m.createElement(vb);a.src=wb;a.id=O;a.style.cssText=xb;a.tabIndex=-1;m.body.appendChild(a);n&&n({moduleName:O,sessionId:o,subSystem:P,evtGroup:V,millis:(new Date).getTime(),type:yb});a.contentWindow.location.replace(s+J)}} +v[zb]=function(){var b=navigator.userAgent.toLowerCase();var c=function(a){return parseInt(a[1])*1000+parseInt(a[2])};if(function(){return b.indexOf(Ab)!=-1}())return Ab;if(function(){return b.indexOf(Bb)!=-1}())return Cb;if(function(){return b.indexOf(Db)!=-1&&m.documentMode>=9}())return Eb;if(function(){return b.indexOf(Db)!=-1&&m.documentMode>=8}())return Fb;if(function(){var a=/msie ([0-9]+)\.([0-9]+)/.exec(b);if(a&&a.length==3)return c(a)>=6000}())return Gb;if(function(){return b.indexOf(Hb)!=-1}())return Ib;return Jb};u[zb]={gecko1_8:0,ie6:1,ie8:2,ie9:3,opera:4,safari:5};gdl_topicmaps_model.onScriptLoad=function(){if(G){q=true;B()}};gdl_topicmaps_model.onInjectionDone=function(){p=true;n&&n({moduleName:O,sessionId:o,subSystem:P,evtGroup:Kb,millis:(new Date).getTime(),type:W});B()};D();C();var I;var J;if(A()){if(l.external&&(l.external.initModule&&l.external.initModule(O))){l.location.reload();return}J=Lb;I=N}n&&n({moduleName:O,sessionId:o,subSystem:P,evtGroup:Q,millis:(new Date).getTime(),type:Mb});if(!A()){try{alert(Nb);return;var K=I.indexOf(Ob);if(K!=-1){x=Number(I.substring(K+1));I=I.substring(0,K)}J=I+Pb}catch(a){return}}var L;function M(){if(!r){r=true;B();if(m.removeEventListener){m.removeEventListener(Qb,M,false)}if(L){clearInterval(L)}}} +if(m.addEventListener){m.addEventListener(Qb,function(){H();M()},false)}var L=setInterval(function(){if(/loaded|complete/.test(m.readyState)){H();M()}},50);n&&n({moduleName:O,sessionId:o,subSystem:P,evtGroup:Q,millis:(new Date).getTime(),type:W});n&&n({moduleName:O,sessionId:o,subSystem:P,evtGroup:Kb,millis:(new Date).getTime(),type:R});if(!__gwt_scriptsLoaded[Rb]){__gwt_scriptsLoaded[Rb]=true;document.write(Sb+s+Tb)}m.write(Ub)} +gdl_topicmaps_model(); \ No newline at end of file Added: branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/gdl_topicmaps_model/hosted.html ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TopicMaps_Model/war/gdl_topicmaps_model/hosted.html Fri Jun 24 05:25:15 2011 (r503) @@ -0,0 +1,355 @@ +<html> +<head><script> +var $wnd = parent; +var $doc = $wnd.document; +var $moduleName, $moduleBase, $entry +,$stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null +,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null; +// Lightweight metrics +if ($stats) { + var moduleFuncName = location.search.substr(1); + var moduleFunc = $wnd[moduleFuncName]; + var moduleName = moduleFunc ? moduleFunc.moduleName : "unknown"; + $stats({moduleName:moduleName,sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'}); +} +var $hostedHtmlVersion="2.1"; + +var gwtOnLoad; +var $hosted = "localhost:9997"; + +function loadIframe(url) { + var topDoc = window.top.document; + + // create an iframe + var iframeDiv = topDoc.createElement("div"); + iframeDiv.innerHTML = "<iframe scrolling=no frameborder=0 src='" + url + "'>"; + var iframe = iframeDiv.firstChild; + + // mess with the iframe style a little + var iframeStyle = iframe.style; + iframeStyle.position = "absolute"; + iframeStyle.borderWidth = "0"; + iframeStyle.left = "0"; + iframeStyle.top = "0"; + iframeStyle.width = "100%"; + iframeStyle.backgroundColor = "#ffffff"; + iframeStyle.zIndex = "1"; + iframeStyle.height = "100%"; + + // update the top window's document's body's style + var hostBodyStyle = window.top.document.body.style; + hostBodyStyle.margin = "0"; + hostBodyStyle.height = iframeStyle.height; + hostBodyStyle.overflow = "hidden"; + + // insert the iframe + topDoc.body.insertBefore(iframe, topDoc.body.firstChild); +} + +var ua = navigator.userAgent.toLowerCase(); +if (ua.indexOf("gecko") != -1) { + // install eval wrapper on FF to avoid EvalError problem + var __eval = window.eval; + window.eval = function(s) { + return __eval(s); + } +} +if (ua.indexOf("chrome") != -1) { + // work around __gwt_ObjectId appearing in JS objects + var hop = Object.prototype.hasOwnProperty; + Object.prototype.hasOwnProperty = function(prop) { + return prop != "__gwt_ObjectId" && hop.call(this, prop); + }; + // do the same in our parent as well -- see issue 4486 + // NOTE: this will have to be changed when we support non-iframe-based DevMode + var hop2 = parent.Object.prototype.hasOwnProperty; + parent.Object.prototype.hasOwnProperty = function(prop) { + return prop != "__gwt_ObjectId" && hop2.call(this, prop); + }; +} + +// wrapper to call JS methods, which we need both to be able to supply a +// different this for method lookup and to get the exception back +function __gwt_jsInvoke(thisObj, methodName) { + try { + var args = Array.prototype.slice.call(arguments, 2); + return [0, window[methodName].apply(thisObj, args)]; + } catch (e) { + return [1, e]; + } +} + +var __gwt_javaInvokes = []; +function __gwt_makeJavaInvoke(argCount) { + return __gwt_javaInvokes[argCount] || __gwt_doMakeJavaInvoke(argCount); +} + +function __gwt_doMakeJavaInvoke(argCount) { + // IE6 won't eval() anonymous functions except as r-values + var argList = ""; + for (var i = 0; i < argCount; i++) { + argList += ",p" + i; + } + var argListNoComma = argList.substring(1); + + return eval( + "__gwt_javaInvokes[" + argCount + "] =\n" + + " function(thisObj, dispId" + argList + ") {\n" + + " var result = __static(dispId, thisObj" + argList + ");\n" + + " if (result[0]) {\n" + + " throw result[1];\n" + + " } else {\n" + + " return result[1];\n" + + " }\n" + + " }\n" + ); +} + +/* + * This is used to create tear-offs of Java methods. Each function corresponds + * to exactly one dispId, and also embeds the argument count. We get the "this" + * value from the context in which the function is being executed. + * Function-object identity is preserved by caching in a sparse array. + */ +var __gwt_tearOffs = []; +var __gwt_tearOffGenerators = []; +function __gwt_makeTearOff(proxy, dispId, argCount) { + return __gwt_tearOffs[dispId] || __gwt_doMakeTearOff(dispId, argCount); +} + +function __gwt_doMakeTearOff(dispId, argCount) { + return __gwt_tearOffs[dispId] = + (__gwt_tearOffGenerators[argCount] || __gwt_doMakeTearOffGenerator(argCount))(dispId); +} + +function __gwt_doMakeTearOffGenerator(argCount) { + // IE6 won't eval() anonymous functions except as r-values + var argList = ""; + for (var i = 0; i < argCount; i++) { + argList += ",p" + i; + } + var argListNoComma = argList.substring(1); + + return eval( + "__gwt_tearOffGenerators[" + argCount + "] =\n" + + " function(dispId) {\n" + + " return function(" + argListNoComma + ") {\n" + + " var result = __static(dispId, this" + argList + ");\n" + + " if (result[0]) {\n" + + " throw result[1];\n" + + " } else {\n" + + " return result[1];\n" + + " }\n" + + " }\n" + + " }\n" + ); +} + +function __gwt_makeResult(isException, result) { + return [isException, result]; +} + +function __gwt_disconnected() { + // Prevent double-invocation. + window.__gwt_disconnected = new Function(); + // Do it in a timeout so we can be sure we have a clean stack. + window.setTimeout(__gwt_disconnected_impl, 1); +} + +function __gwt_disconnected_impl() { + __gwt_displayGlassMessage('GWT Code Server Disconnected', + 'Most likely, you closed GWT Development Mode. Or, you might have lost ' + + 'network connectivity. To fix this, try restarting GWT Development Mode and ' + + '<a style="color: #FFFFFF; font-weight: bold;" href="javascript:location.reload()">' + + 'REFRESH</a> this page.'); +} + +// Keep track of z-index to allow layering of multiple glass messages +var __gwt_glassMessageZIndex = 2147483647; + +// Note this method is also used by ModuleSpace.java +function __gwt_displayGlassMessage(summary, details) { + var topWin = window.top; + var topDoc = topWin.document; + var outer = topDoc.createElement("div"); + // Do not insert whitespace or outer.firstChild will get a text node. + outer.innerHTML = + '<div style="position:absolute;z-index:' + __gwt_glassMessageZIndex-- + + ';left:50px;top:50px;width:600px;color:#FFF;font-family:verdana;text-align:left;">' + + '<div style="font-size:30px;font-weight:bold;">' + summary + '</div>' + + '<div style="font-size:15px;">' + details + '</div>' + + '</div>' + + '<div style="position:absolute;z-index:' + __gwt_glassMessageZIndex-- + + ';left:0px;top:0px;right:0px;bottom:0px;filter:alpha(opacity=60);opacity:0.6;background-color:#000;"></div>' + ; + topDoc.body.appendChild(outer); + var glass = outer.firstChild; + var glassStyle = glass.style; + + // Scroll to the top and remove scrollbars. + topWin.scrollTo(0, 0); + if (topDoc.compatMode == "BackCompat") { + topDoc.body.style["overflow"] = "hidden"; + } else { + topDoc.documentElement.style["overflow"] = "hidden"; + } + + // Steal focus. + glass.focus(); + + if ((navigator.userAgent.indexOf("MSIE") >= 0) && (topDoc.compatMode == "BackCompat")) { + // IE quirks mode doesn't support right/bottom, but does support this. + glassStyle.width = "125%"; + glassStyle.height = "100%"; + } else if (navigator.userAgent.indexOf("MSIE 6") >= 0) { + // IE6 doesn't have a real standards mode, so we have to use hacks. + glassStyle.width = "125%"; // Get past scroll bar area. + // Nasty CSS; onresize would be better but the outer window won't let us add a listener IE. + glassStyle.setExpression("height", "document.documentElement.clientHeight"); + } + + $doc.title = summary + " [" + $doc.title + "]"; +} + +function findPluginObject() { + try { + return document.getElementById('pluginObject'); + } catch (e) { + return null; + } +} + +function findPluginEmbed() { + try { + return document.getElementById('pluginEmbed') + } catch (e) { + return null; + } +} + +function findPluginXPCOM() { + try { + return __gwt_HostedModePlugin; + } catch (e) { + return null; + } +} + +gwtOnLoad = function(errFn, modName, modBase){ + $moduleName = modName; + $moduleBase = modBase; + + // Note that the order is important + var pluginFinders = [ + findPluginXPCOM, + findPluginObject, + findPluginEmbed, + ]; + var topWin = window.top; + var url = topWin.location.href; + if (!topWin.__gwt_SessionID) { + var ASCII_EXCLAMATION = 33; + var ASCII_TILDE = 126; + var chars = []; + for (var i = 0; i < 16; ++i) { + chars.push(Math.floor(ASCII_EXCLAMATION + + Math.random() * (ASCII_TILDE - ASCII_EXCLAMATION + 1))); + } + topWin.__gwt_SessionID = String.fromCharCode.apply(null, chars); + } + var plugin = null; + for (var i = 0; i < pluginFinders.length; ++i) { + try { + var maybePlugin = pluginFinders[i](); + if (maybePlugin != null && maybePlugin.init(window)) { + plugin = maybePlugin; + break; + } + } catch (e) { + } + } + if (!plugin) { + // try searching for a v1 plugin for backwards compatibility + var found = false; + for (var i = 0; i < pluginFinders.length; ++i) { + try { + plugin = pluginFinders[i](); + if (plugin != null && plugin.connect($hosted, $moduleName, window)) { + return; + } + } catch (e) { + } + } + loadIframe("http://gwt.google.com/missing-plugin"); + } else { + if (plugin.connect(url, topWin.__gwt_SessionID, $hosted, $moduleName, + $hostedHtmlVersion)) { + window.onUnload = function() { + try { + // wrap in try/catch since plugins are not required to supply this + plugin.disconnect(); + } catch (e) { + } + }; + } else { + if (errFn) { + errFn(modName); + } else { + alert("Plugin failed to connect to Development Mode server at " + $hosted); + loadIframe("http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM"); + } + } + } +} + +window.onunload = function() { +}; + +// Lightweight metrics +window.fireOnModuleLoadStart = function(className) { + $stats && $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'onModuleLoadStart', className:className}); +}; + +window.__gwt_module_id = 0; +</script></head> +<body> +<font face='arial' size='-1'>This html file is for Development Mode support.</font> +<script><!-- +// Lightweight metrics +$stats && $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'moduleEvalEnd'}); + +// OOPHM currently only supports IFrameLinker +var query = parent.location.search; +if (!findPluginXPCOM()) { + document.write('<embed id="pluginEmbed" type="application/x-gwt-hosted-mode" width="10" height="10">'); + document.write('</embed>'); + document.write('<object id="pluginObject" CLASSID="CLSID:1D6156B6-002B-49E7-B5CA-C138FB843B4E">'); + document.write('</object>'); +} + +// look for the old query parameter if we don't find the new one +var idx = query.indexOf("gwt.codesvr="); +if (idx >= 0) { + idx += 12; // "gwt.codesvr=".length() == 12 +} else { + idx = query.indexOf("gwt.hosted="); + if (idx >= 0) { + idx += 11; // "gwt.hosted=".length() == 11 + } +} +if (idx >= 0) { + var amp = query.indexOf("&", idx); + if (amp >= 0) { + $hosted = query.substring(idx, amp); + } else { + $hosted = query.substring(idx); + } + + // According to RFC 3986, some of this component's characters (e.g., ':') + // are reserved and *may* be escaped. + $hosted = decodeURIComponent($hosted); +} + +query = window.location.search.substring(1); +if (query && $wnd[query]) setTimeout($wnd[query].onScriptLoad, 1); +--></script></body></html>
participants (1)
-
lgiessmann@common-lisp.net