diff --git a/SimpleKML/src/com/ekito/simpleKML/model/Polygon.java b/SimpleKML/src/com/ekito/simpleKML/model/Polygon.java index f433bef..6385b03 100644 --- a/SimpleKML/src/com/ekito/simpleKML/model/Polygon.java +++ b/SimpleKML/src/com/ekito/simpleKML/model/Polygon.java @@ -15,7 +15,10 @@ */ package com.ekito.simpleKML.model; +import java.util.List; + import org.simpleframework.xml.Element; +import org.simpleframework.xml.ElementList; /** * A Polygon is defined by an outer boundary and 0 or more inner boundaries. The boundaries, in turn, are defined by LinearRings. When a Polygon is extruded, its boundaries are connected to the ground to form additional polygons, which gives the appearance of a building or a box. Extruded Polygons use {@link PolyStyle} for their color, color mode, and fill. @@ -41,8 +44,8 @@ public class Polygon extends Geometry { private Boundary outerBoundaryIs; /** The inner boundary is. */ - @Element(required=false) - private Boundary innerBoundaryIs; + @ElementList(entry="innerBoundaryIs", inline=true, type=Boundary.class, required=false) + private List innerBoundaryIsList; /** * Gets the extrude. @@ -121,8 +124,8 @@ public void setOuterBoundaryIs(Boundary outerBoundaryIs) { * * @return the inner boundary is */ - public Boundary getInnerBoundaryIs() { - return innerBoundaryIs; + public List getInnerBoundaryIsList() { + return innerBoundaryIsList; } /** @@ -130,7 +133,7 @@ public Boundary getInnerBoundaryIs() { * * @param innerBoundaryIs the new inner boundary is */ - public void setInnerBoundaryIs(Boundary innerBoundaryIs) { - this.innerBoundaryIs = innerBoundaryIs; + public void setInnerBoundaryIs(List innerBoundaryIsList) { + this.innerBoundaryIsList = innerBoundaryIsList; } } diff --git a/SimpleKML/src/com/ekito/simpleKML/model/StyleMap.java b/SimpleKML/src/com/ekito/simpleKML/model/StyleMap.java index 11ce0bc..981aac9 100644 --- a/SimpleKML/src/com/ekito/simpleKML/model/StyleMap.java +++ b/SimpleKML/src/com/ekito/simpleKML/model/StyleMap.java @@ -17,7 +17,6 @@ import java.util.List; -import org.simpleframework.xml.Element; import org.simpleframework.xml.ElementList; /** @@ -26,7 +25,7 @@ public class StyleMap extends StyleSelector { /** The pair list. */ - @ElementList(entry="Pair", inline=false, type=Pair.class, required=false) + @ElementList(entry="Pair", inline=true, type=Pair.class, required=false) private List pairList; /**