[isidorus-cvs] r491 - in branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia: TmEngine TopicMaps

Author: lgiessmann Date: Mon Jun 20 14:21:16 2011 New Revision: 491 Log: gdl-frontend/tm-engine: added all java interfaces and java wrapper classes for tmjs Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Association.java branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Construct.java branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/DatatypeAware.java branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Locator.java branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Name.java branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Occurrence.java branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Reifiable.java branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Role.java branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Scoped.java branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Topic.java branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMap.java branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Typed.java branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Variant.java Modified: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TmEngine/GDL_TmEngine.gwt.xml Modified: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TmEngine/GDL_TmEngine.gwt.xml ============================================================================== --- branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TmEngine/GDL_TmEngine.gwt.xml Mon Jun 20 02:35:52 2011 (r490) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TmEngine/GDL_TmEngine.gwt.xml Mon Jun 20 14:21:16 2011 (r491) @@ -18,7 +18,8 @@ <!-- Specify the paths for translatable code --> <source path='jtmsBasedEngine'/> + <source path="TopicMaps"/> <!-- Reference the javascript file that is necessary for tmjs --> <script src="lib/tm.min.js" /> -</module> +</module> \ No newline at end of file Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Association.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Association.java Mon Jun 20 14:21:16 2011 (r491) @@ -0,0 +1,98 @@ +package us.isidor.gdl.anaToMia.TopicMaps; + +import java.util.Set; + +import com.google.gwt.core.client.JavaScriptObject; + +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); + }-*/; + + + @Override + public final native String getId() /*-{ + return this.getId(); + }-*/; + + + @Override + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + this.addItemIdentifier(itemIdentifier); + }-*/; + + + @Override + public final native Set<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + @Override + public final native TopicMap getParent() /*-{ + return this.getParent(); + }-*/; + + + @Override + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + @Override + public final native void remove() /*-{ + this.remove(); + }-*/; + + + @Override + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(itemIdentifier); + }-*/; + + + @Override + public final native Topic getReifier() /*-{ + return this.getReifier(); + }-*/; + + + @Override + public final native void setReifier(Topic reifier) /*-{ + this.setReifier(reifier); + }-*/; + + + @Override + public final native void addTheme(Topic theme) /*-{ + this.addTheme(theme); + }-*/; + + + @Override + public final native void removeTheme(Topic theme) /*-{ + this.removeTheme(theme); + }-*/; + + + @Override + public final native Set<Topic> getScope() /*-{ + return this.getScope(); + }-*/; + + + @Override + public final native Topic getType() /*-{ + return this.getType(); + }-*/; + + + @Override + public final native void setType(Topic type) /*-{ + this.setType(type); + }-*/; +} Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Construct.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Construct.java Mon Jun 20 14:21:16 2011 (r491) @@ -0,0 +1,14 @@ +package us.isidor.gdl.anaToMia.TopicMaps; + +import java.util.Set; + +public interface Construct { + public String getId(); + public boolean equals(Object other); + void addItemIdentifier(Locator itemIdentifier); + public Set<Locator> getItemIdentifiers(); + public Construct getParent(); + public TopicMap getTopicMap(); + public void remove(); + public void removeItemIdentifier(Locator itemIdentifier); +} Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/DatatypeAware.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/DatatypeAware.java Mon Jun 20 14:21:16 2011 (r491) @@ -0,0 +1,23 @@ +package us.isidor.gdl.anaToMia.TopicMaps; + +import java.math.BigDecimal; +import java.math.BigInteger; + +public interface DatatypeAware extends Scoped, Reifiable{ + public BigDecimal decimalValue(); + public float floatValue(); + public Locator getDatatype(); + public String getValue(); + public BigInteger integerValue(); + public int intValue(); + public Locator locatorValue(); + public long longValue(); + 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); + public void setValue(String value); + public void setValue(String value, Locator datatype); +} Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Locator.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Locator.java Mon Jun 20 14:21:16 2011 (r491) @@ -0,0 +1,26 @@ +package us.isidor.gdl.anaToMia.TopicMaps; + +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); + }-*/; + + + static public final native Locator create(Construct parent, String reference) /*-{ + return new Locator(parent, reference); + }-*/; +} Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Name.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Name.java Mon Jun 20 14:21:16 2011 (r491) @@ -0,0 +1,124 @@ +package us.isidor.gdl.anaToMia.TopicMaps; + +import java.util.Collection; +import java.util.Set; + +public class Name implements Scoped, Reifiable, Typed { + protected Name() {} + + + public final native Variant createVariant(Locator value, Collection<Topic> scope) /*-{ + return this.createVariant(value, scope); + }-*/; + + + public final native Variant createVariant(String value, Collection<Topic> scope) /*-{ + return this.createVariant(value, scope); + }-*/; + + + public final native Variant createVariant(Locator value, Locator datatype, Collection<Topic> scope) /*-{ + return this.createVariant(value, datatype, scope); + }-*/; + + + public final native String getValue() /*-{ + return this.getValue(); + }-*/; + + + public final native Set<Variant> getVariants() /*-{ + return this.getVariants(); + }-*/; + + + public final native void setValue(String value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native String getId() /*-{ + return this.getId(); + }-*/; + + + @Override + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + this.addItemIdentifier(itemIdentifier); + }-*/; + + + @Override + public final native Set<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + @Override + public final native Topic getParent() /*-{ + return this.getParent(); + }-*/; + + + @Override + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + @Override + public final native void remove() /*-{ + this.remove(); + }-*/; + + + @Override + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(itemIdentifier); + }-*/; + + + @Override + public final native Topic getType() /*-{ + return this.getType(); + }-*/; + + + @Override + public final native void setType(Topic type) /*-{ + this.setType(type); + }-*/; + + + @Override + public final native Topic getReifier() /*-{ + return this.getReifier(); + }-*/; + + + @Override + public final native void setReifier(Topic reifier) /*-{ + this.setReiffier(reifier); + }-*/; + + + @Override + public final native void addTheme(Topic theme) /*-{ + this.addTheme(theme); + }-*/; + + + @Override + public final native void removeTheme(Topic theme) /*-{ + this.removeTheme(theme); + + }-*/; + + + @Override + public final native Set<Topic> getScope() /*-{ + return this.getScope(); + }-*/; + +} Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Occurrence.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Occurrence.java Mon Jun 20 14:21:16 2011 (r491) @@ -0,0 +1,191 @@ +package us.isidor.gdl.anaToMia.TopicMaps; + +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Set; +import com.google.gwt.core.client.JavaScriptObject; + + +public class Occurrence extends JavaScriptObject implements DatatypeAware, Typed { + protected Occurrence() {} + + + @Override + public final native String getId() /*-{ + return this.getId(); + }-*/; + + + @Override + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + this.addItemIdentifier(itemIdentifier); + }-*/; + + + @Override + public final native Set<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + @Override + public final native Topic getParent() /*-{ + return this.getParent(); + }-*/; + + + @Override + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + @Override + public final native void remove() /*-{ + this.remove(); + }-*/; + + + @Override + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(); + }-*/; + + + @Override + public final native Topic getType() /*-{ + return this.getType(); + }-*/; + + + @Override + public final native void setType(Topic type) /*-{ + this.setType(type); + }-*/; + + + @Override + public final native void addTheme(Topic theme) /*-{ + this.addTheme(theme); + }-*/; + + + @Override + public final native void removeTheme(Topic theme) /*-{ + this.removeTheme(theme); + }-*/; + + + @Override + public final native Set<Topic> getScope() /*-{ + return this.getScope(); + }-*/; + + + @Override + public final native Topic getReifier() /*-{ + return this.getReifier(); + }-*/; + + + @Override + public final native void setReifier(Topic reifier) /*-{ + tis.setReifier(reifier); + }-*/; + + + @Override + public final native BigDecimal decimalValue() /*-{ + return this.decimalValue(); + }-*/; + + + @Override + public final native float floatValue() /*-{ + return this.floatValue(); + }-*/; + + + @Override + public final native Locator getDatatype() /*-{ + return this.getDatatype(); + }-*/; + + + @Override + public final native String getValue() /*-{ + return this.getValue(); + }-*/; + + + @Override + public final native BigInteger integerValue() /*-{ + return this.integerValue(); + }-*/; + + + @Override + public final native int intValue() /*-{ + return this.intValue(); + }-*/; + + + @Override + public final native Locator locatorValue() /*-{ + return this.locatorValue(); + }-*/; + + + @Override + public final native long longValue() /*-{ + return this.longValue(); + }-*/; + + + @Override + public final native void setValue(BigDecimal value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(BigInteger value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(float value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(int value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(Locator value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(long value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(String value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(String value, Locator datatype) /*-{ + this.setValue(value); + }-*/; +} Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Reifiable.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Reifiable.java Mon Jun 20 14:21:16 2011 (r491) @@ -0,0 +1,6 @@ +package us.isidor.gdl.anaToMia.TopicMaps; + +public interface Reifiable extends Construct{ + public Topic getReifier(); + public void setReifier(Topic reifier); +} Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Role.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Role.java Mon Jun 20 14:21:16 2011 (r491) @@ -0,0 +1,81 @@ +package us.isidor.gdl.anaToMia.TopicMaps; + +import java.util.Set; + +import com.google.gwt.core.client.JavaScriptObject; + +public class Role extends JavaScriptObject implements Reifiable, Typed { + protected Role() {} + + + public final native Role getPlayert() /*-{ + return this.getPlayer(); + }-*/; + + + public final native void setPlayer(Topic player) /*-{ + this.setPlayer(player); + }-*/; + + + @Override + public final native String getId() /*-{ + return this.getId(); + }-*/; + + + @Override + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + this.addItemIdentifier(itemIdentifier); + }-*/; + + + @Override + public final native Set<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + @Override + public final native Association getParent() /*-{ + return this.getParent(); + }-*/; + + + @Override + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + @Override + public final native void remove() /*-{ + this.remove(); + }-*/; + + + @Override + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(itemIdentifier); + }-*/; + + @Override + public final native Topic getType() /*-{ + return this.getType(); + }-*/; + + @Override + public final native void setType(Topic type) /*-{ + this.setType(type); + }-*/; + + @Override + public final native Topic getReifier() /*-{ + return this.getReifier(); + }-*/; + + @Override + public final native void setReifier(Topic reifier) /*-{ + this.setReifier(reifier); + }-*/; +} Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Scoped.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Scoped.java Mon Jun 20 14:21:16 2011 (r491) @@ -0,0 +1,9 @@ +package us.isidor.gdl.anaToMia.TopicMaps; + +import java.util.Set; + +public interface Scoped extends Construct{ + public void addTheme(Topic theme); + public void removeTheme(Topic theme); + public Set<Topic> getScope(); +} Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Topic.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Topic.java Mon Jun 20 14:21:16 2011 (r491) @@ -0,0 +1,166 @@ +package us.isidor.gdl.anaToMia.TopicMaps; + +import java.util.Collection; +import java.util.Set; + +import com.google.gwt.core.client.JavaScriptObject; + +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.addSubjectLocator(subjectIdentifier); + }-*/; + + + public final native void addType(Topic type) /*-{ + this.addType(type); + }-*/; + + + public final native Name createName(String value, Collection<Topic> scope) /*-{ + return this.createName(value, scope); + }-*/; + + + public final native Name createName(Topic type, String value, Collection<Topic> scope) /*-{ + return this.createName(type, value, scope); + }-*/; + + + public final native Occurrence createOccurrence(Topic type, Locator value, Collection<Topic> scope) /*-{ + return this.createOccurrence(type, value, scope); + }-*/; + + + public final native Occurrence createOccurrence(Topic type, String value, Collection<Topic> scope) /*-{ + return this.createOccurrence(type, value, scope); + }-*/; + + + public final native Occurrence createOccurrence(Topic type, String value, Locator datatype, Collection<Topic> scope) /*-{ + return this.createOccurrence(type, value, datatype, scope); + }-*/; + + + public final native Set<Name> getNames() /*-{ + return this.getNames(); + }-*/; + + + public final native Set<Name> getNames(Topic type) /*-{ + return this.getNames(type); + }-*/; + + + public final native Set<Occurrence> getOccurrences() /*-{ + return this.getOccurrences(); + }-*/; + + + public final native Set<Occurrence> getOccurrences(Topic type) /*-{ + return this.getOccurrences(type); + }-*/; + + + public final native Reifiable getReified() /*-{ + return this.getReified(); + }-*/; + + + public final native Set<Role> getRolesPlayed() /*-{ + return this.getRolesPlayed(); + }-*/; + + + public final native Set<Role> getRolesPlayed(Topic type) /*-{ + return this.getRolesPlayed(type); + }-*/; + + + public final native Set<Role> getRolesPlayed(Topic type, Topic assocType) /*-{ + return this.getRolesPlayed(type, assocType); + }-*/; + + + public final native Set<Locator> getSubjectIdentifiers() /*-{ + return this.getSubjectIdentifiers(); + }-*/; + + + public final native Set<Locator> getSubjectLocators() /*-{ + return this.getSubjectLocators(); + }-*/; + + + public final native Set<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); + }-*/; + + + @Override + public final native String getId() /*-{ + return this.getId(); + }-*/; + + + @Override + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + this.addItemIdentifier(); + }-*/; + + + @Override + public final native Set<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifier(); + }-*/; + + + @Override + public final native TopicMap getParent() /*-{ + return this.getParent(); + }-*/; + + + @Override + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + @Override + public final native void remove() /*-{ + this.remove(); + }-*/; + + + @Override + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(itemIdentifier); + }-*/; +} Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMap.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/TopicMap.java Mon Jun 20 14:21:16 2011 (r491) @@ -0,0 +1,133 @@ +package us.isidor.gdl.anaToMia.TopicMaps; + +import java.util.Collection; +import java.util.Set; + +import com.google.gwt.core.client.JavaScriptObject; + +public class TopicMap extends JavaScriptObject implements Reifiable{ + protected TopicMap() {} + + + public final native void close() /*-{ + this.close(); + }-*/; + + + public final native Association createAssociation(Topic type, Collection<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 Set<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 Set<Topic> getTopics() /*-{ + return this.getTopics(); + }-*/; + + + public final native void mergeIn(TopicMap other) /*-{ + this.mergeIn(other); + }-*/; + + + @Override + public native String getId() /*-{ + return this.getId(); + }-*/; + + + @Override + public native void addItemIdentifier(Locator itemIdentifier) /*-{ + return this.addItemIdentifier(itemIdentifier); + }-*/; + + + @Override + public native Set<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + @Override + public native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + @Override + public native void remove() /*-{ + return this.remove(); + }-*/; + + + @Override + public native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(itemIdentifier); + }-*/; + + + @Override + public native Topic getReifier() /*-{ + return this.getReifier(); + }-*/; + + + @Override + public native void setReifier(Topic reifier) /*-{ + this.setReifier(reifier); + }-*/; +} Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Typed.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Typed.java Mon Jun 20 14:21:16 2011 (r491) @@ -0,0 +1,6 @@ +package us.isidor.gdl.anaToMia.TopicMaps; + +public interface Typed extends Construct{ + public Topic getType(); + public void setType(Topic type); +} Added: branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Variant.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/gdl-frontend/src/anaToMia/GDL_TmEngine/src/us/isidor/gdl/anaToMia/TopicMaps/Variant.java Mon Jun 20 14:21:16 2011 (r491) @@ -0,0 +1,179 @@ +package us.isidor.gdl.anaToMia.TopicMaps; + +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Set; +import com.google.gwt.core.client.JavaScriptObject; + + +public class Variant extends JavaScriptObject implements DatatypeAware{ + protected Variant() {} + + @Override + public final native void addTheme(Topic theme) /*-{ + this.addTheme(theme); + }-*/; + + + @Override + public final native void removeTheme(Topic theme) /*-{ + this.removeTheme(theme); + }-*/; + + + @Override + public final native Set<Topic> getScope() /*-{ + return this.getScope(); + }-*/; + + + @Override + public final native String getId() /*-{ + return this.getId(); + }-*/; + + + @Override + public final native void addItemIdentifier(Locator itemIdentifier) /*-{ + this.addItemIdentifier(itemIdentifier); + }-*/; + + + @Override + public final native Set<Locator> getItemIdentifiers() /*-{ + return this.getItemIdentifiers(); + }-*/; + + + @Override + public final native Name getParent() /*-{ + return this.getParent(); + }-*/; + + + @Override + public final native TopicMap getTopicMap() /*-{ + return this.getTopicMap(); + }-*/; + + + @Override + public final native void remove() /*-{ + this.remove(); + }-*/; + + + @Override + public final native void removeItemIdentifier(Locator itemIdentifier) /*-{ + this.removeItemIdentifier(itemIdentifier); + }-*/; + + + @Override + public final native Topic getReifier() /*-{ + return this.getReifier(); + }-*/; + + + @Override + public final native void setReifier(Topic reifier) /*-{ + this.setReifier(reifier); + }-*/; + + + @Override + public final native BigDecimal decimalValue() /*-{ + return this.decimalValue(); + }-*/; + + + @Override + public final native float floatValue() /*-{ + return this.floatValue(); + }-*/; + + + @Override + public final native Locator getDatatype() /*-{ + return this.getDatatype(); + }-*/; + + + @Override + public final native String getValue() /*-{ + return this.getValue(); + }-*/; + + + @Override + public final native BigInteger integerValue() /*-{ + return this.integerValue(); + }-*/; + + + @Override + public final native int intValue() /*-{ + return this.intValue(); + }-*/; + + + @Override + public final native Locator locatorValue() /*-{ + return this.locatorValue(); + }-*/; + + + @Override + public final native long longValue() /*-{ + return this.longValue(); + }-*/; + + + @Override + public final native void setValue(BigDecimal value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(BigInteger value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(float value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(int value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(Locator value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(long value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(String value) /*-{ + this.setValue(value); + }-*/; + + + @Override + public final native void setValue(String value, Locator datatype) /*-{ + this.setValue(value); + }-*/; + +}
participants (1)
-
lgiessmann@common-lisp.net