Revision 11484 trunk/libraries/libGPE-KML/src/org/gvsig/gpe/kml/writer/features/FolderWriter.java

View differences:

FolderWriter.java
49 49
 *
50 50
 * $Id$
51 51
 * $Log$
52
 * Revision 1.2  2007-04-20 08:38:59  jorpiell
52
 * Revision 1.3  2007-05-08 07:53:08  jorpiell
53
 * Add comments to the writers
54
 *
55
 * Revision 1.2  2007/04/20 08:38:59  jorpiell
53 56
 * Tests updating
54 57
 *
55 58
 * Revision 1.1  2007/04/14 16:08:07  jorpiell
......
58 61
 *
59 62
 */
60 63
/**
64
 * This class writes a Folder kml tag. Example:
65
 * <p>
66
 * <pre>
67
 * <code>
68
 * &lt;Folder&gt;
69
 * &lt;Placemark&gt;
70
 * &lt;name&gt;CDATA example&lt;/name&gt;
71
 * &lt;description&gt;Description example&lt;/description&gt;
72
 * &lt;Point&gt;
73
 * &lt;oordinates&gt;102.595626,14.996729&lt;/coordinates&gt;
74
 * &lt;/Point&gt;
75
 * &lt;/Placemark&gt;
76
 * &lt;/Folder&gt;
77
 * </code>
78
 * </pre>
79
 * </p>
61 80
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
81
 * @see http://code.google.com/apis/kml/documentation/kml_tags_21.html#folder
62 82
 */
63 83
public class FolderWriter {
64 84
	
85
	/**
86
	 * Writes a Folder init tag and its attributes
87
	 * @param writer
88
	 * Writer to write the labels
89
	 * @param id
90
	 * Folder id
91
	 * @param name
92
	 * Folder name
93
	 * @param description
94
	 * Folder description
95
	 * @throws IOException
96
	 */
65 97
	public static void start(Writer writer,String id, String name, String description) throws IOException{
66
		AFeatureWriter.start(writer, id, KmlTags.FOLDER);
98
		FeatureAttributesWriter.start(writer, id, KmlTags.FOLDER);
67 99
		if (name != null){
68 100
			NameWriter.write(writer, name);
69 101
		}
......
72 104
		}
73 105
	}
74 106
	
107
	/**
108
	 * It writes the end Folder tag
109
	 * @param writer
110
	 * Writer to write the labels
111
	 * @throws IOException
112
	 */
75 113
	public static void end(Writer writer) throws IOException{
76
		AFeatureWriter.end(writer, KmlTags.FOLDER);
114
		FeatureAttributesWriter.end(writer, KmlTags.FOLDER);
77 115
	}
78 116
}

Also available in: Unified diff