Class GSFeatureTypeEncoder
- java.lang.Object
-
- it.geosolutions.geoserver.rest.encoder.utils.XmlElement
-
- it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
-
- it.geosolutions.geoserver.rest.encoder.GSResourceEncoder
-
- it.geosolutions.geoserver.rest.encoder.feature.GSFeatureTypeEncoder
-
public class GSFeatureTypeEncoder extends GSResourceEncoder
Encode a GeoServer resource as FeatureType- Version:
- $Id: $
- Author:
- ETj (etj at geo-solutions.it), Carlo Cancellieri - carlo.cancellieri@geo-solutions.it
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class it.geosolutions.geoserver.rest.encoder.GSResourceEncoder
GSResourceEncoder.ProjectionPolicy
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTRIBUTESConstantATTRIBUTES="attributes"-
Fields inherited from class it.geosolutions.geoserver.rest.encoder.GSResourceEncoder
KEYWORDS, METADATA, METADATALINKS, NAME, NATIVENAME
-
-
Constructor Summary
Constructors Constructor Description GSFeatureTypeEncoder()Constructor for GSFeatureTypeEncoder.GSFeatureTypeEncoder(boolean encodeLists)Constructor for GSFeatureTypeEncoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddAttribute(GSAttributeEncoder attribute)addAttributeprotected voidaddMetadata(java.lang.String key, GSFeatureDimensionInfoEncoder dimensionInfo)Deprecated.UseGSResourceEncoder.addMetadataDimension(String, GSDimensionInfoEncoder)this method will be removed soonprotected voidaddMetadataVirtualTable(GSVirtualTableEncoder virtualtable)Add a VirtualTable (SQL View feature type)booleandelAttribute(java.lang.String keyword)delete a keyword from the listbooleandelMetadataVirtualTable()Deletes the VirtualTable metadatavoidsetAttribute(GSAttributeEncoder attribute)setAttributevoidsetMetadata(java.lang.String key, GSFeatureDimensionInfoEncoder dimensionInfo)Deprecated.UseGSResourceEncoder.setMetadataDimension(String, GSDimensionInfoEncoder)this method will be removed soonvoidsetMetadataVirtualTable(GSVirtualTableEncoder virtualtable)Set a VirtualTable (SQL View feature type)-
Methods inherited from class it.geosolutions.geoserver.rest.encoder.GSResourceEncoder
addAbstract, addDescription, addKeyword, addKeyword, addLatLonBoundingBox, addMetadata, addMetadata, addMetadataDimension, addMetadataDimension, addMetadataLinkInfo, addMetadataLinkInfo, addMetadataString, addName, addNativeBoundingBox, addNativeCRS, addNativeName, addProjectionPolicy, addSRS, addTitle, delKeyword, delKeyword, delMetadata, delMetadataLinkInfo, getName, getNativeName, setAbstract, setAdvertised, setDescription, setEnabled, setLatLonBoundingBox, setMetadata, setMetadataDimension, setMetadataDimension, setMetadataString, setName, setNativeBoundingBox, setNativeCRS, setNativeName, setProjectionPolicy, setSRS, setTitle
-
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
add, get, get, set
-
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.XmlElement
add, addContent, getRoot, isEmpty, remove, set, setRoot, setRoot, toString
-
-
-
-
Field Detail
-
ATTRIBUTES
public static final java.lang.String ATTRIBUTES
ConstantATTRIBUTES="attributes"- See Also:
- Constant Field Values
-
-
Method Detail
-
addMetadata
protected void addMetadata(java.lang.String key, GSFeatureDimensionInfoEncoder dimensionInfo)Deprecated.UseGSResourceEncoder.addMetadataDimension(String, GSDimensionInfoEncoder)this method will be removed soonaddMetadata
- Parameters:
key- aStringobject.dimensionInfo- aGSFeatureDimensionInfoEncoderobject.
-
setMetadata
public void setMetadata(java.lang.String key, GSFeatureDimensionInfoEncoder dimensionInfo)Deprecated.UseGSResourceEncoder.setMetadataDimension(String, GSDimensionInfoEncoder)this method will be removed soonsetMetadata
- Parameters:
key- aStringobject.dimensionInfo- aGSFeatureDimensionInfoEncoderobject.
-
addMetadataVirtualTable
protected void addMetadataVirtualTable(GSVirtualTableEncoder virtualtable)
Add a VirtualTable (SQL View feature type)- Parameters:
virtualtable- aGSVirtualTableEncoderobject.
-
setMetadataVirtualTable
public void setMetadataVirtualTable(GSVirtualTableEncoder virtualtable)
Set a VirtualTable (SQL View feature type)- Parameters:
virtualtable- aGSVirtualTableEncoderobject.
-
delMetadataVirtualTable
public boolean delMetadataVirtualTable()
Deletes the VirtualTable metadata- Returns:
- true if deleted, false otherwise
-
delAttribute
public boolean delAttribute(java.lang.String keyword)
delete a keyword from the list- Parameters:
keyword- aStringobject.- Returns:
- true if something is removed, false otherwise
-
addAttribute
protected void addAttribute(GSAttributeEncoder attribute)
addAttribute
- Parameters:
attribute- the attribute to add
-
setAttribute
public void setAttribute(GSAttributeEncoder attribute)
setAttribute
- Parameters:
attribute- the attribute to set (overriding an attribute with the same name if present)
-
-