abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r541117 [1/2] - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/model/ core/src/main/java/org/apache/abdera/parser/ core/src/main/java/org/apache/abdera/util/ dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/...
Date Wed, 23 May 2007 23:22:57 GMT
Author: jmsnell
Date: Wed May 23 16:22:54 2007
New Revision: 541117

URL: http://svn.apache.org/viewvc?view=rev&rev=541117
Log:
Refactor IRISyntaxException as a RuntimeException. Remove a bunch of now unnecessary throws and catches

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Categories.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Category.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Document.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Element.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ElementWrapper.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Feed.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Generator.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/IRIElement.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Link.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Person.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/PersonWrapper.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Source.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Workspace.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/parser/Parser.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbderaResult.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractParser.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/URIHelper.java
    incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
    incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRISyntaxException.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/editor/Editor.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/features/Feature.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/features/FeaturesHelper.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/history/FeedPagingHelper.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/json/JSONWriter.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/license/LicenseHelper.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCategory.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaContent.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCopyright.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCredit.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaPlayer.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaRating.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaThumbnail.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/thread/InReplyTo.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/thread/ThreadHelper.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMCategories.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMCategory.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMCollection.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMContent.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFeed.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMGenerator.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMIRI.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMLink.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMPerson.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMSource.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMText.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMWorkspace.java
    incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/Response.java
    incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/AbstractResponse.java
    incubator/abdera/java/trunk/security/src/main/java/org/apache/abdera/security/xmlsec/XmlSignature.java
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractRequestContext.java
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Categories.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Categories.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Categories.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Categories.java Wed May 23 16:22:54 2007
@@ -20,7 +20,6 @@
 import java.util.List;
 
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 /**
  * The Atom Publishing Protocol introduces the notion of a "Category Document"
@@ -37,20 +36,20 @@
    * @return The href attribute value
    * @throws IRISyntaxException if the IRI in the underlying attribute value is malformed
    */
-  IRI getHref() throws IRISyntaxException;
+  IRI getHref();
   
   /**
    * Returns the value of the href attribute resolved against the in-scope Base URI
    * @return The fully resolved href attribute value
    * @throws URISyntaxException if the IRI in the underlying attribute value is malformed
    */
-  IRI getResolvedHref() throws IRISyntaxException;
+  IRI getResolvedHref();
   
   /**
    * Sets the value of the href attribute.
    * @throws URISyntaxException if the IRI specified is malformed
    */
-  void setHref(String href) throws IRISyntaxException;
+  void setHref(String href);
   
   /**
    * If an app:categories element is marked as fixed, then the set of atom:category
@@ -74,14 +73,14 @@
    * @return The scheme IRI
    * @throws IRISyntaxException if the IRI in the scheme attribute is malformed
    */
-  IRI getScheme() throws IRISyntaxException;
+  IRI getScheme();
   
   /**
    * Sets the default scheme for this listing of categories 
    * @param scheme The default scheme used for this listing of categories
    * @throws IRISyntaxException if the IRI provided is malformed
    */
-  void setScheme(String scheme) throws IRISyntaxException;
+  void setScheme(String scheme);
 
   /**
    * Lists the complete set of categories
@@ -95,14 +94,14 @@
    * @return A listing of atom:category elements that use the specified scheme
    * @throws IRISyntaxException if the scheme provided is malformed 
    */
-  List<Category> getCategories(String scheme) throws IRISyntaxException;
+  List<Category> getCategories(String scheme);
   
   /**
    * Returns a copy of the complete set of categories with the scheme attribute set
    * @return A listing of atom:category elements using the default scheme specified by the app:categories scheme attribute
    * @throws IRISyntaxException if the values of the scheme attributes are malformed  
    */
-  List<Category> getCategoriesWithScheme() throws IRISyntaxException;
+  List<Category> getCategoriesWithScheme();
 
   /**
    * Returns a copy of the complete set of categories with the scheme 
@@ -112,7 +111,7 @@
    * @return A listing of atom:category elements
    * @throws IRISyntaxException  if the scheme provided is malformed
    */
-  List<Category> getCategoriesWithScheme(String scheme) throws IRISyntaxException;
+  List<Category> getCategoriesWithScheme(String scheme);
   
   /**
    * Add an atom:category to the listing
@@ -135,7 +134,7 @@
    * @return The newly created atom:category
    * @throws IRISyntaxException if the scheme provided is malformed
    */
-  Category addCategory(String scheme, String term, String label) throws IRISyntaxException;
+  Category addCategory(String scheme, String term, String label);
     
   /**
    * Returns true if this app:categories listing contains a category with the 
@@ -144,7 +143,7 @@
    * @return True if the term is found
    * @throws IRISyntaxException if the Scheme IRI of any of the scheme attributes is malformed
    */
-  boolean contains(String term) throws IRISyntaxException;
+  boolean contains(String term);
   
   /**
    * Returns true if this app:categories listing contains a category with the 
@@ -154,7 +153,7 @@
    * @return True if the term and scheme are found
    * @throws IRISyntaxException if the Scheme IRI of any of the scheme attributes is malformed
    */
-  boolean contains(String term, String scheme) throws IRISyntaxException;
+  boolean contains(String term, String scheme);
   
   /**
    * Returns true if the href attribute is set

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Category.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Category.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Category.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Category.java Wed May 23 16:22:54 2007
@@ -18,7 +18,6 @@
 package org.apache.abdera.model;
 
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 /**
  * <p>Provides categorization informaton for a feed or entry</p>
@@ -66,7 +65,7 @@
    * @return The IRI value of the scheme attribute
    * @throws IRISyntaxException if the scheme IRI is malformed
    */
-  IRI getScheme() throws IRISyntaxException;
+  IRI getScheme();
 
   /**
    * RFC4287: The "scheme" attribute is an IRI that identifies a 
@@ -75,7 +74,7 @@
    * @param scheme The IRI of the scheme
    * @throws URISyntaxException if the scheme provided is malformed
    */
-  void setScheme(String scheme) throws IRISyntaxException;
+  void setScheme(String scheme);
  
   /**
    * RFC4287: The "label" attribute provides a human-readable label 

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java Wed May 23 16:22:54 2007
@@ -22,7 +22,6 @@
 import javax.activation.MimeType;
 
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 /**
  * <p>Represents an collection element in an Atom Publishing Protocol 
@@ -87,21 +86,21 @@
    * @return The href attribute IRI value
    * @throws IRISyntaxException if the value of the href attribute is malformed
    */
-  IRI getHref() throws IRISyntaxException;
+  IRI getHref();
 
   /**
    * Return the href attribute resolved against the in-scope Base URI
    * @return The href attribute IRI value
    * @throws IRISyntaxException if the value of the href attribute is malformed
    */
-  IRI getResolvedHref() throws IRISyntaxException;
+  IRI getResolvedHref();
   
   /**
    * Set the value of the href attribute
    * @param href The value of href attribute
    * @throws IRISyntaxException if the href attribute is malformed 
    */
-  void setHref(String href) throws IRISyntaxException;
+  void setHref(String href);
   
   /**
    * Returns the listing of media-ranges allowed for this collection
@@ -186,7 +185,7 @@
    * @return The newly created app:categories element
    * @throws IRISyntaxException if the href value is malformed
    */
-  Categories addCategories(String href) throws IRISyntaxException;
+  Categories addCategories(String href);
   
   /**
    * Add the app:categories element to the collection
@@ -202,6 +201,6 @@
    * @return The newly created app:categories element
    * @throws IRISyntaxException if the scheme value if malformed
    */
-  Categories addCategories(List<Category> categories, boolean fixed, String scheme) throws IRISyntaxException;
+  Categories addCategories(List<Category> categories, boolean fixed, String scheme);
   
 }

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java Wed May 23 16:22:54 2007
@@ -23,7 +23,6 @@
 
 import org.apache.abdera.util.MimeTypeHelper;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 /**
  * <p>Represents an atom:content element.</p>
@@ -196,14 +195,14 @@
    * @return The IRI value of the src attribute or null if none
    * @throws IRISyntaxException if the src attribute value is malformed
    */
-  IRI getSrc() throws IRISyntaxException;
+  IRI getSrc();
   
   /**
    * Returns the fully qualified URI form of the content src attribute.
    * @return The IRI value of the src attribute resolved against the in-scope Base URI
    * @throws IRISyntaxException if the src attribute value is malformed
    */
