/**
* 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:
*
*
* -
* name - The location name. Must not be null or blank.
*
* -
* latitude - The Latitude. Must be a double value within range
[-90.0 ... 90.0].
*
* -
* longitude - The Longitude. Must be a double value within range
[-180.0 ... 180.0].
*
*
*
* Using the GeolocationValueBuilder is pretty straightforward, if you remember that it is stateful. Conceptually you
* would typically use it like this:
*
*
* - Get the GeolocationValueBuilder
* - Set the name
* - Set the latitude
* - Set the longitude
* - Do build
*
*
* When you have built a GeolocationValue instance, you can re-use the GeolocationValueBuilder to build more instances.
* Something like:
*
*
* - Possibly set a new name
* - Possibly set a new latitude
* - Possibly set a new longitude
* - Do build
*
*
*
* 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;