Class GeoModelFloorDefinition
- All Implemented Interfaces:
JsonSerializable
GeoModelFloorDefinition
defines the required layers, and the required fields for each of those layers in a
floor-aware map or scene.
The floor definition must contain getLevelLayerDefinition()
and getFacilityLayerDefinition()
properties at a minimum representing the facilities (eg. buildings) and the floor levels within those facilities. The
getSiteLayerDefinition()
property is optional and represents the sites (campuses) that the facilities may be
grouped into.
//@see LayerFloorDefinition (TODO: uncomment this line when wrapping layer floor definition)
- Since:
- 100.12.0
-
Constructor Summary
ConstructorDescriptionGeoModelFloorDefinition
(FacilityLayerDefinition facilityLayerDefinition, LevelLayerDefinition levelLayerDefinition, SiteLayerDefinition siteLayerDefinition) Creates a new GeoModelFloorDefinition object with the specified facility layer definition, level layer definition, and site layer definition. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoModelFloorDefinition
Creates a GeoModelFloorDefinition instance from a JSON string.Gets the layer and field properties for the layer used to describe facilities.Gets the layer and field properties for the layer used to describe floor levels.Gets the layer and field properties for the layer used to describe sites.Gets unknown data from the source JSON.Gets unsupported data from the source JSON.toJson()
Serializes this object to a JSON string.
-
Constructor Details
-
GeoModelFloorDefinition
public GeoModelFloorDefinition(FacilityLayerDefinition facilityLayerDefinition, LevelLayerDefinition levelLayerDefinition, SiteLayerDefinition siteLayerDefinition) Creates a new GeoModelFloorDefinition object with the specified facility layer definition, level layer definition, and site layer definition.- Parameters:
facilityLayerDefinition
- the layer and field properties for the layer used to describe facilitieslevelLayerDefinition
- the layer and field properties for the layer used to describe floor levelssiteLayerDefinition
- the layer and field properties for the layer used to describe sites, may be null- Throws:
IllegalArgumentException
- if facilityLayerDefinition is nullIllegalArgumentException
- if levelLayerDefinition is null- Since:
- 100.12.0
-
-
Method Details
-
getFacilityLayerDefinition
Gets the layer and field properties for the layer used to describe facilities.- Returns:
- a FacilityLayerDefinition specifying the layer and field properties for the layer used to describe facilities
- Since:
- 100.12.0
-
getLevelLayerDefinition
Gets the layer and field properties for the layer used to describe floor levels.- Returns:
- a LevelLayerDefinition specifying the layer and field properties for the layer used to describe floor levels
- Since:
- 100.12.0
-
getSiteLayerDefinition
Gets the layer and field properties for the layer used to describe sites. This property is optional.- Returns:
- a SiteLayerDefinition specifying the layer and field properties for the layer used to describe sites. Returns null if none.
- Since:
- 100.12.0
-
getUnknownJson
Description copied from interface:JsonSerializable
Gets unknown data from the source JSON.Unknown JSON is a Map of values not defined in the ArcGIS specification used to create this object but found in the source JSON. If the object is written back to JSON, any unknown JSON data is not persisted. The ArcGIS specification may be for a web map, web scene, REST API, and so on.
- Specified by:
getUnknownJson
in interfaceJsonSerializable
- Returns:
- an unmodifiable Map containing unknown data from the source JSON
-
getUnsupportedJson
Description copied from interface:JsonSerializable
Gets unsupported data from the source JSON.Unsupported JSON is a Map of values defined in the ArcGIS specification used to create this object but not currently used in this API. If the object is written back to JSON, any unsupported JSON data is persisted. The ArcGIS specification may be from a web map, web scene, REST API, and so on.
- Specified by:
getUnsupportedJson
in interfaceJsonSerializable
- Returns:
- an unmodifiable Map containing unsupported data from the source JSON
-
fromJson
Creates a GeoModelFloorDefinition instance from a JSON string.- Parameters:
json
- a valid string in JSON format- Returns:
- a GeoModelFloorDefinition instance
- Throws:
IllegalArgumentException
- if json is null or empty- Since:
- 100.12.0
-
toJson
Description copied from interface:JsonSerializable
Serializes this object to a JSON string. Note that unknown JSON is omitted from the serialized string.- Specified by:
toJson
in interfaceJsonSerializable
- Returns:
- a JSON string
-