Strabon

changeset 1434:04dad6cae27c

changed scope to protected for the other members/methods as well
author Babis Nikolaou <charnik@di.uoa.gr>
date Tue Oct 14 12:44:19 2014 +0300 (2014-10-14)
parents dabf45d0f369
children f1f992d1cfd4 1f370b2e7e9c
files resultio-spatial/sparqlkml/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java
line diff
     1.1 --- a/resultio-spatial/sparqlkml/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java	Tue Oct 14 12:03:27 2014 +0300
     1.2 +++ b/resultio-spatial/sparqlkml/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java	Tue Oct 14 12:44:19 2014 +0300
     1.3 @@ -86,55 +86,55 @@
     1.4  	/**
     1.5  	 * The underlying XML formatter.
     1.6  	 */
     1.7 -	private stSPARQLXMLWriter xmlWriter;
     1.8 +	protected stSPARQLXMLWriter xmlWriter;
     1.9  
    1.10  	/**
    1.11  	 * The ordered list of binding names of the result.
    1.12  	 */
    1.13 -	private List<String> bindingNames;
    1.14 +	protected List<String> bindingNames;
    1.15  	
    1.16  	/**
    1.17  	 * The number of results seen.
    1.18  	 */
    1.19 -	private int nresults;
    1.20 +	protected int nresults;
    1.21  
    1.22  	/**
    1.23  	 * True if results have at least one geometry.
    1.24  	 */
    1.25 -	private Boolean hasGeometry;
    1.26 +	protected Boolean hasGeometry;
    1.27  
    1.28  	/**
    1.29  	 * True if results have at least one temporal element.
    1.30  	 * This element can be either an instant (xsd:dateTime value) or a period (strdf:period)
    1.31  	 */
    1.32 -	private Boolean hasTimestamp;
    1.33 +	protected Boolean hasTimestamp;
    1.34      
    1.35 -	private Boolean hasTimespan;
    1.36 +	protected Boolean hasTimespan;
    1.37  	/**
    1.38  	 * The JTS wrapper
    1.39  	 */
    1.40 -	private JTSWrapper jts;
    1.41 +	protected JTSWrapper jts;
    1.42  
    1.43  	/**
    1.44  	 * Stream for manipulating geometries
    1.45  	 */
    1.46 -	private ByteArrayOutputStream baos;
    1.47 +	protected ByteArrayOutputStream baos;
    1.48  
    1.49  	/**
    1.50  	 * Description string holding the projected variables of the SPARQL query
    1.51  	 */
    1.52 -	private StringBuilder descHeader;
    1.53 +	protected StringBuilder descHeader;
    1.54  
    1.55  	/**
    1.56  	 * Description string holding the values for the projected variables of the
    1.57  	 * SPARQL query
    1.58  	 */
    1.59 -	private StringBuilder descData;
    1.60 +	protected StringBuilder descData;
    1.61  
    1.62  	/**
    1.63  	 * Indentation used in tags that are constructed manually
    1.64  	 */
    1.65 -	private int depth;
    1.66 +	protected int depth;
    1.67  
    1.68  	/**
    1.69  	 * Creates an stSPARQLResultsKMLWriter that encodes the SPARQL results in
    1.70 @@ -308,7 +308,7 @@
    1.71  		}
    1.72  	}
    1.73  
    1.74 -	private String getKML(Value value) {
    1.75 +	protected String getKML(Value value) {
    1.76  		String kml = "";
    1.77  		
    1.78  		QName geometryType = null;
    1.79 @@ -412,7 +412,7 @@
    1.80  	 * 
    1.81  	 * @param binding
    1.82  	 */
    1.83 -	private void writeDesc(Binding binding) {
    1.84 +	protected void writeDesc(Binding binding) {
    1.85  		descData.append(NEWLINE);
    1.86  		indent(descData, depth + 1);
    1.87  		descData.append(TABLE_ROW_BEGIN);
    1.88 @@ -428,7 +428,7 @@
    1.89  		descData.append(TABLE_ROW_END);
    1.90  	}
    1.91  
    1.92 -	private String getBindingValue(Binding binding) {
    1.93 +	protected String getBindingValue(Binding binding) {
    1.94  		String val = binding.getValue().stringValue();
    1.95  		if (binding.getValue() instanceof BNode) {
    1.96  			val = "_:" + val;
    1.97 @@ -449,7 +449,7 @@
    1.98  	 * @param sb
    1.99  	 * @param depth
   1.100  	 */
   1.101 -	private void indent(StringBuilder sb, int depth) {
   1.102 +	protected void indent(StringBuilder sb, int depth) {
   1.103  		for (int i = 0; i < depth; i++) {
   1.104  			sb.append(xmlWriter.getIndentString());
   1.105  		}