# HG changeset patch # User Babis Nikolaou # Date 1413279859 -10800 # Node ID 04dad6cae27c2ae9c9377dabb3cc24af1db3ee0e # Parent dabf45d0f3693e1eaf45b172de17691906da6954 changed scope to protected for the other members/methods as well diff -r dabf45d0f369 -r 04dad6cae27c resultio-spatial/sparqlkml/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java --- a/resultio-spatial/sparqlkml/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java Tue Oct 14 12:03:27 2014 +0300 +++ b/resultio-spatial/sparqlkml/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java Tue Oct 14 12:44:19 2014 +0300 @@ -86,55 +86,55 @@ /** * The underlying XML formatter. */ - private stSPARQLXMLWriter xmlWriter; + protected stSPARQLXMLWriter xmlWriter; /** * The ordered list of binding names of the result. */ - private List bindingNames; + protected List bindingNames; /** * The number of results seen. */ - private int nresults; + protected int nresults; /** * True if results have at least one geometry. */ - private Boolean hasGeometry; + protected Boolean hasGeometry; /** * True if results have at least one temporal element. * This element can be either an instant (xsd:dateTime value) or a period (strdf:period) */ - private Boolean hasTimestamp; + protected Boolean hasTimestamp; - private Boolean hasTimespan; + protected Boolean hasTimespan; /** * The JTS wrapper */ - private JTSWrapper jts; + protected JTSWrapper jts; /** * Stream for manipulating geometries */ - private ByteArrayOutputStream baos; + protected ByteArrayOutputStream baos; /** * Description string holding the projected variables of the SPARQL query */ - private StringBuilder descHeader; + protected StringBuilder descHeader; /** * Description string holding the values for the projected variables of the * SPARQL query */ - private StringBuilder descData; + protected StringBuilder descData; /** * Indentation used in tags that are constructed manually */ - private int depth; + protected int depth; /** * Creates an stSPARQLResultsKMLWriter that encodes the SPARQL results in @@ -308,7 +308,7 @@ } } - private String getKML(Value value) { + protected String getKML(Value value) { String kml = ""; QName geometryType = null; @@ -412,7 +412,7 @@ * * @param binding */ - private void writeDesc(Binding binding) { + protected void writeDesc(Binding binding) { descData.append(NEWLINE); indent(descData, depth + 1); descData.append(TABLE_ROW_BEGIN); @@ -428,7 +428,7 @@ descData.append(TABLE_ROW_END); } - private String getBindingValue(Binding binding) { + protected String getBindingValue(Binding binding) { String val = binding.getValue().stringValue(); if (binding.getValue() instanceof BNode) { val = "_:" + val; @@ -449,7 +449,7 @@ * @param sb * @param depth */ - private void indent(StringBuilder sb, int depth) { + protected void indent(StringBuilder sb, int depth) { for (int i = 0; i < depth; i++) { sb.append(xmlWriter.getIndentString()); }