public interface MutableNdx extends Ndx
Ndx
interface to provide methods for setting
the data and metadata.Modifier and Type | Method and Description |
---|---|
void |
setBadBits(int badbits)
Sets the bad bits mask for this Ndx.
|
void |
setEtc(Node etc)
Sets the Etc component of this Ndx.
|
void |
setImage(NDArray image)
Sets the Image component of this Ndx.
|
void |
setLabel(String label)
Sets the label component of this Ndx.
|
void |
setQuality(NDArray quality)
Sets the Quality component of this Ndx.
|
void |
setTitle(String title)
Sets the title component of this Ndx.
|
void |
setUnits(String units)
Sets the units component of this Ndx.
|
void |
setVariance(NDArray variance)
Sets the Variance component of this Ndx.
|
void |
setWCS(Object wcs)
Sets the WCS component of this Ndx.
|
getAst, getBadBits, getEtc, getHdxFacade, getImage, getLabel, getQuality, getTitle, getUnits, getVariance, hasEtc, hasLabel, hasQuality, hasTitle, hasUnits, hasVariance, hasWCS, isPersistent, toXML
void setImage(NDArray image)
null
value.image
- the new Image componentNullPointerException
- if image
is null
void setVariance(NDArray variance)
null
the Ndx will be considered
to have no Variance component.variance
- the new Variance componentvoid setQuality(NDArray quality)
null
the Ndx will be considered to have
no Quality component.quality
- the new Quality componentIllegalArgumentException
- if quality
is an NDArray
with a Type
other than
Type.BYTE
, Type.SHORT
or Type.INT
void setTitle(String title)
title
- the new title.
If null
, this Ndx will be considered to have
no titlevoid setLabel(String label)
label
- the new label.
if null
, this Ndx will be considered to have
no labelvoid setUnits(String units)
units
- the new units string.
if null
, this Ndx will be considered to have no
units componentvoid setBadBits(int badbits)
badbits
- the new bad bits maskvoid setWCS(Object wcs)
wcs
- an object representing the new WCS component
If null
, a default WCS will be usedIllegalArgumentException
- if wcs
is not one of
the permitted types or otherwise fails to represent a legal
WCS componentvoid setEtc(Node etc)
null
the supplied Node should be a Document or Element of type <etc>.etc
- the new user-defined extensions component as a DOM node.
If null
, this Ndx will be considered to have no
extensionsIllegalArgumentException
- if etc
is not an Element
or Document of type <etc>Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.