-  IRI getResolvedSrc() throws IRISyntaxException;
+  IRI getResolvedSrc();
 
   /**
    * <p>RFC4287: atom:content MAY have a "src" attribute, whose value MUST 
@@ -218,7 +217,7 @@
    * @param src The IRI to use as the src attribute value for the content
    * @throws IRISyntaxException if the src value is malformed
    */
-  void setSrc(String src) throws IRISyntaxException;
+  void setSrc(String src);
   
   /**
    * Attempts to Base64 decode the string value of the content element.

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Document.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Document.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Document.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Document.java Wed May 23 16:22:54 2007
@@ -24,7 +24,6 @@
 import javax.activation.MimeTypeParseException;
 
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 import org.apache.abdera.i18n.lang.InvalidLangTagSyntax;
 import org.apache.abdera.i18n.lang.Lang;
 import org.apache.abdera.util.EntityTag;
@@ -65,7 +64,7 @@
    * @param base The Base URI
    * @throws IRISyntaxException if the IRI is malformed 
    */
-  void setBaseUri(String base) throws IRISyntaxException;
+  void setBaseUri(String base);
   
   /**
    * Returns the content type of this document

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Element.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Element.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Element.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Element.java Wed May 23 16:22:54 2007
@@ -23,7 +23,6 @@
 import javax.xml.namespace.QName;
 
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 import org.apache.abdera.i18n.lang.InvalidLangTagSyntax;
 import org.apache.abdera.i18n.lang.Lang;
 
@@ -120,13 +119,13 @@
    * @return The Base URI
    * @throws IRISyntaxException if the Base URI is malformed
    */
-  IRI getBaseUri() throws IRISyntaxException;
+  IRI getBaseUri();
   
   /**
    * Returns the current in-scope, fully qualified Base URI for this element.
    * @throws IRISyntaxException if the Base URI is malformed
    */
-  IRI getResolvedBaseUri() throws IRISyntaxException;
+  IRI getResolvedBaseUri();
   
   /**
    * Sets the value of this element's <code>xml:base</code> attribute.
@@ -139,7 +138,7 @@
    * @param base The Base IRI
    * @throws IRISyntaxException if the base URI is malformed 
    */
-  void setBaseUri(String base) throws IRISyntaxException;
+  void setBaseUri(String base);
   
   /**
    * Returns the document to which this element belongs

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ElementWrapper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ElementWrapper.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ElementWrapper.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ElementWrapper.java Wed May 23 16:22:54 2007
@@ -27,7 +27,6 @@
 
 import org.apache.abdera.factory.Factory;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 import org.apache.abdera.i18n.lang.InvalidLangTagSyntax;
 import org.apache.abdera.i18n.lang.Lang;
 
@@ -84,7 +83,7 @@
     return internal.getAttributeValue(name);
   }
 
-  public IRI getBaseUri() throws IRISyntaxException {
+  public IRI getBaseUri() {
     return internal.getBaseUri();
   }
 
@@ -144,7 +143,7 @@
     return internal.getQName();
   }
 
-  public IRI getResolvedBaseUri() throws IRISyntaxException {
+  public IRI getResolvedBaseUri() {
     return internal.getResolvedBaseUri();
   }
 
@@ -168,7 +167,7 @@
     internal.setBaseUri(base);
   }
 
-  public void setBaseUri(String base) throws IRISyntaxException {
+  public void setBaseUri(String base) {
     internal.setBaseUri(base);
   }
 

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java Wed May 23 16:22:54 2007
@@ -27,7 +27,6 @@
 import javax.activation.MimeTypeParseException;
 
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 /**
  * <p>Represents an Atom Entry element.</p>
@@ -140,7 +139,7 @@
    * @return The newly created atom:author element
    * @throws IRISyntaxException if the URI is malformed
    */
-  Person addAuthor(String name, String email, String uri) throws IRISyntaxException;
+  Person addAuthor(String name, String email, String uri);
   
   /**
    * Lists the complete set of categories listed for the entry
@@ -153,7 +152,7 @@
    * A listing of atom:category elements using the specified scheme
    * @throws IRISyntaxException if the scheme is malformed
    */
-  List<Category> getCategories(String scheme) throws IRISyntaxException;
+  List<Category> getCategories(String scheme) ;
 
   /**
    * Adds an individual category to the entry
@@ -176,7 +175,7 @@
    * @return The newly create atom:category
    * @throws IRISyntaxException if the scheme is malformed
    */
-  Category addCategory(String scheme, String term, String label) throws IRISyntaxException;
+  Category addCategory(String scheme, String term, String label);
   
   /**
    * Returns the content for this entry
@@ -284,7 +283,7 @@
    * @throws MimeTypeParseException if the mime type is invalid.
    * @throws IRISyntaxException if the URI is invalid.
    */
-  Content setContent(IRI uri, String mediatype) throws MimeTypeParseException, IRISyntaxException;
+  Content setContent(IRI uri, String mediatype) throws MimeTypeParseException;
   
   /**
    * Returns the text of the content element
@@ -304,7 +303,7 @@
    * @return The src IRI
    * @throws IRISyntaxException if the src attribute is invalid
    */
-  IRI getContentSrc() throws IRISyntaxException;
+  IRI getContentSrc() ;
   
   /**
    * Returns the content type
@@ -346,7 +345,7 @@
    * @return The newly created atom:contributor
    * @throws IRISyntaxException  if the uri is malformed
    */
-  Person addContributor(String name, String email, String uri) throws IRISyntaxException;
+  Person addContributor(String name, String email, String uri) ;
   
   /**
    * Returns the universally unique identifier for this entry
@@ -364,7 +363,7 @@
    * Returns the universally unique identifier for this entry
    * @throws IRISyntaxException  if the atom:id value is malformed
    */
-  IRI getId() throws IRISyntaxException;
+  IRI getId() ;
 
   /**
    * Sets the universally unique identifier for this entry
@@ -372,12 +371,12 @@
    * @return The newly created atom:id element
    * @throws IRISyntaxException  if the atom:id value is malformed
    */
-  IRIElement setId(String id) throws IRISyntaxException;
+  IRIElement setId(String id) ;
   
   /**
    * Creates a new randomized atom:id for the entry
    */
-  IRIElement newId() throws IRISyntaxException;
+  IRIElement newId() ;
   
   /**
    * Sets the universally unique identifier for this entry
@@ -386,7 +385,7 @@
    * @return The newly created atom:id element
    * @throws IRISyntaxException if the atom:id value is malformed
    */
-  IRIElement setId(String id, boolean normalize) throws IRISyntaxException;
+  IRIElement setId(String id, boolean normalize) ;
   
   /**
    * Lists the complete set of links for this entry
@@ -413,7 +412,7 @@
    * @return The newly created atom:link
    * @throws IRISyntaxException if the href is malformed
    */
-  Link addLink(String href) throws IRISyntaxException;
+  Link addLink(String href) ;
 
   /**
    * Add a link to the entry
@@ -422,7 +421,7 @@
    * @return The newly created atom:link
    * @throws IRISyntaxException if the href is malformed
    */
-  Link addLink(String href, String rel) throws IRISyntaxException;
+  Link addLink(String href, String rel) ;
   
   /**
    * Add a link to the entry
@@ -434,7 +433,7 @@
    * @return The newly created atom:link
    * @throws IRISyntaxException if the href is malformed
    */  
-  Link addLink(String href, String rel, String type, String title, String hreflang, long length) throws IRISyntaxException, MimeTypeParseException;
+  Link addLink(String href, String rel, String type, String title, String hreflang, long length) throws MimeTypeParseException;
   
   /**
    * RFC4287: The "atom:published" element is a Date construct indicating an
@@ -877,14 +876,14 @@
    * @return The resolved IRI
    * @throws IRISyntaxException if the href attribute is malformed
    */
-  IRI getLinkResolvedHref(String rel) throws IRISyntaxException;
+  IRI getLinkResolvedHref(String rel) ;
 
   /**
    * Return a link href resolved against the in-scope Base URI
    * @return The resolved IRI
    * @throws IRISyntaxException if the href attribute is malformed
    */
