PropertyBag

external class PropertyBag(value: Any? = definedExternally, createPropertyCallback: Function<*>? = definedExternally)(source)

A Property whose value is a key-value mapping of property names to the computed value of other properties.

Parameters

value

An object, containing key-value mapping of property names to properties.

createPropertyCallback

A function that will be called when the value of any of the properties in value are not a Property.

See also

Constructors

Link copied to clipboard
constructor(value: Any? = definedExternally, createPropertyCallback: Function<*>? = definedExternally)

Properties

Link copied to clipboard

Gets the event that is raised whenever the set of properties contained in this object changes, or one of the properties itself changes.

Link copied to clipboard

Gets a value indicating if this property is constant. This property is considered constant if all property items in this object are constant.

Link copied to clipboard

Gets the names of all properties registered on this instance.

Functions

Link copied to clipboard
fun addProperty(propertyName: String, value: Any? = definedExternally, createPropertyCallback: Function<*>? = definedExternally)

Adds a property to this object.

Link copied to clipboard
fun getValue(time: JulianDate? = definedExternally, result: Any? = definedExternally): Any

Gets the value of this property. Each contained property will be evaluated at the given time, and the overall result will be an object, mapping property names to those values.

Link copied to clipboard
fun hasProperty(propertyName: String): Boolean

Determines if this object has defined a property with the given name.

Link copied to clipboard
fun merge(source: Any, createPropertyCallback: Function<*>? = definedExternally)

Assigns each unassigned property on this object to the value of the same property on the provided source object.

Link copied to clipboard
fun removeProperty(propertyName: String)

Removed a property previously added with addProperty.