/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { String } from "../../types/java/lang/String"; import type { GeolocationValue } from "../../types/senselogic/sitevision/api/metadata/value/GeolocationValue"; import type { Builder } from "../../types/senselogic/sitevision/api/base/Builder"; /** * Builder to create {@link GeolocationValue} instances that can be used to set geolocation metadata. * *

* GeolocationValueBuilder has three mandatory attributes: *

* *

* Using the GeolocationValueBuilder is pretty straightforward, if you remember that it is stateful. Conceptually you * would typically use it like this: *

*
    *
  1. Get the GeolocationValueBuilder
  2. *
  3. Set the name
  4. *
  5. Set the latitude
  6. *
  7. Set the longitude
  8. *
  9. Do build
  10. *
*

* When you have built a GeolocationValue instance, you can re-use the GeolocationValueBuilder to build more instances. * Something like: *

*
    *
  1. Possibly set a new name
  2. *
  3. Possibly set a new latitude
  4. *
  5. Possibly set a new longitude
  6. *
  7. Do build
  8. *
* *

* Tip! The {@link senselogic.sitevision.api.base.Builder Builder interface documentation} contains * more information about Builders and how to work with them! *

* *

* An instance of the Sitevision class implementing this interface can be obtained via * {@link senselogic.sitevision.api.metadata.MetadataUtil#getGeolocationValueBuilder()}. * See {@link senselogic.sitevision.api.metadata.MetadataUtil} for how to obtain an instance of the MetadataUtil interface. *

* @author Magnus Lövgren * @since Sitevision 2025.11.1 */ export interface GeolocationValueBuilder extends Builder { /** * Sets the location name. * @param aLocationName the location name, must not be null or blank * @return this builder */ setName(aLocationName: String | string): GeolocationValueBuilder; /** * Sets the latitude. * @param aLatitude the latitude, must be within range [-90.0 ... 90.0] * @return this builder */ setLatitude(aLatitude: number): GeolocationValueBuilder; /** * Sets the longitude. * @param aLongitude the longitude, must be within range [-180.0 ... 180.0] * @return this builder */ setLongitude(aLongitude: number): GeolocationValueBuilder; /** * Creates a GeolocationValue instance using current state of this builder. * @return a geolocation value * @throws IllegalStateException if the name, longitude or latitude value are invalid */ build(): GeolocationValue; } declare namespace GeolocationValueBuilder {} declare var geolocationValueBuilder: GeolocationValueBuilder; export default geolocationValueBuilder;