it.geosolutions.geoserver.rest.encoder
Class PropertyXMLEncoder
java.lang.Object
it.geosolutions.geoserver.rest.encoder.PropertyXMLEncoder
- Direct Known Subclasses:
- GSCoverageEncoder, GSFeatureTypeEncoder, GSLayerEncoder, GSWorkspaceEncoder
public class PropertyXMLEncoder
- extends Object
Creates an XML document by mapping properties to XML nodes.
You can set the root element in the constructor.
Any key/value pair will be encoded as value node.
Any key containing one or more slash ("/") will be encoded as nested nodes;
e.g.:
key = "k1/k2/k3", value = "value"
will be encoded as
<k1><k2><k3>value</k3></k2></k1>
- Author:
- ETj (etj at geo-solutions.it)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyXMLEncoder
public PropertyXMLEncoder(String rootName)
setOrRemove
protected void setOrRemove(String key,
String value)
set
protected void set(String key,
String value)
isEmpty
public boolean isEmpty()
encodeXml
public String encodeXml()
Copyright © 2007-2011 GeoSolutions. All Rights Reserved.