| |
|
| java.lang.Object org.geoserver.data.test.MockData
MockData | public class MockData (Code) | | Class used to build a mock GeoServer data directory.
Data is based off the wms and wfs "cite" datasets.
author: Justin Deoliveira, The Open Planning Project |
AGGREGATEGEOFEATURE | public static QName AGGREGATEGEOFEATURE(Code) | | |
BASIC_POLYGONS | public static QName BASIC_POLYGONS(Code) | | featuretype name for WMS 1.1.1 CITE BasicPolygons features
|
BRIDGES | public static QName BRIDGES(Code) | | featuretype name for WMS 1.1.1 CITE Bridges features
|
BUILDINGS | public static QName BUILDINGS(Code) | | featuretype name for WMS 1.1.1 CITE Buildings features
|
CDF_PREFIX | public static String CDF_PREFIX(Code) | | WFS 1.0 cdf namespace + uri
|
CGF_PREFIX | public static String CGF_PREFIX(Code) | | cgf namespace + uri
|
CITE_PREFIX | public static String CITE_PREFIX(Code) | | WMS 1.1.1 cite namespace + uri
|
DELETES | public static QName DELETES(Code) | | featuretype name for WFS 1.0 CITE Deletes features
|
DIVIDED_ROUTES | public static QName DIVIDED_ROUTES(Code) | | featuretype name for WMS 1.1.1 CITE Divided Routes features
|
FIFTEEN | public static QName FIFTEEN(Code) | | featuretype name for WFS 1.0 CITE Fifteen features
|
FORESTS | public static QName FORESTS(Code) | | featuretype name for WMS 1.1.1 CITE Forests features
|
INSERTS | public static QName INSERTS(Code) | | featuretype name for WFS 1.0 CITE Inserts features
|
LAKES | public static QName LAKES(Code) | | featuretype name for WMS 1.1.1 CITE Lakes features
|
LINES | public static QName LINES(Code) | | featuretype name for WFS 1.0 CITE Lines features
|
LOCKS | public static QName LOCKS(Code) | | featuretype name for WFS 1.0 CITE Inserts features
|
MAP_NEATLINE | public static QName MAP_NEATLINE(Code) | | featuretype name for WMS 1.1.1 CITE Map Neatliine features
|
MLINES | public static QName MLINES(Code) | | featuretype name for WFS 1.0 CITE MLines features
|
MPOINTS | public static QName MPOINTS(Code) | | featuretype name for WFS 1.0 CITE MPoints features
|
MPOLYGONS | public static QName MPOLYGONS(Code) | | featuretype name for WFS 1.0 CITE MPolygons features
|
NAMED_PLACES | public static QName NAMED_PLACES(Code) | | featuretype name for WMS 1.1.1 CITE Named Places features
|
NULLS | public static QName NULLS(Code) | | featuretype name for WFS 1.0 CITE Nulls features
|
OTHER | public static QName OTHER(Code) | | featuretype name for WFS 1.0 CITE Other features
|
POINTS | public static QName POINTS(Code) | | featuretype name for WFS 1.0 CITE Points features
|
POLYGONS | public static QName POLYGONS(Code) | | featuretype name for WFS 1.0 CITE Polygons features
|
PONDS | public static QName PONDS(Code) | | featuretype name for WMS 1.1.1 CITE Ponds features
|
PRIMITIVEGEOFEATURE | public static QName PRIMITIVEGEOFEATURE(Code) | | |
ROAD_SEGMENTS | public static QName ROAD_SEGMENTS(Code) | | featuretype name for WMS 1.1.1 CITE Road Segments features
|
SEVEN | public static QName SEVEN(Code) | | featuretype name for WFS 1.0 CITE Nulls features
|
SF_PREFIX | public static String SF_PREFIX(Code) | | sf namespace + uri
|
STREAMS | public static QName STREAMS(Code) | | featuretype name for WMS 1.1.1 CITE Streams features
|
TYPENAMES | public static QName[] TYPENAMES(Code) | | List of all cite types names
|
UPDATES | public static QName UPDATES(Code) | | featuretype name for WFS 1.0 CITE Updates features
|
WFS10_TYPENAMES | public static QName[] WFS10_TYPENAMES(Code) | | List of wfs 1.0 type names.
|
WFS11_TYPENAMES | public static QName[] WFS11_TYPENAMES(Code) | | List of wfs 1.1 type names.
|
WMS_TYPENAMES | public static QName[] WMS_TYPENAMES(Code) | | List of wms type names.
|
data | File data(Code) | | the base of the data directory
|
featureTypes | File featureTypes(Code) | | the 'featureTypes' directory, under 'data'
|
plugIns | File plugIns(Code) | | the 'plugIns' directory under 'data
|
styles | File styles(Code) | | the 'styles' directory, under 'data'
|
templates | File templates(Code) | | the 'templates' director under 'data'
|
validation | File validation(Code) | | the 'validation' directory under 'data
|
addFeatureType | public void addFeatureType(QName name) throws IOException(Code) | | Adds a new feature type.
Note that callers of this code should call applicationContext.refresh()
in order to force the catalog to reload.
The feature type is "empty", in that it has no attributes and no data.
Use
MockData.addFeatureType(QName,InputStream) to add a feature type
with data.
|
addFeatureType | public void addFeatureType(QName name, InputStream properties) throws IOException(Code) | | Adds a new feature type.
Note that callers of this code should call applicationContext.refresh()
in order to force the catalog to reload.
The properties parameter is an input stream containing the feature
type info and data to be used by property datastore.
|
copyTo | public void copyTo(InputStream input, String location) throws IOException(Code) | | Copies some content to a file under the base of the data directory.
The location is considred to be a path relative to the
data directory root.
Note that the resulting file will be deleted when
MockData.tearDown() is called.
Parameters: input - The content to copy. Parameters: location - A relative path |
copyToFeatureTypeDirectory | public void copyToFeatureTypeDirectory(InputStream input, QName featureTypeName, String location) throws IOException(Code) | | Copies some content to a file udner a specific feature type directory
of the data directory.
Example:
dd.copyToFeautreTypeDirectory(input,MockData.PrimitiveGeoFeature,"info.xml");
Parameters: input - The content to copy. Parameters: featureTypeName - The name of the feature type. Parameters: location - The resulting location to copy to relative to the feautre type directory. |
getDataDirectoryRoot | public File getDataDirectoryRoot()(Code) | | The root of the data directory. |
getFeatureTypesDirectory | public File getFeatureTypesDirectory()(Code) | | the "featureTypes" directory under the root |
|
|
|