-  IRI getAlternateLinkResolvedHref() throws IRISyntaxException;
+  IRI getAlternateLinkResolvedHref() ;
 
   /**
    * Return a link href resolved against the in-scope Base URI
@@ -893,28 +892,28 @@
    * @return The resolved IRI
    * @throws IRISyntaxException if the href attribute is malformed
    */
-  IRI getAlternateLinkResolvedHref(String type, String hreflang) throws IRISyntaxException, MimeTypeParseException;
+  IRI getAlternateLinkResolvedHref(String type, String hreflang) throws MimeTypeParseException;
 
   /**
    * Return a link href resolved against the in-scope Base URI
    * @return The resolved IRI
    * @throws IRISyntaxException if the href attribute is malformed
    */
-  IRI getEnclosureLinkResolvedHref() throws IRISyntaxException;
+  IRI getEnclosureLinkResolvedHref() ;
 
   /**
    * Return a link href resolved against the in-scope Base URI
    * @return The resolved IRI
    * @throws IRISyntaxException if the href attribute is malformed
    */
-  IRI getEditLinkResolvedHref() throws IRISyntaxException;
+  IRI getEditLinkResolvedHref() ;
 
   /**
    * Return a link href resolved against the in-scope Base URI
    * @return The resolved IRI
    * @throws IRISyntaxException if the href attribute is malformed
    */
-  IRI getEditMediaLinkResolvedHref() throws IRISyntaxException;
+  IRI getEditMediaLinkResolvedHref() ;
 
   /**
    * Return a link href resolved against the in-scope Base URI
@@ -924,13 +923,13 @@
    * @throws IRISyntaxException if the href attribute is malformed
    * @throws MimeTypeParseException if the type is malformed
    */
-  IRI getEditMediaLinkResolvedHref(String type, String hreflang) throws IRISyntaxException, MimeTypeParseException;
+  IRI getEditMediaLinkResolvedHref(String type, String hreflang) throws MimeTypeParseException;
  
   /**
    * Return a link href resolved against the in-scope Base URI
    * @return The resolved IRI
    * @throws IRISyntaxException if the href attribute is malformed
    */
-  IRI getSelfLinkResolvedHref() throws IRISyntaxException;
+  IRI getSelfLinkResolvedHref();
 }
 

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Feed.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Feed.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Feed.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Feed.java Wed May 23 16:22:54 2007
@@ -20,8 +20,6 @@
 import java.util.Comparator;
 import java.util.List;
 
-import org.apache.abdera.i18n.iri.IRISyntaxException;
-
 /**
  * <p>Represents an Atom Feed Element</p>
  * 
@@ -158,6 +156,6 @@
    * @return The matching atom:entry
    * @throws IRISyntaxException if the id is malformed
    */
-  Entry getEntry(String id) throws IRISyntaxException;
+  Entry getEntry(String id);
   
 }

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Generator.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Generator.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Generator.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Generator.java Wed May 23 16:22:54 2007
@@ -18,8 +18,6 @@
 package org.apache.abdera.model;
 
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
-
 
 /**
  * <p>Identifies the software implementation that produced the Atom feed.</p>
@@ -53,7 +51,7 @@
    *  representation that is relevant to that agent.
    * @throws IRISyntaxException if the uri is malformed 
    */
-  IRI getUri() throws IRISyntaxException;
+  IRI getUri() ;
   
   /**
    * Returns the fully qualified form of the generator element's uri attribute
@@ -61,7 +59,7 @@
    * @return the resolved uri value
    * @throws IRISyntaxException if the uri is malformed
    */
-  IRI getResolvedUri() throws IRISyntaxException;
+  IRI getResolvedUri();
   
   /**
    *  The atom:generator element MAY have a "uri" attribute whose value
@@ -71,7 +69,7 @@
    * @param uri The URI attribute value
    * @throws IRISyntaxException if the uri is malformed
    */
-  void setUri(String uri) throws IRISyntaxException;
+  void setUri(String uri);
   
   /**
    * The atom:generator element MAY have a "version" attribute that

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/IRIElement.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/IRIElement.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/IRIElement.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/IRIElement.java Wed May 23 16:22:54 2007
@@ -18,7 +18,6 @@
 package org.apache.abdera.model;
 
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 /**
  * <p>The IRI interface provides a common base for a set of feed and 
@@ -32,27 +31,27 @@
    * Returns the value of the element as a java.net.URI
    * @return The IRI value of this element 
    */
-  IRI getValue() throws IRISyntaxException;
+  IRI getValue();
   
   /**
    * Sets the value of the element
    * @param iri The iri value
    * @throws IRISyntaxException  if the value is malformed
    */
-  void setValue(String iri) throws IRISyntaxException;
+  void setValue(String iri);
   
   /**
    * Set the value of this element using the normalization as specified in RFC4287
    * @param iri A non-normalized IRI
    * @throws IRISyntaxException if the iri is malformed
    */
-  void setNormalizedValue(String iri) throws IRISyntaxException;
+  void setNormalizedValue(String iri);
   
   /**
    * Returns the value of the element resolved against the current
    * in-scope Base URI
    * @return The resolved IRI value
    */
-  IRI getResolvedValue() throws IRISyntaxException;
+  IRI getResolvedValue();
   
 }

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Link.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Link.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Link.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Link.java Wed May 23 16:22:54 2007
@@ -21,7 +21,6 @@
 import javax.activation.MimeTypeParseException;
 
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 /**
  * <p>Represents an Atom Link element.</p>
@@ -90,7 +89,7 @@
    * @return The href IRI value
    * @throws IRISyntaxException if the href is malformed
    */
-  IRI getHref() throws IRISyntaxException;
+  IRI getHref();
   
   /**
    * Returns the value of the link's href attribute resolved against the 
@@ -98,7 +97,7 @@
    * @return The href IRI value
    * @throws IRISyntaxException if the href is malformed
    */
-  IRI getResolvedHref() throws IRISyntaxException;
+  IRI getResolvedHref();
   
   /**
    * RFC4287: The "href" attribute contains the link's IRI. atom:link 
@@ -107,7 +106,7 @@
    * @param href The href IRI
    * @throws IRISyntaxException if the href is malformed
    */
-  void setHref(String href) throws IRISyntaxException;
+  void setHref(String href);
   
   /**
    * <p>RFC4287: atom:link elements MAY have a "rel" attribute that indicates the link

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Person.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Person.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Person.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Person.java Wed May 23 16:22:54 2007
@@ -18,7 +18,6 @@
 package org.apache.abdera.model;
 
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 /**
  * <p>An Atom Person Construct</p>
@@ -137,7 +136,7 @@
    * @param uri The atom:uri value
    * @throws IRISyntaxException if the uri is malformed
    */
-  IRIElement setUri(String uri) throws IRISyntaxException;
+  IRIElement setUri(String uri);
   
   /**
    * The "atom:uri" element's content conveys an IRI associated with the
@@ -147,5 +146,5 @@
    * @return The atom:uri value
    * @throws IRISyntaxException if the uri is invalid 
    */
-  IRI getUri() throws IRISyntaxException;
+  IRI getUri();
 }

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/PersonWrapper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/PersonWrapper.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/PersonWrapper.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/PersonWrapper.java Wed May 23 16:22:54 2007
@@ -21,7 +21,6 @@
 
 import org.apache.abdera.factory.Factory;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 import org.apache.abdera.util.Constants;
 
 public abstract class PersonWrapper 
@@ -54,7 +53,7 @@
     return getInternal().getFirstChild(NAME);
   }
 
-  public IRI getUri() throws IRISyntaxException {
+  public IRI getUri() {
     IRIElement iri = getUriElement();
     return (iri != null) ? iri.getResolvedValue() : null;
   }
@@ -107,7 +106,7 @@
       internal.addExtension(element);
   }
 
