public interface NdxImpl
NdxImpl
you can make an Ndx
out of it.
This is the basic interface via which NDX implementations provide
services to the BridgeNdx
class.
BridgeNdx is intended to be the only client of this class, and it
does the necessary validation of arguments before passing them to
NdxImpl, so that implementations of this interface can in general
assume that the arguments they receive make sense.
Note that BridgeNdx
may cache information from the methods
defined here, so objects implementing this interface should be
considered effectively immutable; if an instance of NdxImpl
changes the return value of getTitle
at some point
after it has been passed to the BridgeNdx
constructor
it is not defined which value an invocation of the
BridgeNdx.getTitle
method will return.
For this reason it is not generally worthwhile for implementations
of this interface to perform caching for performance reasons
except where noted, since most of the get
methods will
be called only once.
Modifier and Type | Method and Description |
---|---|
int |
getBadBits()
Returns the bad bits mask used to mask the image/variance arrays
against the quality array.
|
Source |
getEtc()
Gets an XML Source holding the extension information.
|
NDArray |
getImage()
Gets an NDArray containing the image data.
|
String |
getLabel()
Gets the label component.
|
NDArray |
getQuality()
Gets an NDArray containing the quality data.
|
String |
getTitle()
Gets the title component.
|
String |
getUnits()
Gets the units component.
|
NDArray |
getVariance()
Gets an NDArray containing the variance data.
|
Object |
getWCS()
Gets an object representing the world coordinate systems of this Ndx.
|
boolean |
hasEtc()
Indicates whether an extensions DOM is available.
|
boolean |
hasLabel()
Indicates whether a label component is available.
|
boolean |
hasQuality()
Indicates whether quality array data is present.
|
boolean |
hasTitle()
Indicates whether a title component is available.
|
boolean |
hasUnits()
Indicates whether a units component is available.
|
boolean |
hasVariance()
Indicates whether variance array data is present.
|
boolean |
hasWCS()
Indicates whether a WCS component is available.
|
int getBadBits()
boolean hasTitle()
getTitle()
will return a stringString getTitle()
hasTitle()
returns true.boolean hasLabel()
getLabel()
will return a stringString getLabel()
hasLabel()
returns true.boolean hasUnits()
getUnits()
will return a stringString getUnits()
hasUnits()
returns true.boolean hasWCS()
Object getWCS()
hasWCS()
returns true.boolean hasEtc()
Source getEtc()
hasEtc()
returns true.
The result must represent an element, or a document with a root
element, whose tagname is "etc". This method may be called more
than once by BridgeNdx
, so it must not return a source
which may have been exhausted by a previous call (for instance
an old StreamSource
).NDArray getImage()
boolean hasVariance()
NDArray getVariance()
hasVariance()
returns true.boolean hasQuality()
NDArray getQuality()
hasQuality()
returns true.Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.