|
From: <lh...@us...> - 2009-10-01 17:08:39
|
Revision: 122
http://tmapi.svn.sourceforge.net/tmapi/?rev=122&view=rev
Author: lheuer
Date: 2009-10-01 17:08:29 +0000 (Thu, 01 Oct 2009)
Log Message:
-----------
Added MalformedIRIEx to the signature of several methods
Modified Paths:
--------------
trunk/src/main/java/org/tmapi/core/Locator.java
trunk/src/main/java/org/tmapi/core/TopicMap.java
trunk/src/main/java/org/tmapi/core/TopicMapSystem.java
Modified: trunk/src/main/java/org/tmapi/core/Locator.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/Locator.java 2009-08-12 20:09:02 UTC (rev 121)
+++ trunk/src/main/java/org/tmapi/core/Locator.java 2009-10-01 17:08:29 UTC (rev 122)
@@ -46,8 +46,9 @@
* @param reference The reference which should be resolved against this locator.
* @return A locator representing an absolute IRI.
* @throws IllegalArgumentException If <tt>reference</tt> is <tt>null</tt>.
+ * @throws MalformedIRIException If the provided string cannot be resolved against this locator.
*/
- public Locator resolve(String reference);
+ public Locator resolve(String reference) throws MalformedIRIException;
/**
* Returns <tt>true</tt> if the <tt>other</tt> object is equal to this one.
Modified: trunk/src/main/java/org/tmapi/core/TopicMap.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/TopicMap.java 2009-08-12 20:09:02 UTC (rev 121)
+++ trunk/src/main/java/org/tmapi/core/TopicMap.java 2009-10-01 17:08:29 UTC (rev 122)
@@ -105,8 +105,9 @@
* @param reference A string which uses the IRI notation.
* @return A {@link Locator} representing the IRI <tt>reference</tt>.
* @throws IllegalArgumentException If <tt>reference</tt> is <tt>null</tt>.
+ * @throws MalformedIRIException If the provided string cannot be used to create a valid locator.
*/
- public Locator createLocator(String reference);
+ public Locator createLocator(String reference) throws MalformedIRIException;
/**
* Returns a {@link Topic} instance with the specified subject identifier.
Modified: trunk/src/main/java/org/tmapi/core/TopicMapSystem.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/TopicMapSystem.java 2009-08-12 20:09:02 UTC (rev 121)
+++ trunk/src/main/java/org/tmapi/core/TopicMapSystem.java 2009-10-01 17:08:29 UTC (rev 122)
@@ -77,7 +77,7 @@
/**
* @see org.tmapi.core.TopicMap#createLocator(String reference)
*/
- public Locator createLocator(String reference);
+ public Locator createLocator(String reference) throws MalformedIRIException;
/**
* Creates a new {@link TopicMap} and stores it within the system under the
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|