public class DefaultBandDescriptor extends AbstractDisposable implements BandDescriptorServices
BandDescriptor
.Constructor and Description |
---|
DefaultBandDescriptor(RasterStore store,
int band,
java.util.List<BandAttributeDescriptor> attributeDescriptors) |
Modifier and Type | Method and Description |
---|---|
BandAttributeDescriptor |
add(BandAttributeDescriptor bandAttributeDescriptor) |
BandAttributeDescriptor |
add(java.lang.String name,
java.lang.Object value) |
java.lang.Object |
clone()
Creates a copy of the object.
|
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
BandAttributeDescriptor |
get(int index)
Gets the
BandAttributeDescriptor by index. |
BandAttributeDescriptor |
get(java.lang.String name)
Gets the
BandAttributeDescriptor by name. |
int |
getBand()
Gets band of this descriptor.
|
int |
getDataType()
Gets the dataType.
|
java.lang.String |
getDescription() |
java.lang.String |
getName() |
NoData |
getNoData() |
RasterStore |
getStore()
Gets the store that the band belongs.
|
java.util.Iterator<BandAttributeDescriptor> |
iterator() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersitenceDefinition() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setDataType(int dataType) |
void |
setDescription(java.lang.String description) |
void |
setName(java.lang.String name) |
void |
setNoData(NoData noData) |
int |
size()
Number of
BandAttributeDescriptor . |
dispose, dispose
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
dispose
public DefaultBandDescriptor(RasterStore store, int band, java.util.List<BandAttributeDescriptor> attributeDescriptors)
band
- attributeDescriptors
- public int getBand()
BandDescriptor
getBand
in interface BandDescriptor
public BandAttributeDescriptor get(int index)
BandDescriptor
BandAttributeDescriptor
by index.get
in interface BandDescriptor
index
- Index of BandAttributeDescriptor
BandAttributeDescriptor
located at index. If there are not
BandAttributeDescriptor
at index, null will be returned.public BandAttributeDescriptor get(java.lang.String name)
BandDescriptor
BandAttributeDescriptor
by name.get
in interface BandDescriptor
name
- Name of BandAttributeDescriptor
BandAttributeDescriptor
located at index. If there are not
BandAttributeDescriptor
whit the name, null will be returned.public int size()
BandDescriptor
BandAttributeDescriptor
.size
in interface BandDescriptor
public java.util.Iterator<BandAttributeDescriptor> iterator()
iterator
in interface java.lang.Iterable<BandAttributeDescriptor>
iterator
in interface BandDescriptor
public static void registerPersitenceDefinition()
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public RasterStore getStore()
BandDescriptor
getStore
in interface BandDescriptor
public NoData getNoData()
getNoData
in interface BandDescriptor
public void setNoData(NoData noData)
setNoData
in interface BandDescriptor
protected void doDispose() throws BaseException
AbstractDisposable
AbstractDisposable.dispose()
method, to be
implemented by child classes.doDispose
in class AbstractDisposable
BaseException
AbstractDisposable.dispose()
public BandAttributeDescriptor add(BandAttributeDescriptor bandAttributeDescriptor)
add
in interface BandDescriptorServices
public BandAttributeDescriptor add(java.lang.String name, java.lang.Object value)
add
in interface BandDescriptorServices
public int getDataType()
BandDescriptor
BufferManager
.
The data type of the band can't be changed after being created.getDataType
in interface BandDescriptor
public void setDataType(int dataType)
setDataType
in interface BandDescriptorServices
public java.lang.String getName()
getName
in interface BandDescriptor
public java.lang.String getDescription()
getDescription
in interface BandDescriptor
public void setName(java.lang.String name)
setName
in interface BandDescriptorServices
public void setDescription(java.lang.String description)
setDescription
in interface BandDescriptorServices