public class RealspaceContext
extends java.lang.Object
Three-dimensional context information.
This class is used to set / get the three-dimensional configuration information, set / get attribute information, determine whether the three-dimensional provided by the remote service.
Constructor and Description |
---|
RealspaceContext()
The Constructor.
|
RealspaceContext(java.util.List<RealspaceProviderSetting> settings)
Constructs the
RealspaceContext object according to the three-dimensional service provider configuration information list. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProperty(java.lang.String key)
Gets the value of the specified name attribute information.
|
java.util.List<java.lang.String> |
getPropertyNames()
Gets the list of names for attribute information.
|
java.util.List<RealspaceProvider> |
getProviders()
Gets 3D service provider list.
|
java.util.List<RealspaceProviderSetting> |
getProviderSettings()
Gets 3D service provider configuration information.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the attribute information.
|
void |
setProviders(java.util.List<RealspaceProvider> providers)
Sets the three-dimensional service provider in context.
|
void |
setProviderSettings(java.util.List<RealspaceProviderSetting> providerSettings)
Sets three-dimensional service provider information.
|
public RealspaceContext()
public RealspaceContext(java.util.List<RealspaceProviderSetting> settings)
Constructs the RealspaceContext
object according to the three-dimensional service provider configuration information list.
settings
- 3D service provider configuration information list.public java.util.List<RealspaceProviderSetting> getProviderSettings()
Gets 3D service provider configuration information.
public void setProviderSettings(java.util.List<RealspaceProviderSetting> providerSettings)
Sets three-dimensional service provider information.
providerSettings
- 3D service provider configuration information list.public final void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the attribute information.
The attribute information is a HashMap, key records the name of a property information, value records the value of the attribute information. In the development of the expansion, you can use this method to set some of the property information, such as setting the query layer filtering information etc.
The key in the default attribute information is "RealspacePROVIDERFACTORY", the value is RealspaceProviderFactory class, means that will construct related RealspaceProvider according to RealspaceProviderFactory.
properties
- property information. The parameter can not be empty, and the length is greater than zero.public final java.lang.String getProperty(java.lang.String key)
Gets the value of the specified name attribute information.
The attribute information is a HashMap, key records the name of a property information, value records the value of the attribute information. The default attribute information in the key is "RealspacePROVIDERFACTORY", the value is RealspaceProviderFactory class.
Returns null if this mapping does not contain any mappings for the key of attribute information.
key
- Key, that is, the name of a property information.public final java.util.List<java.lang.String> getPropertyNames()
Gets the list of names for attribute information.
The attribute information is a HashMap, key records the name of a property information, value records the value of the attribute information. The default attribute information in the key is "RealspacePROVIDERFACTORY", the value is RealspaceProviderFactory class.
public java.util.List<RealspaceProvider> getProviders()
Gets 3D service provider list.
public void setProviders(java.util.List<RealspaceProvider> providers)
Sets the three-dimensional service provider in context.
providers
- A list of three-dimensional service providers.