clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject svn commit: r1505605 - /clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/sparql/query/impl/SimpleQuery.java
Date Mon, 22 Jul 2013 05:34:37 GMT
Author: hasan
Date: Mon Jul 22 05:34:37 2013
New Revision: 1505605

URL: http://svn.apache.org/r1505605
Log:
fixed code formatting

Modified:
    clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/sparql/query/impl/SimpleQuery.java

Modified: clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/sparql/query/impl/SimpleQuery.java
URL: http://svn.apache.org/viewvc/clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/sparql/query/impl/SimpleQuery.java?rev=1505605&r1=1505604&r2=1505605&view=diff
==============================================================================
--- clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/sparql/query/impl/SimpleQuery.java
(original)
+++ clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/sparql/query/impl/SimpleQuery.java
Mon Jul 22 05:34:37 2013
@@ -29,18 +29,19 @@ import org.apache.clerezza.rdf.core.spar
  * @author hasan
  */
 public abstract class SimpleQuery implements Query {
-	private SimpleDataSet dataSet = null;
-	private GroupGraphPattern queryPattern = null;
+
+    private SimpleDataSet dataSet = null;
+    private GroupGraphPattern queryPattern = null;
     private InlineData inlineData = null;
 
-	@Override
-	public DataSet getDataSet() {
-		return dataSet;
-	}
-
-	@Override
-	public GroupGraphPattern getQueryPattern() {
-		return queryPattern;
+    @Override
+    public DataSet getDataSet() {
+        return dataSet;
+    }
+
+    @Override
+    public GroupGraphPattern getQueryPattern() {
+        return queryPattern;
     }
 
     @Override
@@ -49,27 +50,27 @@ public abstract class SimpleQuery implem
     }
 
     public void addDefaultGraph(UriRef defaultGraph) {
-		if (dataSet == null) {
-			dataSet = new SimpleDataSet();
-		}
-		dataSet.addDefaultGraph(defaultGraph);
-	}
-
-	public void addNamedGraph(UriRef namedGraph) {
-		if (dataSet == null) {
-			dataSet = new SimpleDataSet();
-		}
-		dataSet.addNamedGraph(namedGraph);
-	}
-
-	public void setQueryPattern(GroupGraphPattern queryPattern) {
-		this.queryPattern = queryPattern;
-	}
+        if (dataSet == null) {
+            dataSet = new SimpleDataSet();
+        }
+        dataSet.addDefaultGraph(defaultGraph);
+    }
+
+    public void addNamedGraph(UriRef namedGraph) {
+        if (dataSet == null) {
+            dataSet = new SimpleDataSet();
+        }
+        dataSet.addNamedGraph(namedGraph);
+    }
+
+    public void setQueryPattern(GroupGraphPattern queryPattern) {
+        this.queryPattern = queryPattern;
+    }
 
     public void setInlineData(InlineData inlineData) {
         this.inlineData = inlineData;
     }
 
     @Override
-	public abstract String toString();
+    public abstract String toString();
 }



Mime
View raw message