org.das2.qds.MutablePropertyDataSet

Some QDataSets allow their properties to be changed. Note scripts should never assume a dataset is mutable, and should call the putProperty method instead, which will make a copy if necessary. Note the terms mutable, writable, and modifiable are all used in this documentation and interchangeable.


isImmutable

isImmutable( ) → boolean

return true if the dataset has been made immutable.

Returns:

true if the dataset has been made immutable.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


makeImmutable

makeImmutable( ) → void

mark the dataset as being immutable. Once this is called, calls to mutating properties will print warning messages for now, but will soon be an error.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


putProperty

putProperty( String name, Object value ) → void

assign the name value to the property. Note that name__i can be used as a alias for an indexed property, but when possible putProperty(name,i,value) should be used.

Parameters

name - property name like "UNITS" (Use QDataSet.UNITS)
value - the property value.

Returns:

void (returns nothing)

See Also:

org.das2.qds.ops.Ops#putProperty(QDataSet, java.lang.String, java.lang.Object) putProperty which properly checks mutability of the dataset
QDataSet#UNITS


[search for examples] [view on GitHub] [view on old javadoc] [view source]

putProperty( String name, int index, Object value ) → void