Module com.esri.arcgisruntime
Class LayerFloorDefinition
java.lang.Object
com.esri.arcgisruntime.mapping.floor.LayerFloorDefinition
- All Implemented Interfaces:
JsonSerializable
Describes how features in a
FloorAware
layer are associated with floor levels of a facility.
LayerFloorDefinition
defines the properties that are used to filter the levels, or floors, of a facility.
- Since:
- 100.12.0
- See Also:
-
Constructor Summary
ConstructorDescriptionLayerFloorDefinition
(String floorField) Creates a new LayerFloorDefinition object with a name of an attribute field. -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerFloorDefinition
Creates a LayerFloorDefinition instance from a JSON string.Gets the name of the attribute field that contains each floor level's ID.Gets unknown data from the source JSON.Gets unsupported data from the source JSON.toJson()
Serializes this object to a JSON string.
-
Constructor Details
-
LayerFloorDefinition
Creates a new LayerFloorDefinition object with a name of an attribute field.- Parameters:
floorField
- the name of the attribute field that contains each floor level's ID- Throws:
IllegalArgumentException
- if floorField is null- Since:
- 100.12.0
-
-
Method Details
-
getFloorField
Gets the name of the attribute field that contains each floor level's ID.- Returns:
- the name of the attribute field that contains each floor level's ID
- 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 LayerFloorDefinition instance from a JSON string.- Parameters:
json
- a valid string in JSON format- Returns:
- a LayerFloorDefinition 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
-