Author: suat
Date: Mon Sep  3 08:31:48 2012
New Revision: 1380167

URL: http://svn.apache.org/viewvc?rev=1380167&view=rev
Log:
code formatting

Modified:
    
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/EndpointTypeEnum.java
    
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/IndexManagementException.java
    
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/SemanticIndexManager.java
    
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/ChangeSet.java
    
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/Store.java
    
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/StoreException.java

Modified: 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/EndpointTypeEnum.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/EndpointTypeEnum.java?rev=1380167&r1=1380166&r2=1380167&view=diff
==============================================================================
--- 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/EndpointTypeEnum.java
 (original)
+++ 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/EndpointTypeEnum.java
 Mon Sep  3 08:31:48 2012
@@ -17,12 +17,12 @@
 package org.apache.stanbol.commons.semanticindex.index;
 
 /**
- * Well known RESTful endpoint types offered by {@link SemanticIndex}.
- * Use {@link EndpointTypeEnum#getUri()} or {@link EndpointTypeEnum#toString()}
- * to parse this endpoint types to the {@link SemanticIndexManager} interface.
+ * Well known RESTful endpoint types offered by {@link SemanticIndex}. Use 
{@link EndpointTypeEnum#getUri()}
+ * or {@link EndpointTypeEnum#toString()} to parse this endpoint types to the 
{@link SemanticIndexManager}
+ * interface.
  */
 public enum EndpointTypeEnum {
-   /**
+    /**
      * RESTful endpoint of the Solr
      */
     SOLR("http://lucene.apache.org/solr";),
@@ -43,14 +43,12 @@ public enum EndpointTypeEnum {
      */
     SPARQL("http://www.w3.org/TR/rdf-sparql-query/";);
 
-
     private final String uri;
-    
-    
-    EndpointTypeEnum(String uri){
-       this.uri = uri;
+
+    EndpointTypeEnum(String uri) {
+        this.uri = uri;
     }
-    
+
     public String getUri() {
         return uri;
     }
@@ -60,5 +58,4 @@ public enum EndpointTypeEnum {
         return uri;
     }
 
-
 }

Modified: 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/IndexManagementException.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/IndexManagementException.java?rev=1380167&r1=1380166&r2=1380167&view=diff
==============================================================================
--- 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/IndexManagementException.java
 (original)
+++ 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/IndexManagementException.java
 Mon Sep  3 08:31:48 2012
@@ -16,7 +16,6 @@
  */
 package org.apache.stanbol.commons.semanticindex.index;
 
-
 /**
  * Exception to be thrown in unexpected situations which occur during index 
management issues such as index
  * creation, retrieval, deletion, etc.

Modified: 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/SemanticIndexManager.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/SemanticIndexManager.java?rev=1380167&r1=1380166&r2=1380167&view=diff
==============================================================================
--- 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/SemanticIndexManager.java
 (original)
+++ 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/SemanticIndexManager.java
 Mon Sep  3 08:31:48 2012
@@ -32,10 +32,9 @@ public interface SemanticIndexManager {
      * 
      * @param name
      *            Name of the {@link SemanticIndex} to be retrieved
-     * @return the {@link SemanticIndex} instance with the given name if there 
is any, 
-     *         otherwise {@code null}. In case several {@link SemanticIndex}s 
would confirm
-     *         to the parsed requirements the one with the higest {@link 
Constants#SERVICE_RANKING ranking}
-     *         is returned.
+     * @return the {@link SemanticIndex} instance with the given name if there 
is any, otherwise {@code null}.
+     *         In case several {@link SemanticIndex}s would confirm to the 
parsed requirements the one with
+     *         the higest {@link Constants#SERVICE_RANKING ranking} is 
returned.
      * @throws IndexManagementException
      */
     SemanticIndex<?> getIndex(String name) throws IndexManagementException;
@@ -45,9 +44,8 @@ public interface SemanticIndexManager {
      * 
      * @param name
      *            Name of the {@link SemanticIndex}es to be retrieved
-     * @return the {@link SemanticIndex}es with the given name if there is 
any, 
-     *         otherwise an empty list.Returned SemanticIndexes are sorted by
-     *         their {@link Constants#SERVICE_RANKING rankings}.
+     * @return the {@link SemanticIndex}es with the given name if there is 
any, otherwise an empty
+     *         list.Returned SemanticIndexes are sorted by their {@link 
Constants#SERVICE_RANKING rankings}.
      * @throws IndexManagementException
      */
     List<SemanticIndex<?>> getIndexes(String name) throws 
IndexManagementException;
@@ -57,14 +55,12 @@ public interface SemanticIndexManager {
      * {@link Constants#SERVICE_RANKING} value.
      * 
      * @param endpointType
-     *            The name of the endpoint type that need to be supported by 
the
-     *            returned SemanticIndexes. See the {@link EndpointTypeEnum} 
for
-     *            well known RESTfull endpoint types. to search for Java 
endpoints
-     *            use {@link Class#getName()}.
+     *            The name of the endpoint type that need to be supported by 
the returned SemanticIndexes. See
+     *            the {@link EndpointTypeEnum} for well known RESTfull 
endpoint types. to search for Java
+     *            endpoints use {@link Class#getName()}.
      * @return the {@link SemanticIndex} instance with the given {@link 
EndpointTypeEnum} if there is any,
-     *         otherwise {@code null}. In case several {@link SemanticIndex}s 
would confirm
-     *         to the parsed requirements the one with the higest {@link 
Constants#SERVICE_RANKING ranking}
-     *         is returned.
+     *         otherwise {@code null}. In case several {@link SemanticIndex}s 
would confirm to the parsed
+     *         requirements the one with the higest {@link 
Constants#SERVICE_RANKING ranking} is returned.
      * @throws IndexManagementException
      */
     SemanticIndex<?> getIndexByEndpointType(String endpointType) throws 
IndexManagementException;
@@ -73,13 +69,12 @@ public interface SemanticIndexManager {
      * Retrieves the {@link SemanticIndex}es with the given {@link 
EndpointTypeEnum}.
      * 
      * @param endpointType
-     *            The name of the endpoint type that need to be supported by 
the
-     *            returned SemanticIndexes. See the {@link EndpointTypeEnum} 
for
-     *            well known RESTfull endpoint types. to search for Java 
endpoints
-     *            use {@link Class#getName()}.
+     *            The name of the endpoint type that need to be supported by 
the returned SemanticIndexes. See
+     *            the {@link EndpointTypeEnum} for well known RESTfull 
endpoint types. to search for Java
+     *            endpoints use {@link Class#getName()}.
      * @return the {@link SemanticIndex}es instances with the given {@link 
EndpointTypeEnum} if there is any,
-     *         otherwise an empty list. Returned SemanticIndexes are sorted by
-     *         their {@link Constants#SERVICE_RANKING rankings}.
+     *         otherwise an empty list. Returned SemanticIndexes are sorted by 
their
+     *         {@link Constants#SERVICE_RANKING rankings}.
      * @throws IndexManagementException
      */
     List<SemanticIndex<?>> getIndexesByEndpointType(String endpointType) 
throws IndexManagementException;
@@ -89,17 +84,14 @@ public interface SemanticIndexManager {
      * {@link Constants#SERVICE_RANKING} value.
      * 
      * @param name
-     *            Name of the {@link SemanticIndex}es to be retrieved.
-     *            <code>null</code> is used as wildcard
+     *            Name of the {@link SemanticIndex}es to be retrieved. 
<code>null</code> is used as wildcard
      * @param endpointType
-     *            The name of the endpoint type that need to be supported by 
the
-     *            returned SemanticIndexes. See the {@link EndpointTypeEnum} 
for
-     *            well known RESTfull endpoint types. to search for Java 
endpoints
-     *            use {@link Class#getName()}. <code>null</code> is used as 
wildcard
-     * @return the {@link SemanticIndex} instance with the given name, {@link 
EndpointTypeEnum} if there is any,
-     *         otherwise {@code null}. In case several {@link SemanticIndex}s 
would confirm
-     *         to the parsed requirements the one with the higest {@link 
Constants#SERVICE_RANKING ranking}
-     *         is returned.
+     *            The name of the endpoint type that need to be supported by 
the returned SemanticIndexes. See
+     *            the {@link EndpointTypeEnum} for well known RESTfull 
endpoint types. to search for Java
+     *            endpoints use {@link Class#getName()}. <code>null</code> is 
used as wildcard
+     * @return the {@link SemanticIndex} instance with the given name, {@link 
EndpointTypeEnum} if there is
+     *         any, otherwise {@code null}. In case several {@link 
SemanticIndex}s would confirm to the parsed
+     *         requirements the one with the higest {@link 
Constants#SERVICE_RANKING ranking} is returned.
      * @throws IndexManagementException
      */
     SemanticIndex<?> getIndex(String name, String endpointType) throws 
IndexManagementException;
@@ -108,16 +100,14 @@ public interface SemanticIndexManager {
      * Retrieves the {@link SemanticIndex}es instance with the given name and 
{@link EndpointTypeEnum}.
      * 
      * @param name
-     *            Name of the {@link SemanticIndex}es to be retrieved.
-     *            <code>null</code> is used as wildcard
+     *            Name of the {@link SemanticIndex}es to be retrieved. 
<code>null</code> is used as wildcard
      * @param endpointType
-     *            The name of the endpoint type that need to be supported by 
the
-     *            returned SemanticIndexes. See the {@link EndpointTypeEnum} 
for
-     *            well known endpoint types. <code>null</code> is used as
+     *            The name of the endpoint type that need to be supported by 
the returned SemanticIndexes. See
+     *            the {@link EndpointTypeEnum} for well known endpoint types. 
<code>null</code> is used as
      *            wildcard
      * @return the {@link SemanticIndex} instance with the given name and 
{@link EndpointTypeEnum} if there is
-     *         any, otherwise an empty list. Returned SemanticIndexes are 
sorted by
-     *         their {@link Constants#SERVICE_RANKING rankings}.
+     *         any, otherwise an empty list. Returned SemanticIndexes are 
sorted by their
+     *         {@link Constants#SERVICE_RANKING rankings}.
      * @throws IndexManagementException
      */
     List<SemanticIndex<?>> getIndexes(String name, String endpointType) throws 
IndexManagementException;

Modified: 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/ChangeSet.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/ChangeSet.java?rev=1380167&r1=1380166&r2=1380167&view=diff
==============================================================================
--- 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/ChangeSet.java
 (original)
+++ 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/ChangeSet.java
 Mon Sep  3 08:31:48 2012
@@ -17,13 +17,11 @@
 package org.apache.stanbol.commons.semanticindex.store;
 
 import java.util.Iterator;
-import java.util.Set;
 
 /**
  * This interface represents a set of {@link #size()} changes starting {@link 
#fromRevision()}
- * {@link #toRevision()} affecting items with the URIs returned by {@link 
#changed()}.
- * Instead of getting all changes as a whole, they can be retrieved 
iteratively through the {@link Store}
- * instance.
+ * {@link #toRevision()} affecting items with the URIs returned by {@link 
#changed()}. Instead of getting all
+ * changes as a whole, they can be retrieved iteratively through the {@link 
Store} instance.
  * <p>
  * The intended usage of this class is <code><pre>
  *     Store&lt;ContentItem&gt; store; //the store
@@ -45,7 +43,7 @@ import java.util.Set;
  *     index.persist(cs.fromRevision());
  * </pre></code>
  */
-public interface ChangeSet<Item> extends Iterable<String>{
+public interface ChangeSet<Item> extends Iterable<String> {
     /**
      * The lowest revision number included in this ChangeSet
      * 
@@ -59,24 +57,24 @@ public interface ChangeSet<Item> extends
      * @return the highest revision number of this set
      */
     long toRevision();
-    
+
     /**
-     * The epoch of this ChangeSet. Revisions are only valid within a given
-     * Epoch. If the {@link IndexingSource} increases the epoch indexing needs 
to start
-     * from scratch (see documentation of {@link IndexingSource} for details.
+     * The epoch of this ChangeSet. Revisions are only valid within a given 
Epoch. If the
+     * {@link IndexingSource} increases the epoch indexing needs to start from 
scratch (see documentation of
+     * {@link IndexingSource} for details.
      */
     long getEpoch();
-    
+
     /**
      * The read only Iterator over the changed items of this ChangeSet
      * 
      * @return the URIs of the changed contentItems included in this ChangeSet
      */
     public Iterator<String> iterator();
-    
+
     /**
-     * The reference to the {@link Store} of this {@link ChangeSet}. 
-     * This {@link IndexingSource} can be used to iterate on the changes.
+     * The reference to the {@link Store} of this {@link ChangeSet}. This 
{@link IndexingSource} can be used
+     * to iterate on the changes.
      * 
      * @return the IndexingSource of this {@link ChangeSet}
      */

Modified: 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/Store.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/Store.java?rev=1380167&r1=1380166&r2=1380167&view=diff
==============================================================================
--- 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/Store.java
 (original)
+++ 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/Store.java
 Mon Sep  3 08:31:48 2012
@@ -17,54 +17,66 @@
 package org.apache.stanbol.commons.semanticindex.store;
 
 /**
- * Interface to store and retrieve Items instances persistently.
- * This extends the {@link IndexingSource} interface to support
- * full CRUD operations.
+ * Interface to store and retrieve Items instances persistently. This extends 
the {@link IndexingSource}
+ * interface to support full CRUD operations.
  */
-public interface Store<Item> extends IndexingSource<Item>{
+public interface Store<Item> extends IndexingSource<Item> {
 
-       
-       /**
-        * Removes an item with the given uri from the  store
-        * @param uri
-        * @return
-        * @throws StoreException
-        */
-       Item remove(String uri) throws StoreException;
+    /**
+     * Removes an item with the given uri from the store
+     * 
+     * @param uri
+     * @return
+     * @throws StoreException
+     */
+    Item remove(String uri) throws StoreException;
 
     /**
-     * Stores supplied item and return its uri, which is assigned by the store 
if not defined
-     * yet.<p>
+     * Stores supplied item and return its uri, which is assigned by the store 
if not defined yet.
+     * <p>
      * 
      * If an Item already exists it is replaced with the parsed version.
-     * @param item the item to store
-     * @param the URI of the stored item
-     * @throws StoreException on any error while storing the item
+     * 
+     * @param item
+     *            the item to store
+     * @param the
+     *            URI of the stored item
+     * @throws StoreException
+     *             on any error while storing the item
      */
     String put(Item item) throws StoreException;
 
     /**
-     * Stores all supplied items and returns it uris, which is assigned by the 
store if not defined
-     * yet.<p>
+     * Stores all supplied items and returns it uris, which is assigned by the 
store if not defined yet.
+     * <p>
      * If an Item already exists it is replaced with the parsed version.
+     * 
      * @param item
      * @return the ids of the stored Items
-     * @throws StoreException on any error while storing the item
+     * @throws StoreException
+     *             on any error while storing the item
      */
-    Iterable<String> put(Iterable<Item> items) throws StoreException ;
+    Iterable<String> put(Iterable<Item> items) throws StoreException;
+
     /**
-     * Removes all items with the parsed uris. <p>
-     * <i>NOTE:</i> This method does NOT return the removed Items to
-     * avoid loading a lot of data when deleting a big about of
-     * Items. Users that do need the data for removed Items should use
-     * {@link #remove(String)} instead.
-     * @param uris the uris of the items to delete
-     * @throws StoreException on any error while removing the items
+     * Removes all items with the parsed uris.
+     * <p>
+     * <i>NOTE:</i> This method does NOT return the removed Items to avoid 
loading a lot of data when deleting
+     * a big about of Items. Users that do need the data for removed Items 
should use {@link #remove(String)}
+     * instead.
+     * 
+     * @param uris
+     *            the uris of the items to delete
+     * @throws StoreException
+     *             on any error while removing the items
      */
-    void remove(Iterable<String> uris) throws StoreException ;
+    void remove(Iterable<String> uris) throws StoreException;
+
     /**
      * Clears the store by removing all items
-     * @throws StoreException on any error while removing all items
+     * 
+     * @throws StoreException
+     *             on any error while removing all items
      */
-    void removeAll() throws StoreException ;
+    void removeAll() throws StoreException;
 }

Modified: 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/StoreException.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/StoreException.java?rev=1380167&r1=1380166&r2=1380167&view=diff
==============================================================================
--- 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/StoreException.java
 (original)
+++ 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/StoreException.java
 Mon Sep  3 08:31:48 2012
@@ -16,7 +16,6 @@
  */
 package org.apache.stanbol.commons.semanticindex.store;
 
-
 /**
  * @author anil.sinaci
  * 


Reply via email to