forked from geoserver/geoserver
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8deaee4
commit 32c7542
Showing
6 changed files
with
324 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
src/extension/mapml/src/main/java/org/geoserver/mapml/xml/Interpolated.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package org.geoserver.mapml.xml; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlRootElement; | ||
import javax.xml.bind.annotation.XmlType; | ||
import java.util.List; | ||
|
||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType( | ||
name = "", | ||
propOrder = {"head", "mapInterpolatedProperties", "mapInterpolatedGeometry"}) | ||
@XmlRootElement(name = "mapml-interpolated", namespace = "http://www.w3.org/1999/xhtml") | ||
public class Interpolated { | ||
@XmlElement(required = false, name = "map-head", namespace = "http://www.w3.org/1999/xhtml") | ||
protected HeadContent head; | ||
|
||
@XmlElement( | ||
name = "map-interpolated-property", | ||
required = false, | ||
namespace = "http://www.w3.org/1999/xhtml") | ||
protected List<InterpolatedProperty> mapInterpolatedProperties; | ||
|
||
@XmlElement( | ||
name = "map-interpolated-geometry", | ||
required = false, | ||
namespace = "http://www.w3.org/1999/xhtml") | ||
protected InterpolatedGeometry mapInterpolatedGeometry; | ||
|
||
/** | ||
* Gets the value of the head property. | ||
* | ||
* @return possible object is {@link HeadContent } | ||
*/ | ||
public HeadContent getHead() { | ||
return head; | ||
} | ||
|
||
/** | ||
* Sets the value of the head property. | ||
* | ||
* @param value allowed object is {@link HeadContent } | ||
*/ | ||
public void setHead(HeadContent value) { | ||
this.head = value; | ||
} | ||
|
||
public List<InterpolatedProperty> getMapInterpolatedProperties() { | ||
return mapInterpolatedProperties; | ||
} | ||
|
||
public void setMapInterpolatedProperties(List<InterpolatedProperty> mapInterpolatedProperties) { | ||
this.mapInterpolatedProperties = mapInterpolatedProperties; | ||
} | ||
|
||
public InterpolatedGeometry getMapInterpolatedGeometry() { | ||
return mapInterpolatedGeometry; | ||
} | ||
|
||
public void setMapInterpolatedGeometry(InterpolatedGeometry mapInterpolatedGeometry) { | ||
this.mapInterpolatedGeometry = mapInterpolatedGeometry; | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
src/extension/mapml/src/main/java/org/geoserver/mapml/xml/InterpolatedGeometry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package org.geoserver.mapml.xml; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlAttribute; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlElements; | ||
import javax.xml.bind.annotation.XmlType; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType( | ||
name = "", | ||
propOrder = {"components", "coordinates"}) | ||
public class InterpolatedGeometry { | ||
@XmlAttribute protected String type; | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String value) { | ||
this.type = value; | ||
} | ||
|
||
@XmlElements({ | ||
@XmlElement(name = "point", type = Point.class, namespace = "http://www.w3.org/1999/xhtml"), | ||
@XmlElement( | ||
name = "map-linestring", | ||
type = LineString.class, | ||
namespace = "http://www.w3.org/1999/xhtml"), | ||
@XmlElement( | ||
name = "map-polygon", | ||
type = Polygon.class, | ||
namespace = "http://www.w3.org/1999/xhtml"), | ||
@XmlElement( | ||
name = "map-multipoint", | ||
type = MultiPoint.class, | ||
namespace = "http://www.w3.org/1999/xhtml"), | ||
@XmlElement( | ||
name = "map-multilinestring", | ||
type = MultiLineString.class, | ||
namespace = "http://www.w3.org/1999/xhtml"), | ||
@XmlElement( | ||
name = "map-multipolygon", | ||
type = MultiPolygon.class, | ||
namespace = "http://www.w3.org/1999/xhtml") | ||
}) | ||
protected List<Object> components; | ||
|
||
public List<Object> getComponents() { | ||
if (components == null) { | ||
components = new ArrayList<>(); | ||
} | ||
return components; | ||
} | ||
|
||
@XmlElement(name = "map-coordinates", namespace = "http://www.w3.org/1999/xhtml") | ||
protected List<String> coordinates; | ||
|
||
public List<String> getCoordinates() { | ||
if (coordinates == null) { | ||
coordinates = new ArrayList<>(); | ||
} | ||
return this.coordinates; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/extension/mapml/src/main/java/org/geoserver/mapml/xml/InterpolatedProperty.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.geoserver.mapml.xml; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlAttribute; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "map-interpolated-property", namespace = "http://www.w3.org/1999/xhtml") | ||
public class InterpolatedProperty { | ||
@XmlAttribute protected String name; | ||
@XmlAttribute protected String value; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String value) { | ||
this.name = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
public void setValue(String value) { | ||
this.value = value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters