|
From: <lh...@us...> - 2008-08-21 12:17:31
|
Revision: 71
http://tmapi.svn.sourceforge.net/tmapi/?rev=71&view=rev
Author: lheuer
Date: 2008-08-21 12:17:40 +0000 (Thu, 21 Aug 2008)
Log Message:
-----------
Fixed malformed tag </tt --> </tt>
Modified Paths:
--------------
trunk/src/main/java/org/tmapi/core/Construct.java
Modified: trunk/src/main/java/org/tmapi/core/Construct.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/Construct.java 2008-08-20 18:41:50 UTC (rev 70)
+++ trunk/src/main/java/org/tmapi/core/Construct.java 2008-08-21 12:17:40 UTC (rev 71)
@@ -75,7 +75,7 @@
*
* @param iid The item identifier to be added; must not be <tt>null</tt>.
* @throws IdentityConstraintException If another construct has an item
- * identifier which is equal to <tt>iid</tt.
+ * identifier which is equal to <tt>iid</tt>.
*/
public void addItemIdentifier(Locator iid);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jos...@us...> - 2008-08-22 16:44:00
|
Revision: 73
http://tmapi.svn.sourceforge.net/tmapi/?rev=73&view=rev
Author: joschmidt
Date: 2008-08-22 16:44:08 +0000 (Fri, 22 Aug 2008)
Log Message:
-----------
Fixed typos in equals()
Modified Paths:
--------------
trunk/src/main/java/org/tmapi/core/Construct.java
Modified: trunk/src/main/java/org/tmapi/core/Construct.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/Construct.java 2008-08-22 13:04:58 UTC (rev 72)
+++ trunk/src/main/java/org/tmapi/core/Construct.java 2008-08-22 16:44:08 UTC (rev 73)
@@ -98,7 +98,7 @@
* If <tt>other</tt> is not an instance of {@link Construct}, the return
* value is <tt>false</tt>.
*
- * Note: This equalitiy test does not reflect any equalitiy rule according
+ * Note: This equality test does not reflect any equality rule according
* to the <a href="http://www.isotopicmaps.org/sam/sam-model/">Topic Maps - Data Model (TMDM)</a>
* by intention.
*
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lh...@us...> - 2008-11-03 15:04:58
|
Revision: 85
http://tmapi.svn.sourceforge.net/tmapi/?rev=85&view=rev
Author: lheuer
Date: 2008-11-03 15:04:55 +0000 (Mon, 03 Nov 2008)
Log Message:
-----------
Fixed bug #2219122 ("Better description for Construct.getId()")
Modified Paths:
--------------
trunk/src/main/java/org/tmapi/core/Construct.java
Modified: trunk/src/main/java/org/tmapi/core/Construct.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/Construct.java 2008-11-01 16:38:35 UTC (rev 84)
+++ trunk/src/main/java/org/tmapi/core/Construct.java 2008-11-03 15:04:55 UTC (rev 85)
@@ -47,7 +47,11 @@
/**
* Returns the identifier of this construct.
*
- * This property has no representation in the Topic Maps - Data Model.
+ * This property has no representation in the Topic Maps - Data Model.
+ * <p>
+ * The ID can be anything, so long as no other {@link Construct} in the
+ * same topic map has the same ID.
+ * </p>
*
* @return An identifier which identifies this construct uniquely within
* a topic map.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jos...@us...> - 2008-11-25 20:15:06
|
Revision: 90
http://tmapi.svn.sourceforge.net/tmapi/?rev=90&view=rev
Author: joschmidt
Date: 2008-11-25 20:15:03 +0000 (Tue, 25 Nov 2008)
Log Message:
-----------
Updated docs section regarding NULL handling in addItemIdentifier() and removeItemIdentifier()
Modified Paths:
--------------
trunk/src/main/java/org/tmapi/core/Construct.java
Modified: trunk/src/main/java/org/tmapi/core/Construct.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/Construct.java 2008-11-13 18:44:41 UTC (rev 89)
+++ trunk/src/main/java/org/tmapi/core/Construct.java 2008-11-25 20:15:03 UTC (rev 90)
@@ -80,13 +80,15 @@
* @param itemIdentifier The item identifier to be added; must not be <tt>null</tt>.
* @throws IdentityConstraintException If another construct has an item
* identifier which is equal to <tt>itemIdentifier</tt>.
+ * @throws ModelConstraintException If the item identifier is <tt>null</tt>.
*/
public void addItemIdentifier(Locator itemIdentifier);
/**
* Removes an item identifier.
*
- * @param itemIdentifier The item identifier to be removed.
+ * @param itemIdentifier The item identifier to be removed from this construct,
+ * if present (<tt>null</tt> is ignored).
*/
public void removeItemIdentifier(Locator itemIdentifier);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lh...@us...> - 2010-01-13 16:04:03
|
Revision: 135
http://tmapi.svn.sourceforge.net/tmapi/?rev=135&view=rev
Author: lheuer
Date: 2010-01-13 16:03:49 +0000 (Wed, 13 Jan 2010)
Log Message:
-----------
Changed semantics of equals / hashCode
Modified Paths:
--------------
trunk/src/main/java/org/tmapi/core/Construct.java
Modified: trunk/src/main/java/org/tmapi/core/Construct.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/Construct.java 2010-01-10 17:31:49 UTC (rev 134)
+++ trunk/src/main/java/org/tmapi/core/Construct.java 2010-01-13 16:03:49 UTC (rev 135)
@@ -103,24 +103,22 @@
/**
* Returns <tt>true</tt> if the <tt>other</tt> object is equal to this one.
*
- * Equality must be the result of comparing the ids of the two objects.
- * If <tt>other</tt> is not an instance of {@link Construct}, the return
- * value is <tt>false</tt>.
+ * Equality must be the result of comparing the identity (<tt>this == other</tt>)
+ * of the two objects.
*
* Note: This equality test does not reflect any equality rule according
* to the <a href="http://www.isotopicmaps.org/sam/sam-model/">Topic Maps - Data Model (TMDM)</a>
* by intention.
*
* @param other The object to compare this object against.
- * @return <tt>(other instanceof Construct && this.getId().equals(((Construct)other).getId()))</tt>
+ * @return <tt>(this == other)</tt>
*/
public boolean equals(Object other);
/**
- * Returns a hash code value.
+ * Returns the hash code value.
*
- * The returned hash code is equal to the hash code of the {@link #getId()}
- * property.
+ * The returned hash code is equal to the hash code of <tt>System.identityHashCode(this);</tt>.
*
* @return <tt>this.getId().hashCode()</tt>
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lh...@us...> - 2010-01-13 16:08:26
|
Revision: 136
http://tmapi.svn.sourceforge.net/tmapi/?rev=136&view=rev
Author: lheuer
Date: 2010-01-13 16:08:20 +0000 (Wed, 13 Jan 2010)
Log Message:
-----------
Forgot to change the description of hashCode's @return value. Fixed.
Modified Paths:
--------------
trunk/src/main/java/org/tmapi/core/Construct.java
Modified: trunk/src/main/java/org/tmapi/core/Construct.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/Construct.java 2010-01-13 16:03:49 UTC (rev 135)
+++ trunk/src/main/java/org/tmapi/core/Construct.java 2010-01-13 16:08:20 UTC (rev 136)
@@ -120,7 +120,7 @@
*
* The returned hash code is equal to the hash code of <tt>System.identityHashCode(this);</tt>.
*
- * @return <tt>this.getId().hashCode()</tt>
+ * @return <tt>System.identityHashCode(this)</tt>
*/
public int hashCode();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jos...@us...> - 2010-01-17 21:22:35
|
Revision: 141
http://tmapi.svn.sourceforge.net/tmapi/?rev=141&view=rev
Author: joschmidt
Date: 2010-01-17 21:22:27 +0000 (Sun, 17 Jan 2010)
Log Message:
-----------
enhanced comment of hashCode()
Modified Paths:
--------------
trunk/src/main/java/org/tmapi/core/Construct.java
Modified: trunk/src/main/java/org/tmapi/core/Construct.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/Construct.java 2010-01-15 17:57:29 UTC (rev 140)
+++ trunk/src/main/java/org/tmapi/core/Construct.java 2010-01-17 21:22:27 UTC (rev 141)
@@ -118,7 +118,7 @@
/**
* Returns the hash code value.
*
- * The returned hash code is equal to the hash code of <tt>System.identityHashCode(this);</tt>.
+ * The returned hash code is equal to the hash code of <tt>System.identityHashCode(this)</tt>.
*
* @return <tt>System.identityHashCode(this)</tt>
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jos...@us...> - 2009-03-16 20:57:31
|
Revision: 101
http://tmapi.svn.sourceforge.net/tmapi/?rev=101&view=rev
Author: joschmidt
Date: 2009-03-16 20:57:15 +0000 (Mon, 16 Mar 2009)
Log Message:
-----------
Fixed typo in comments section of getTopicMap().
Modified Paths:
--------------
trunk/src/main/java/org/tmapi/core/Construct.java
Modified: trunk/src/main/java/org/tmapi/core/Construct.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/Construct.java 2009-02-07 10:36:48 UTC (rev 100)
+++ trunk/src/main/java/org/tmapi/core/Construct.java 2009-03-16 20:57:15 UTC (rev 101)
@@ -40,7 +40,7 @@
*
* A {@link TopicMap} instance returns itself.
*
- * @return The topic map instance to which this constructs belongs.
+ * @return The topic map instance to which this construct belongs.
*/
public TopicMap getTopicMap();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lh...@us...> - 2009-08-12 14:09:50
|
Revision: 120
http://tmapi.svn.sourceforge.net/tmapi/?rev=120&view=rev
Author: lheuer
Date: 2009-08-12 14:09:42 +0000 (Wed, 12 Aug 2009)
Log Message:
-----------
Clarification of Construct.remove()
Modified Paths:
--------------
trunk/src/main/java/org/tmapi/core/Construct.java
Modified: trunk/src/main/java/org/tmapi/core/Construct.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/Construct.java 2009-07-23 17:46:15 UTC (rev 119)
+++ trunk/src/main/java/org/tmapi/core/Construct.java 2009-08-12 14:09:42 UTC (rev 120)
@@ -94,6 +94,9 @@
/**
* Deletes this construct from its parent container.
+ *
+ * After invocation of this method, the construct is in an undefined state and
+ * must not used further.
*/
public void remove();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jos...@us...> - 2009-08-12 20:09:10
|
Revision: 121
http://tmapi.svn.sourceforge.net/tmapi/?rev=121&view=rev
Author: joschmidt
Date: 2009-08-12 20:09:02 +0000 (Wed, 12 Aug 2009)
Log Message:
-----------
enhanced comments in remove()
Modified Paths:
--------------
trunk/src/main/java/org/tmapi/core/Construct.java
Modified: trunk/src/main/java/org/tmapi/core/Construct.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/Construct.java 2009-08-12 14:09:42 UTC (rev 120)
+++ trunk/src/main/java/org/tmapi/core/Construct.java 2009-08-12 20:09:02 UTC (rev 121)
@@ -96,7 +96,7 @@
* Deletes this construct from its parent container.
*
* After invocation of this method, the construct is in an undefined state and
- * must not used further.
+ * must not be used further.
*/
public void remove();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|