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, disposeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneQuietly, cloneQuietlydisposepublic DefaultBandDescriptor(RasterStore store, int band, java.util.List<BandAttributeDescriptor> attributeDescriptors)
band - attributeDescriptors - public int getBand()
BandDescriptorgetBand in interface BandDescriptorpublic BandAttributeDescriptor get(int index)
BandDescriptorBandAttributeDescriptor by index.get in interface BandDescriptorindex - Index of BandAttributeDescriptorBandAttributeDescriptor
located at index. If there are not
BandAttributeDescriptor at index, null will be returned.public BandAttributeDescriptor get(java.lang.String name)
BandDescriptorBandAttributeDescriptor by name.get in interface BandDescriptorname - Name of BandAttributeDescriptorBandAttributeDescriptor
located at index. If there are not
BandAttributeDescriptor whit the name, null will be returned.public int size()
BandDescriptorBandAttributeDescriptor.size in interface BandDescriptorpublic java.util.Iterator<BandAttributeDescriptor> iterator()
iterator in interface java.lang.Iterable<BandAttributeDescriptor>iterator in interface BandDescriptorpublic static void registerPersitenceDefinition()
public void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class java.lang.Objectjava.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()
BandDescriptorgetStore in interface BandDescriptorpublic NoData getNoData()
getNoData in interface BandDescriptorpublic void setNoData(NoData noData)
setNoData in interface BandDescriptorprotected void doDispose()
throws BaseException
AbstractDisposableAbstractDisposable.dispose() method, to be
implemented by child classes.doDispose in class AbstractDisposableBaseExceptionAbstractDisposable.dispose()public BandAttributeDescriptor add(BandAttributeDescriptor bandAttributeDescriptor)
add in interface BandDescriptorServicespublic BandAttributeDescriptor add(java.lang.String name, java.lang.Object value)
add in interface BandDescriptorServicespublic int getDataType()
BandDescriptorBufferManager.
The data type of the band can't be changed after being created.getDataType in interface BandDescriptorpublic void setDataType(int dataType)
setDataType in interface BandDescriptorServicespublic java.lang.String getName()
getName in interface BandDescriptorpublic java.lang.String getDescription()
getDescription in interface BandDescriptorpublic void setName(java.lang.String name)
setName in interface BandDescriptorServicespublic void setDescription(java.lang.String description)
setDescription in interface BandDescriptorServices