com.supermap.services.components.spi

Class RealspaceContext

  • java.lang.Object
    • com.supermap.services.components.spi.RealspaceContext


  • 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 Detail

      • RealspaceContext

        public RealspaceContext()
        
        The Constructor.
      • RealspaceContext

        public RealspaceContext(java.util.List<RealspaceProviderSetting> settings)
        

        Constructs the RealspaceContext object according to the three-dimensional service provider configuration information list.

        Parameters:
        settings - 3D service provider configuration information list.
    • Method Detail

      • getProviderSettings

        public java.util.List<RealspaceProviderSetting> getProviderSettings()
        

        Gets 3D service provider configuration information.

        Returns:
        3D service provider configuration information list.
      • setProviderSettings

        public void setProviderSettings(java.util.List<RealspaceProviderSetting> providerSettings)
        

        Sets three-dimensional service provider information.

        Parameters:
        providerSettings - 3D service provider configuration information list.
      • setProperties

        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.

        Parameters:
        properties - property information. The parameter can not be empty, and the length is greater than zero.
      • getProperty

        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.

        Parameters:
        key - Key, that is, the name of a property information.
        Returns:
        Specifies the value which the key of the attribute information is mapped to. Returns null if this map does not contain a mapping for the key.
      • getPropertyNames

        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.

        Returns:
        Returns the list of names for attribute information.
      • getProviders

        public java.util.List<RealspaceProvider> getProviders()
        

        Gets 3D service provider list.

        Returns:
        A list of three-dimensional service providers.
      • setProviders

        public void setProviders(java.util.List<RealspaceProvider> providers)
        

        Sets the three-dimensional service provider in context.

        Parameters:
        providers - A list of three-dimensional service providers.