-  public IRIElement setUri(String uri) throws IRISyntaxException {
+  public IRIElement setUri(String uri) {
     ExtensibleElement internal = getExtInternal();
     IRIElement el = getUriElement();
     if (uri != null) {

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Source.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Source.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Source.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Source.java Wed May 23 16:22:54 2007
@@ -23,7 +23,6 @@
 import javax.activation.MimeTypeParseException;
 
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 /**
  * <p>Per RFC4287:</p>
@@ -101,7 +100,7 @@
    * @return The newly created atom:author element
    * @throws IRISyntaxException  if the iri is malformed
    */
-  Person addAuthor(String name, String email, String iri) throws IRISyntaxException;
+  Person addAuthor(String name, String email, String iri) ;
   
   /**
    * Lists the complete set of categories listed for the entry
@@ -115,7 +114,7 @@
    * @return The listing of app:category elements 
    * @throws IRISyntaxException if the scheme is malformed
    */
-  List<Category> getCategories(String scheme) throws IRISyntaxException;
+  List<Category> getCategories(String scheme) ;
   
   /**
    * Adds an individual category to the entry
@@ -138,7 +137,7 @@
    * @return the newly created atom:category element
    * @throws IRISyntaxException if the scheme is malformed
    */
-  Category addCategory(String scheme, String term, String label) throws IRISyntaxException;
+  Category addCategory(String scheme, String term, String label) ;
   
   /**
    * Lists the complete set of contributors for this entry
@@ -167,7 +166,7 @@
    * @return The atom:contributor element
    * @throws IRISyntaxException if the iri is malformed
    */
-  Person addContributor(String name, String email, String iri) throws IRISyntaxException;
+  Person addContributor(String name, String email, String iri) ;
   
   /**
    * RFC4287: The "atom:generator" element's content identifies the 
@@ -196,7 +195,7 @@
     String iri, 
     String version, 
     String value) 
-      throws IRISyntaxException;
+      ;
   
   /** 
    * RFC4287: The "atom:icon" element's content is an IRI reference 
@@ -227,7 +226,7 @@
    * @param iri The atom:icon IRI value
    * @throws IRISyntaxException if the iri is malformed
    */
-  IRIElement setIcon(String iri) throws IRISyntaxException;
+  IRIElement setIcon(String iri) ;
 
   /** 
    * RFC4287: The "atom:icon" element's content is an IRI reference 
@@ -238,7 +237,7 @@
    * @return The atom:icon value
    * @throws IRISyntaxException if the atom:icon value is malformed
    */
-  IRI getIcon() throws IRISyntaxException;
+  IRI getIcon() ;
   
   /**
    * RFC4287: The "atom:id" element conveys a permanent, universally unique
@@ -259,7 +258,7 @@
    * @return The atom:id value
    * @throws IRISyntaxException if the atom:id is malformed
    */
-  IRI getId() throws IRISyntaxException;
+  IRI getId() ;
 
   /**
    * Sets the universally unique identifier for this feed
@@ -267,12 +266,12 @@
    * @return The newly created atom:id element
    * @throws IRISyntaxException  if the id is malformed
    */
-  IRIElement setId(String id) throws IRISyntaxException;
+  IRIElement setId(String id) ;
   
   /**
    * Creates a new randomized atom:id for the entry
    */
-  IRIElement newId() throws IRISyntaxException;
+  IRIElement newId() ;
   
   /**
    * Sets the universally unique identifier for this feed
@@ -281,7 +280,7 @@
    * @return The newly created atom:id element
    * @throws IRISyntaxException if the id is malformed
    */
-  IRIElement setId(String id, boolean normalize) throws IRISyntaxException;
+  IRIElement setId(String id, boolean normalize) ;
    
   /**
    * Lists the complete set of links for this entry
@@ -308,7 +307,7 @@
    * @return The newly created atom:link
    * @throws IRISyntaxException if the href is malformed
    */
-  Link addLink(String href) throws IRISyntaxException;
+  Link addLink(String href) ;
   
   /**
    * Adds an individual link element
@@ -317,7 +316,7 @@
    * @return The newly created atom:link
    * @throws IRISyntaxException if the href is malformed
    */
-  Link addLink(String href, String rel) throws IRISyntaxException;
+  Link addLink(String href, String rel) ;
   
   /**
    * Adds an individual link element
@@ -329,7 +328,7 @@
    * @return The newly created atom:link
    * @throws IRISyntaxException if the href is malformed
    */
-  Link addLink(String href, String rel, String type, String title, String hreflang, long length) throws IRISyntaxException, MimeTypeParseException;
+  Link addLink(String href, String rel, String type, String title, String hreflang, long length) throws MimeTypeParseException;
    
   /**
    * RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] 
@@ -355,7 +354,7 @@
    * @return The newly created atom:logo element
    * @throws IRISyntaxException if the iri is malformed
    */
-  IRIElement setLogo(String iri) throws IRISyntaxException;
+  IRIElement setLogo(String iri) ;
 
   /**
    * RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] 
@@ -364,7 +363,7 @@
    * @return The atom:logo element value
    * @throws IRISyntaxException  if the atom:logo value is malformed
    */
-  IRI getLogo() throws IRISyntaxException;
+  IRI getLogo() ;
   
   /**
    * <p>The rights element is typically used to convey a human readable 
@@ -644,17 +643,17 @@
    * @param rel A link relation
    * @return An atom:link
    */
-  IRI getLinkResolvedHref(String rel) throws IRISyntaxException;
+  IRI getLinkResolvedHref(String rel) ;
   
   /**
    * @return An atom:link
    */
-  IRI getSelfLinkResolvedHref() throws IRISyntaxException;
+  IRI getSelfLinkResolvedHref() ;
   
   /**
    * @return An atom:link
    */
-  IRI getAlternateLinkResolvedHref() throws IRISyntaxException;
+  IRI getAlternateLinkResolvedHref() ;
   
   /**
    * @param type A media type
@@ -662,7 +661,7 @@
    * @return A matching atom:link
    * @throws MimeTypeParseException if the type if malformed
    */
-  IRI getAlternateLinkResolvedHref(String type, String hreflang) throws IRISyntaxException, MimeTypeParseException;
+  IRI getAlternateLinkResolvedHref(String type, String hreflang) throws MimeTypeParseException;
   
   /**
    * Return an app:collection element associatd with this atom:source.  The 

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Workspace.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Workspace.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Workspace.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Workspace.java Wed May 23 16:22:54 2007
@@ -21,8 +21,6 @@
 
 import javax.activation.MimeType;
 
-import org.apache.abdera.i18n.iri.IRISyntaxException;
-
 /**
  * <p>An Atom Publishing Protocol Introspection Document workspace element.</p>
  * 
@@ -107,8 +105,7 @@
    */
   Collection addCollection(
     String title, 
-    String href) 
-      throws IRISyntaxException;
+    String href);
   
   /**
    * Returns a collection that accepts the specified media types

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/parser/Parser.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/parser/Parser.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/parser/Parser.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/parser/Parser.java Wed May 23 16:22:54 2007
@@ -22,7 +22,6 @@
 
 import org.apache.abdera.model.Document;
 import org.apache.abdera.model.Element;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 public interface Parser {
 
@@ -34,7 +33,7 @@
    */
   <T extends Element>Document<T> parse(
     InputStream in) 
-      throws ParseException, IRISyntaxException;
+      throws ParseException;
   
   /**
    * Parse the input stream using the default character set encoding (UTF-8).
@@ -49,7 +48,7 @@
   <T extends Element>Document<T> parse(
     InputStream in, 
     String base) 
-      throws ParseException, IRISyntaxException;
+      throws ParseException;
   
   /**
    * Parse the input stream using using the specified Parse options.  The 
@@ -68,7 +67,7 @@
     InputStream in, 
     String base, 
     ParserOptions options) 
-      throws ParseException, IRISyntaxException;
+      throws ParseException;
 
   /**
    * Parse the reader using the default Base URI and options
@@ -79,7 +78,7 @@
    */
   <T extends Element>Document<T> parse(
       Reader in) 
-        throws ParseException, IRISyntaxException;
+        throws ParseException;
     
   /**
    * Parse the reader using the specified Base URI
@@ -92,7 +91,7 @@
   <T extends Element>Document<T> parse(
     Reader in, 
     String base) 
-      throws ParseException, IRISyntaxException;
+      throws ParseException;
   
   /**
    * Parse the reader using using the specified Parse options.  The 
@@ -111,7 +110,7 @@
     Reader in, 
     String base, 
     ParserOptions options) 
-      throws ParseException, IRISyntaxException;
+      throws ParseException;
   
   /**
    * Return the default parser options for this Parser. This method 

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbderaResult.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbderaResult.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbderaResult.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbderaResult.java Wed May 23 16:22:54 2007
@@ -29,7 +29,6 @@
 import org.apache.abdera.Abdera;
 import org.apache.abdera.model.Document;
 import org.apache.abdera.model.Element;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 /**
  * Provides a simple (and likely somewhat inefficient) implementation of 
@@ -59,11 +58,7 @@
   public <T extends Element>Document<T> getDocument() {
     if (doc == null) {
       if (pipein == null) return null;
-      try {
-        doc = abdera.getParser().parse(pipein);
-      } catch (IRISyntaxException e) {
-        // Not going to happen
-      }
+      doc = abdera.getParser().parse(pipein);
     } 
     return doc;
   }

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractParser.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractParser.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractParser.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractParser.java Wed May 23 16:22:54 2007
@@ -27,7 +27,6 @@
 import org.apache.abdera.parser.ParseException;
 import org.apache.abdera.parser.Parser;
 import org.apache.abdera.parser.ParserOptions;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 /**
  * Abstract base implementation of Abdera Parser.
@@ -56,15 +55,14 @@
   
   public <T extends Element>Document<T> parse(
     InputStream in) 
-      throws ParseException, IRISyntaxException {
+      throws ParseException {
     return parse(in, null, getDefaultParserOptions());
   }
 
   public <T extends Element>Document<T> parse(
     InputStream in, 
     String base) 
-      throws ParseException, 
-             IRISyntaxException {
+      throws ParseException {
     return parse(in, base, getDefaultParserOptions());
   }
   
@@ -72,22 +70,20 @@
     InputStream in, 
     String base, 
     ParserOptions options) 
-      throws ParseException, 
-             IRISyntaxException {
+      throws ParseException{
     return parse(in, base, options);
   }
   
   public <T extends Element>Document<T> parse(
     Reader in) 
-      throws ParseException, IRISyntaxException {
+      throws ParseException {
     return parse(in, null, getDefaultParserOptions());
   }
 
   public <T extends Element>Document<T> parse(
     Reader in, 
     String base) 
-      throws ParseException, 
-             IRISyntaxException {
+      throws ParseException {
     return parse(in, base, getDefaultParserOptions());
   }
 

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/URIHelper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/URIHelper.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/URIHelper.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/URIHelper.java Wed May 23 16:22:54 2007
@@ -20,7 +20,6 @@
 import java.util.regex.Pattern;
 
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 /**
  * Utility methods for working with URI's / IRI's
@@ -48,13 +47,12 @@
    * Normalize a URI as specified by RFC4287 Section 4.2.6
    */
   public static IRI normalize(
-    IRI uri) 
-      throws IRISyntaxException {
+    IRI uri)  {
     if (uri == null) return null;
     return uri.normalize();
   }
   
-  public static String normalize(String uri) throws IRISyntaxException {
+  public static String normalize(String uri) {
     return normalize(new IRI(uri)).toASCIIString();
   }
 }

Modified: incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java (original)
+++ incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java Wed May 23 16:22:54 2007
@@ -66,7 +66,7 @@
   private String d_query;
   private String d_fragment;
   
-  public IRI(java.net.URL url) throws IRISyntaxException {
+  public IRI(java.net.URL url) {
     this(Escaping.encode(
         Escaping.decode(url.toString()), 
         Constants.IUNRESERVED, 
@@ -74,7 +74,7 @@
         Constants.PCTENC));
   }
   
-  public IRI(java.net.URI uri) throws IRISyntaxException {
+  public IRI(java.net.URI uri) {
     this(Escaping.encode(
       Escaping.decode(uri.toString()), 
       Constants.IUNRESERVED, 
@@ -83,7 +83,7 @@
       Constants.GENDELIMS));
   }
   
-  public IRI(java.net.URI uri, String enc) throws IRISyntaxException, UnsupportedEncodingException {
+  public IRI(java.net.URI uri, String enc) throws UnsupportedEncodingException {
     this(Escaping.encode(
         Escaping.decode(uri.toString(),enc), enc,
         Constants.IUNRESERVED, 
@@ -92,7 +92,7 @@
         Constants.GENDELIMS));
   }
   
-  public IRI(String iri) throws IRISyntaxException {
+  public IRI(String iri) {
     Builder b = new Builder();
     parse(CharUtils.stripBidi(iri), b);
     init(
@@ -107,7 +107,7 @@
       b.fragment);
   }
   
-  public IRI(String iri, Normalizer.Form nf) throws IRISyntaxException, IOException {
+  public IRI(String iri, Normalizer.Form nf) throws IOException {
     this(Normalizer.normalize(CharUtils.stripBidi(iri),nf).toString());
   }
   
@@ -133,8 +133,7 @@
     String authority,
     String path,
     String query,
-    String fragment) 
-      throws IRISyntaxException {
+    String fragment) {
     Builder builder = new Builder();
     Parser.parseAuthority(authority, builder);
     SchemeRegistry reg = SchemeRegistry.getInstance();
@@ -497,8 +496,7 @@
   public static IRI resolve(
     IRI b, 
     String c) 
-      throws IRISyntaxException, 
-             IOException {
+      throws IOException {
     return resolve(b, IRI.create(c));
   }
   
@@ -639,7 +637,7 @@
     return resolve(this,iri);
   }
   
-  public IRI resolve(String iri) throws IRISyntaxException {
+  public IRI resolve(String iri) {
     return resolve(this,IRI.create(iri));
   }
   
@@ -684,8 +682,7 @@
   
   private static void parse(
     String uri,
-    Builder builder) 
-      throws IRISyntaxException {
+    Builder builder) {
     try {
       Parser.parse(uri, builder, SchemeRegistry.getInstance());
     } catch (IOException e) {
@@ -694,16 +691,14 @@
   }
   
   public static IRI create(
-    String iri) 
-      throws IRISyntaxException {
+    String iri) {
     return new IRI(iri);
   }
   
   public static IRI create(
     String iri, 
     Normalizer.Form nf) 
-      throws IRISyntaxException, 
-             IOException {
+      throws IOException {
     return new IRI(iri,nf);
   }
   
@@ -735,7 +730,7 @@
     static final Pattern a =
       Pattern.compile("^((.*)?@)?(\\[.*\\])?([^:]*)?(:(\\d*))?");
     
-    static void parseAuthority(String authority, Builder builder) throws IRISyntaxException {
+    static void parseAuthority(String authority, Builder builder) {
       if (authority != null) {
         Matcher auth = a.matcher(authority);
         if (auth.find()) {
@@ -756,8 +751,7 @@
     }
     
     static void parse(String iri, Builder builder, SchemeRegistry reg) 
-      throws IRISyntaxException, 
-             IOException {
+      throws IOException {
       Matcher irim = p.matcher(iri);
       if (irim.find()) {
         

Modified: incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRISyntaxException.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRISyntaxException.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRISyntaxException.java (original)
+++ incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRISyntaxException.java Wed May 23 16:22:54 2007
@@ -17,7 +17,7 @@
 */
 package org.apache.abdera.i18n.iri;
 
-public class IRISyntaxException extends Exception {
+public class IRISyntaxException extends RuntimeException {
   private static final long serialVersionUID = 5177739661976965423L;
 
   IRISyntaxException(String message) {

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/editor/Editor.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/editor/Editor.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/editor/Editor.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/editor/Editor.java Wed May 23 16:22:54 2007
@@ -56,8 +56,7 @@
   private Document<Feed> feeddoc;
   
   public Editor(
-    String serviceDocument) 
-      throws IRISyntaxException {
+    String serviceDocument) {
     this(new Abdera(), serviceDocument);
   }
   
@@ -70,8 +69,7 @@
   
   public Editor(
     Abdera abdera,
-    String serviceDocument) 
-      throws IRISyntaxException {
+    String serviceDocument) {
     this.abdera = abdera;
     this.client = new CommonsClient(abdera);
     Document<Service> servicedoc = 
@@ -93,8 +91,7 @@
   private static <T extends Element>Document<T> getDocument(
     Client client,
     Abdera abdera, 
-    String document)
-      throws IRISyntaxException {
+    String document) {
     
     ClientResponse resp = client.get(document);
     switch(resp.getType()) {
@@ -155,8 +152,7 @@
     return collection;
   }
   
-  public Feed getFeed() 
-    throws IRISyntaxException {
+  public Feed getFeed()  {
       Collection collection = getCurrentCollection();
       if (collection == null)
         throw new IllegalStateException(
@@ -186,8 +182,7 @@
     return nextPage;
   }
   
-  public void nextPage() 
-    throws IRISyntaxException {
+  public void nextPage()  {
       IRI np = getNextPage();
       if (np != null) {
         this.feeddoc = 
@@ -213,8 +208,7 @@
     return prevPage;
   }
   
-  public void previousPage() 
-    throws IRISyntaxException {
+  public void previousPage()  {
       IRI np = getPreviousPage();
       if (np != null) {
         this.feeddoc = 
@@ -225,8 +219,7 @@
       }
   }
   
-  public List<Entry> getEntries() 
-    throws IRISyntaxException {
+  public List<Entry> getEntries() {
       Feed feed = getFeed();
       if (feed == null) 
         throw new IllegalStateException(
@@ -235,8 +228,7 @@
   }
   
   public EntryEditor editEntry(
-    Entry entry) 
-      throws IRISyntaxException {
+    Entry entry) {
     return new EntryEditor(entry);
   }
   
@@ -249,15 +241,13 @@
     private MimeType contentType;
     
     public MediaEditor(IRI editMediaLink) 
-      throws IOException, 
-             IRISyntaxException {
+      throws IOException {
       this.editMediaLink = editMediaLink;
       getMedia(this.editMediaLink);
     }
     
     private void getMedia(IRI editMediaLink) 
-      throws IOException,
-             IRISyntaxException {
+      throws IOException {
       ClientResponse resp = client.get(editMediaLink.toString());
       switch(resp.getType()) {
         case SUCCESS:
@@ -297,7 +287,7 @@
       this.contentType = contentType;
     }
     
-    public boolean delete() throws IRISyntaxException  {
+    public boolean delete() {
       RequestOptions options = client.getDefaultRequestOptions();
       if (etag != null) {
         options.setIfMatch(etag.toString());
@@ -320,7 +310,7 @@
       }
     }
     
-    public boolean save() throws IRISyntaxException  {
+    public boolean save() {
       RequestOptions options = client.getDefaultRequestOptions();
       if (etag != null) {
         options.setIfMatch(etag.toString());
@@ -345,8 +335,7 @@
     }
     
     public void refresh() 
-      throws IRISyntaxException, 
-             MimeTypeParseException, 
+      throws MimeTypeParseException, 
              IOException {
       getMedia(editMediaLink);
     }
@@ -359,7 +348,7 @@
     private final IRI editMediaLink;
     private Document<Entry> entryDoc;
     
-    public EntryEditor(Entry entry) throws IRISyntaxException {
+    public EntryEditor(Entry entry) {
       this.editLink = entry.getEditLinkResolvedHref();
       this.editMediaLink = entry.getEditMediaLinkResolvedHref();
       entryDoc = getDocument(client,abdera,this.editLink.toString());
@@ -374,14 +363,13 @@
     }
     
     public MediaEditor editMedia() 
-      throws IOException, 
-             IRISyntaxException {
+      throws IOException {
       if (this.editMediaLink == null) 
         throw new IllegalStateException("This is not a media link entry");
       return new MediaEditor(this.editMediaLink);
     }
     
-    public boolean delete() throws IRISyntaxException  {
+    public boolean delete() {
       RequestOptions options = client.getDefaultRequestOptions();
       EntityTag etag = entryDoc.getEntityTag();
       Date lm = entryDoc.getLastModified();
@@ -406,7 +394,7 @@
       }
     }
     
-    public boolean save() throws IRISyntaxException  {
+    public boolean save() {
       RequestOptions options = client.getDefaultRequestOptions();
       EntityTag etag = entryDoc.getEntityTag();
       Date lm = entryDoc.getLastModified();
@@ -431,7 +419,7 @@
       }
     }
     
-    public void refresh() throws IRISyntaxException {
+    public void refresh() {
       entryDoc = getDocument(
         client, 
         abdera, 

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/features/Feature.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/features/Feature.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/features/Feature.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/features/Feature.java Wed May 23 16:22:54 2007
@@ -21,7 +21,6 @@
 
 import org.apache.abdera.factory.Factory;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 import org.apache.abdera.model.Element;
 import org.apache.abdera.model.ExtensibleElementWrapper;
 
@@ -36,8 +35,7 @@
     super(factory, FeaturesHelper.FEATURE);
   }
   
-  public IRI getRef() 
-    throws IRISyntaxException {
+  public IRI getRef()  {
       String ref = getAttributeValue("ref");
       return (ref != null) ? new IRI(ref) : null;
   }
@@ -48,8 +46,7 @@
     return false;
   }
   
-  public IRI getHref() 
-    throws IRISyntaxException {
+  public IRI getHref()  {
       String href = getAttributeValue("href");
       return (href != null) ? new IRI(href) : null;
   }
@@ -58,8 +55,7 @@
     return getAttributeValue("label");
   }
   
-  public void setRef(String ref) 
-    throws IRISyntaxException {
+  public void setRef(String ref) {
       if (ref == null) throw new IllegalArgumentException();
       setAttributeValue("ref", (new IRI(ref)).toString());
   }
@@ -72,8 +68,7 @@
     }
   }
   
-  public void setHref(String href) 
-    throws IRISyntaxException {
+  public void setHref(String href)  {
       if (href != null)
         setAttributeValue("href", (new IRI(href)).toString());
       else 

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/features/FeaturesHelper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/features/FeaturesHelper.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/features/FeaturesHelper.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/features/FeaturesHelper.java Wed May 23 16:22:54 2007
@@ -24,7 +24,6 @@
 import org.apache.abdera.ext.thread.ThreadConstants;
 import org.apache.abdera.factory.Factory;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 import org.apache.abdera.model.Collection;
 import org.apache.abdera.model.Element;
 
@@ -129,8 +128,7 @@
     String feature,
     boolean required,
     String href,
-    String label) 
-      throws IRISyntaxException {
+    String label) {
     if (supportsFeature(collection, feature)) 
       throw new IllegalArgumentException("Feature already supported");
     Factory factory = collection.getFactory();

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/history/FeedPagingHelper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/history/FeedPagingHelper.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/history/FeedPagingHelper.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/history/FeedPagingHelper.java Wed May 23 16:22:54 2007
@@ -23,7 +23,6 @@
 import org.apache.abdera.model.Feed;
 import org.apache.abdera.model.Link;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 /**
  * Initial support for Mark Nottingham's Feed Paging and Archiving draft 
@@ -108,7 +107,7 @@
    * @param iri The IRI of the next feed document
    * @return The newly created Link
    */
-  public static Link setNext(Feed feed, String iri) throws IRISyntaxException {
+  public static Link setNext(Feed feed, String iri) {
     Link link = feed.getLink("next");
     if (link != null) {
       link.setHref(iri);
@@ -124,7 +123,7 @@
    * @param iri The IRI of the previous feed document
    * @return The newly created Link
    */
-  public static Link setPrevious(Feed feed, String iri) throws IRISyntaxException {
+  public static Link setPrevious(Feed feed, String iri) {
     Link link = feed.getLink("previous");
     if (link != null) {
       link.setHref(iri);
@@ -140,7 +139,7 @@
    * @param iri The IRI of the first feed document
    * @return The newly created Link
    */
-  public static Link setFirst(Feed feed, String iri) throws IRISyntaxException {
+  public static Link setFirst(Feed feed, String iri) {
     Link link = feed.getLink("first");
     if (link != null) {
       link.setHref(iri);
@@ -156,7 +155,7 @@
    * @param iri The IRI of the last feed document
    * @return The newly created Link
    */
-  public static Link setLast(Feed feed, String iri) throws IRISyntaxException {
+  public static Link setLast(Feed feed, String iri) {
     Link link = feed.getLink("last");
     if (link != null) {
       link.setHref(iri);
@@ -172,7 +171,7 @@
    * @param iri The IRI of the next archive feed document
    * @return The newly created Link
    */
-  public static Link setNextArchive(Feed feed, String iri) throws IRISyntaxException {
+  public static Link setNextArchive(Feed feed, String iri) {
     Link link = feed.getLink("next-archive");
     if (link == null) { // try the full IANA URI version
       link = feed.getLink(Link.IANA_BASE + "next-archive");
@@ -191,7 +190,7 @@
    * @param iri The IRI of the previous archive feed document
    * @return The newly created Link
    */
-  public static Link setPreviousArchive(Feed feed, String iri) throws IRISyntaxException {
+  public static Link setPreviousArchive(Feed feed, String iri) {
     Link link = feed.getLink("prev-archive");
     if (link == null) { // try the full IANA URI version
       link = feed.getLink(Link.IANA_BASE + "prev-archive");
@@ -210,7 +209,7 @@
    * @param iri The IRI of the current feed document
    * @return The newly created Link
    */
-  public static Link setCurrent(Feed feed, String iri) throws IRISyntaxException {
+  public static Link setCurrent(Feed feed, String iri) {
     Link link = feed.getLink("current");
     if (link == null) { // try the full IANA URI version
       link = feed.getLink(Link.IANA_BASE + "current");
@@ -226,7 +225,7 @@
   /**
    * Returns the IRI of the next link relation
    */
-  public static IRI getNext(Feed feed) throws IRISyntaxException {
+  public static IRI getNext(Feed feed) {
     Link link = feed.getLink("next");
     return (link != null) ? link.getResolvedHref() : null;
   }
@@ -234,7 +233,7 @@
   /**
    * Returns the IRI of the previous link relation
    */
-  public static IRI getPrevious(Feed feed) throws IRISyntaxException {
+  public static IRI getPrevious(Feed feed) {
     Link link = feed.getLink("previous");
     return (link != null) ? link.getResolvedHref() : null;
   }
@@ -242,7 +241,7 @@
   /**
    * Returns the IRI of the first link relation
    */
-  public static IRI getFirst(Feed feed) throws IRISyntaxException {
+  public static IRI getFirst(Feed feed) {
     Link link = feed.getLink("first");
     return (link != null) ? link.getResolvedHref() : null;
   }
@@ -250,7 +249,7 @@
   /**
    * Returns the IRI of the last link relation
    */
-  public static IRI getLast(Feed feed) throws IRISyntaxException {
+  public static IRI getLast(Feed feed) {
     Link link = feed.getLink("last");
     return (link != null) ? link.getResolvedHref() : null;
   }
@@ -258,7 +257,7 @@
   /**
    * Returns the IRI of the prev-archive link relation
    */
-  public static IRI getPreviousArchive(Feed feed) throws IRISyntaxException {
+  public static IRI getPreviousArchive(Feed feed) {
     Link link = feed.getLink("prev-archive");
     if (link == null) { // try the full IANA URI version
       link = feed.getLink(Link.IANA_BASE + "prev-archive");
@@ -269,7 +268,7 @@
   /**
    * Returns the IRI of the next-archive link relation
    */
-  public static IRI getNextArchive(Feed feed) throws IRISyntaxException {
+  public static IRI getNextArchive(Feed feed) {
     Link link = feed.getLink("next-archive");
     if (link == null) { // try the full IANA URI version
       link = feed.getLink(Link.IANA_BASE + "next-archive");
@@ -280,7 +279,7 @@
   /**
    * Returns the IRI of the current link relation
    */
-  public static IRI getCurrent(Feed feed) throws IRISyntaxException {
+  public static IRI getCurrent(Feed feed) {
     Link link = feed.getLink("current");
     if (link == null) { // try the full IANA URI version
       link = feed.getLink(Link.IANA_BASE + "current");

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/json/JSONWriter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/json/JSONWriter.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/json/JSONWriter.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/json/JSONWriter.java Wed May 23 16:22:54 2007
@@ -38,7 +38,6 @@
 import org.apache.abdera.model.Workspace;
 import org.apache.abdera.model.Content.Type;
 import org.apache.abdera.util.AbstractNamedWriter;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 import org.apache.abdera.writer.NamedWriter;
 import org.json.JSONArray;
 import org.json.JSONException;
@@ -232,7 +231,7 @@
     return jssvc;
   }
 
-  private static JSONArray categoriesToJSON(List<Category> categories) throws IRISyntaxException, JSONException {
+  private static JSONArray categoriesToJSON(List<Category> categories) throws JSONException {
     JSONArray jscategories = new JSONArray();
     for (Category category : categories) {
       if (category.getScheme() != null || category.getLabel() != null || category.getTerm() != null) {
@@ -251,7 +250,7 @@
     return jscategories;
   }
 
-  private static JSONArray personsToJSON(List<Person> persons) throws IRISyntaxException, JSONException {
+  private static JSONArray personsToJSON(List<Person> persons) throws JSONException {
     JSONArray jspersons = new JSONArray();
     for (Person p : persons) {
       if (p.getName() != null || p.getUri() != null || p.getEmail() != null) {
@@ -268,7 +267,7 @@
     return jspersons;
   }
 
-  private static JSONArray linksToJSON(List<Link> links) throws IRISyntaxException, MimeTypeParseException, JSONException {
+  private static JSONArray linksToJSON(List<Link> links) throws MimeTypeParseException, JSONException {
     JSONArray jslinks = new JSONArray();
     for (Link link : links) {
       JSONObject jslink = new JSONObject();

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/license/LicenseHelper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/license/LicenseHelper.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/license/LicenseHelper.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/license/LicenseHelper.java Wed May 23 16:22:54 2007
@@ -22,7 +22,6 @@
 import javax.activation.MimeTypeParseException;
 
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 import org.apache.abdera.model.Base;
 import org.apache.abdera.model.Entry;
 import org.apache.abdera.model.Link;
@@ -66,12 +65,7 @@
   public static boolean hasUnspecifiedLicense(
     Base base, 
     boolean inherited) {
-      try {
-        return hasLicense(base, UNSPECIFIED_LICENSE, inherited);
-      } catch (IRISyntaxException i) {
-        // not going to happen
-        return false;
-      }
+      return hasLicense(base, UNSPECIFIED_LICENSE, inherited);
   }
   
   public static boolean hasUnspecifiedLicense(
@@ -82,8 +76,7 @@
   public static boolean hasLicense(
     Base base, 
     String iri, 
-    boolean inherited)
-      throws IRISyntaxException {
+    boolean inherited) {
     List<Link> links = getLicense(base, inherited);
     IRI check = new IRI(iri);
     boolean answer = false;
@@ -100,8 +93,7 @@
   
   public static boolean hasLicense(
     Base base, 
-    String iri) 
-      throws IRISyntaxException {
+    String iri) {
     return hasLicense(base, iri, false);
   }
   
@@ -119,22 +111,16 @@
   
   public static Link addUnspecifiedLicense(
     Base base) {
-      try {
-        if (hasUnspecifiedLicense(base)) 
-          throw new IllegalStateException("Unspecified license already added");
-        if (hasLicense(base)) 
-          throw new IllegalStateException("Other licenses are already added.");
-        return addLicense(base, UNSPECIFIED_LICENSE);
-      } catch (IRISyntaxException i) {
-        // not going to happen
-        return null;
-      }
+      if (hasUnspecifiedLicense(base)) 
+        throw new IllegalStateException("Unspecified license already added");
+      if (hasLicense(base)) 
+        throw new IllegalStateException("Other licenses are already added.");
+      return addLicense(base, UNSPECIFIED_LICENSE);
   }
   
   public static Link addLicense(
     Base base, 
-    String iri) 
-      throws IRISyntaxException {
+    String iri) {
     try {
       return addLicense(base, iri, null, null, null);
     } catch (MimeTypeParseException m) {
@@ -146,8 +132,7 @@
   public static Link addLicense(
     Base base,
     String iri,
-    String title) 
-    throws IRISyntaxException {
+    String title) {
     try {
       return addLicense(base, iri, null, title, null);
     } catch (MimeTypeParseException m) {
@@ -162,8 +147,7 @@
     String type,
     String title,
     String hreflang) 
-      throws IRISyntaxException,
-             MimeTypeParseException {
+      throws MimeTypeParseException {
     if (hasLicense(base, iri))
       throw new IllegalStateException("License '" + iri + "' has already been added");
     if (hasUnspecifiedLicense(base))

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCategory.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCategory.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCategory.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCategory.java Wed May 23 16:22:54 2007
@@ -23,7 +23,6 @@
 import org.apache.abdera.model.Element;
 import org.apache.abdera.model.ElementWrapper;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 public class MediaCategory extends ElementWrapper {
 
@@ -35,12 +34,12 @@
     super(factory, MediaConstants.CATEGORY);
   }
 
-  public IRI getScheme() throws IRISyntaxException {
+  public IRI getScheme() {
     String scheme = getAttributeValue("scheme");
     return (scheme != null) ? new IRI(scheme) : null;
   }
   
-  public void setScheme(String scheme) throws IRISyntaxException {
+  public void setScheme(String scheme) {
     if (scheme != null)
       setAttributeValue("scheme",(new IRI(scheme)).toString());
     else 

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaContent.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaContent.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaContent.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaContent.java Wed May 23 16:22:54 2007
@@ -25,7 +25,6 @@
 import org.apache.abdera.model.Element;
 import org.apache.abdera.model.ExtensibleElementWrapper;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 public class MediaContent 
   extends ExtensibleElementWrapper {
@@ -38,12 +37,12 @@
     super(factory, MediaConstants.CONTENT);
   }
   
-  public IRI getUrl() throws IRISyntaxException {
+  public IRI getUrl() {
     String url = getAttributeValue("url");
     return (url != null) ? new IRI(url) : null;
   }
   
-  public void setUrl(String url) throws IRISyntaxException {
+  public void setUrl(String url) {
     if (url != null)
       setAttributeValue("url", (new IRI(url)).toString());
     else

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCopyright.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCopyright.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCopyright.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCopyright.java Wed May 23 16:22:54 2007
@@ -23,7 +23,6 @@
 import org.apache.abdera.model.Element;
 import org.apache.abdera.model.ElementWrapper;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 public class MediaCopyright extends ElementWrapper {
 
@@ -35,12 +34,12 @@
     super(factory, MediaConstants.COPYRIGHT);
   }
   
-  public IRI getUrl() throws IRISyntaxException {
+  public IRI getUrl() {
     String url = getAttributeValue("url");
     return (url != null) ? new IRI(url) : null;
   }
   
-  public void setUrl(String url) throws IRISyntaxException {
+  public void setUrl(String url) {
     if (url != null)
       setAttributeValue("url", (new IRI(url)).toString());
     else

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCredit.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCredit.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCredit.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaCredit.java Wed May 23 16:22:54 2007
@@ -23,7 +23,6 @@
 import org.apache.abdera.model.Element;
 import org.apache.abdera.model.ElementWrapper;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 public class MediaCredit extends ElementWrapper {
 
@@ -35,12 +34,12 @@
     super(factory, MediaConstants.CREDIT);
   }
   
-  public IRI getScheme() throws IRISyntaxException {
+  public IRI getScheme() {
     String scheme = getAttributeValue("scheme");
     return (scheme != null) ? new IRI(scheme) : null;
   }
   
-  public void setScheme(String scheme) throws IRISyntaxException {
+  public void setScheme(String scheme) {
     if (scheme != null)
       setAttributeValue("scheme",(new IRI(scheme)).toString());
     else

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaPlayer.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaPlayer.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaPlayer.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaPlayer.java Wed May 23 16:22:54 2007
@@ -23,7 +23,6 @@
 import org.apache.abdera.model.Element;
 import org.apache.abdera.model.ElementWrapper;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 public class MediaPlayer extends ElementWrapper {
 
@@ -35,12 +34,12 @@
     super(factory, MediaConstants.PLAYER);
   }
   
-  public IRI getUrl() throws IRISyntaxException {
+  public IRI getUrl() {
     String url = getAttributeValue("url");
     return (url != null) ? new IRI(url) : null;
   }
   
-  public void setUrl(String url) throws IRISyntaxException {
+  public void setUrl(String url) {
     if (url != null) {
       setAttributeValue("url", (new IRI(url)).toString());
     } else {

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaRating.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaRating.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaRating.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaRating.java Wed May 23 16:22:54 2007
@@ -21,7 +21,6 @@
 import org.apache.abdera.model.Element;
 import org.apache.abdera.model.ElementWrapper;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 public class MediaRating extends ElementWrapper {
 
@@ -33,12 +32,12 @@
     super(factory, MediaConstants.RATING);
   }
   
-  public IRI getScheme() throws IRISyntaxException {
+  public IRI getScheme() {
     String scheme = getAttributeValue("scheme");
     return (scheme != null) ? new IRI(scheme) : null;
   }
   
-  public void setScheme(String scheme) throws IRISyntaxException {
+  public void setScheme(String scheme) {
     setAttributeValue("scheme",(new IRI(scheme)).toString());
   }
   

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaThumbnail.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaThumbnail.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaThumbnail.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaThumbnail.java Wed May 23 16:22:54 2007
@@ -23,7 +23,6 @@
 import org.apache.abdera.model.Element;
 import org.apache.abdera.model.ElementWrapper;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 public class MediaThumbnail extends ElementWrapper {
 
@@ -35,12 +34,12 @@
     super(factory, MediaConstants.THUMBNAIL);
   }
   
-  public IRI getUrl() throws IRISyntaxException {
+  public IRI getUrl() {
     String url = getAttributeValue("url");
     return (url != null) ? new IRI(url) : null;
   }
   
-  public void setUrl(String url) throws IRISyntaxException {
+  public void setUrl(String url) {
     if (url != null) {
       setAttributeValue("url", (new IRI(url)).toString());
     } else {

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/thread/InReplyTo.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/thread/InReplyTo.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/thread/InReplyTo.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/thread/InReplyTo.java Wed May 23 16:22:54 2007
@@ -24,7 +24,6 @@
 import org.apache.abdera.model.Element;
 import org.apache.abdera.model.ElementWrapper;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 public class InReplyTo 
   extends ElementWrapper {
@@ -37,7 +36,7 @@
     super(factory, ThreadConstants.IN_REPLY_TO);
   }
 
-  public IRI getHref() throws IRISyntaxException {
+  public IRI getHref() {
     String href = getAttributeValue("href");
     return (href != null) ? new IRI(href) : null;
   }
@@ -47,24 +46,24 @@
     return (type != null) ? new MimeType(type) : null;
   }
 
-  public IRI getRef() throws IRISyntaxException {
+  public IRI getRef() {
     String ref = getAttributeValue("ref");
     return (ref != null) ? new IRI(ref) : null;
   }
 
-  public IRI getResolvedHref() throws IRISyntaxException {
+  public IRI getResolvedHref() {
     IRI href = getHref();
     IRI base = getBaseUri();
     return (base == null) ? href : (href != null) ? base.resolve(href) : null; 
   }
 
-  public IRI getResolvedSource() throws IRISyntaxException {
+  public IRI getResolvedSource() {
     IRI href = getSource();
     IRI base = getBaseUri();
     return (base == null) ? href : (href != null) ? base.resolve(href) : null;
   }
 
-  public IRI getSource() throws IRISyntaxException {
+  public IRI getSource() {
     String source = getAttributeValue("source");
     return (source != null) ? new IRI(source) : null;
   }
@@ -73,7 +72,7 @@
     setAttributeValue("href", ref.toString());
   }
 
-  public void setHref(String ref) throws IRISyntaxException {
+  public void setHref(String ref) {
     setAttributeValue("href", ref);
   }
 
@@ -89,7 +88,7 @@
     setAttributeValue("ref", ref.toString());
   }
 
-  public void setRef(String ref) throws IRISyntaxException {
+  public void setRef(String ref) {
     setAttributeValue("ref", ref);
   }
 
@@ -97,7 +96,7 @@
     setAttributeValue("source", source.toString());
   }
 
-  public void setSource(String source) throws IRISyntaxException {
+  public void setSource(String source) {
     setAttributeValue("source", source);
   }
 

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/thread/ThreadHelper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/thread/ThreadHelper.java?view=diff&rev=541117&r1=541116&r2=541117
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/thread/ThreadHelper.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/thread/ThreadHelper.java Wed May 23 16:22:54 2007
@@ -30,7 +30,6 @@
 import org.apache.abdera.model.Link;
 import org.apache.abdera.model.Source;
 import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
 
 public final class ThreadHelper {
 
@@ -141,7 +140,7 @@
     return irt;
   }
 
-  public static InReplyTo addInReplyTo(Entry entry, String ref) throws IRISyntaxException {
+  public static InReplyTo addInReplyTo(Entry entry, String ref) {
     return addInReplyTo(entry, new IRI(ref));
   }
 
@@ -166,8 +165,7 @@
     String source, 
     String href, 
     String type) 
-      throws IRISyntaxException, 
-             MimeTypeParseException {
+      throws MimeTypeParseException {
     InReplyTo irt = addInReplyTo(entry, ref);
     if (irt != null) {
       if (source != null) irt.setSource(source);



Mime
View raw message