public class DefaultBandAttributeDescriptor extends java.lang.Object implements BandAttributeDescriptor
BandAttributeDescriptor
.Constructor and Description |
---|
DefaultBandAttributeDescriptor(int band,
java.lang.String name,
java.lang.Object value,
java.lang.String description,
java.util.List<java.lang.Object> values,
java.lang.String units) |
DefaultBandAttributeDescriptor(int band,
java.lang.String name,
java.lang.String description,
java.util.List<java.lang.Object> values) |
DefaultBandAttributeDescriptor(int band,
java.lang.String name,
java.lang.String description,
java.util.List<java.lang.Object> values,
java.lang.String units) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
java.util.List<java.lang.Object> |
getAvailableValues()
Available values of this attribute band
|
int |
getBand()
Gets band of this attribute descriptor
|
java.lang.String |
getDescription()
Description of attribute
|
java.lang.String |
getName()
Name of attribute
|
java.lang.String |
getUnits()
String units of the levels
|
java.lang.Object |
getValue() |
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.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
public DefaultBandAttributeDescriptor(int band, java.lang.String name, java.lang.String description, java.util.List<java.lang.Object> values)
band
- name
- description
- values
- public DefaultBandAttributeDescriptor(int band, java.lang.String name, java.lang.String description, java.util.List<java.lang.Object> values, java.lang.String units)
band
- name
- description
- values
- units
- public DefaultBandAttributeDescriptor(int band, java.lang.String name, java.lang.Object value, java.lang.String description, java.util.List<java.lang.Object> values, java.lang.String units)
band
- name
- description
- values
- units
- public int getBand()
BandAttributeDescriptor
getBand
in interface BandAttributeDescriptor
public java.lang.String getName()
BandAttributeDescriptor
getName
in interface BandAttributeDescriptor
public java.lang.String getDescription()
BandAttributeDescriptor
getDescription
in interface BandAttributeDescriptor
public java.util.List<java.lang.Object> getAvailableValues()
BandAttributeDescriptor
getAvailableValues
in interface BandAttributeDescriptor
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 java.lang.String getUnits()
BandAttributeDescriptor
getUnits
in interface BandAttributeDescriptor
public java.lang.Object getValue()
getValue
in interface BandAttributeDescriptor