public class AddeImageDescriptor extends java.lang.Object implements java.lang.Comparable, XmlPersistable, XmlDelegate
Constructor and Description |
---|
AddeImageDescriptor()
Default constructor for unpersistence; does nothing
|
AddeImageDescriptor(AddeImageDescriptor that)
Create a descriptor from another.
|
AddeImageDescriptor(edu.wisc.ssec.mcidas.AreaDirectory directory,
java.lang.String imageSource)
Create an image descriptor from the source and AreaDirectory
|
AddeImageDescriptor(edu.wisc.ssec.mcidas.AreaDirectory directory,
java.lang.String imageSource,
AddeImageInfo info)
Create an image descriptor from the source and AreaDirectory
|
AddeImageDescriptor(int relativeIndex,
AddeImageDescriptor that)
Create a descriptor from another, but change the relative index
|
AddeImageDescriptor(java.lang.String imageSource)
Create an image descriptor from the source
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Implementation for Comparable.
|
org.w3c.dom.Element |
createElement(XmlEncoder encoder)
We just have this here so we can define a XmlDelegate for
the AreaDirectory class
|
org.w3c.dom.Element |
createElement(XmlEncoder encoder,
java.lang.Object object)
This is the delegate method for AreaDirectory
|
java.lang.Object |
createObject(XmlEncoder encoder,
org.w3c.dom.Element element)
Create an image descriptor from the XML element
|
boolean |
equals(java.lang.Object o)
See if this AddeImageDescriptor is equal to the object in
question
|
edu.wisc.ssec.mcidas.AreaDirectory |
getDirectory()
Get the AreaDirectory (used by XML persistence)
|
AddeImageInfo |
getImageInfo()
Get the image info of this image (used by persistence)
|
visad.DateTime |
getImageTime()
Get the time of the image
|
boolean |
getIsRelative()
Get the IsRelative property.
|
int |
getRelativeIndex()
Get the RelativeIndex property.
|
java.lang.String |
getSource()
Get the source of this image (used by persistence)
|
boolean |
initFromXml(XmlEncoder encoder,
org.w3c.dom.Element element)
DO nothing.
|
protected boolean |
isFromFile()
Does this represent a file
|
protected edu.wisc.ssec.mcidas.AreaDirectory |
processSourceAsAddeUrl(java.lang.String imageSource)
Create an
AreaDirectory from the ADDE URL. |
void |
setDirectory(edu.wisc.ssec.mcidas.AreaDirectory d)
Set the AreaDirectory (used by XML persistence)
|
void |
setImageInfo(AddeImageInfo s)
Set the image info of this image (used by persistence)
|
void |
setIsRelative(boolean value)
Set the IsRelative property.
|
void |
setRelativeIndex(int value)
Set the RelativeIndex property.
|
void |
setSource(java.lang.String s)
Set the source of this image (used by persistence)
|
java.lang.String |
toString()
Get a text representation of this object
|
public AddeImageDescriptor()
public AddeImageDescriptor(int relativeIndex, AddeImageDescriptor that)
relativeIndex
- new relative indexthat
- other image descriptorpublic AddeImageDescriptor(AddeImageDescriptor that)
that
- other image descriptorpublic AddeImageDescriptor(java.lang.String imageSource)
imageSource
- ADDE URLpublic AddeImageDescriptor(edu.wisc.ssec.mcidas.AreaDirectory directory, java.lang.String imageSource)
directory
- image metadataimageSource
- ADDE URL of imagepublic AddeImageDescriptor(edu.wisc.ssec.mcidas.AreaDirectory directory, java.lang.String imageSource, AddeImageInfo info)
directory
- image metadataimageSource
- ADDE URL of imageinfo
- Image infoprotected boolean isFromFile()
protected edu.wisc.ssec.mcidas.AreaDirectory processSourceAsAddeUrl(java.lang.String imageSource)
AreaDirectory
from the ADDE URL. If the URL
is a data request (imagedata) then munge it to make an imagedir
request.imageSource
- ADDE URLpublic org.w3c.dom.Element createElement(XmlEncoder encoder)
createElement
in interface XmlPersistable
encoder
- encoder to usepublic java.lang.Object createObject(XmlEncoder encoder, org.w3c.dom.Element element)
createObject
in interface XmlDelegate
encoder
- encoder to useelement
- XML description of this objectpublic boolean initFromXml(XmlEncoder encoder, org.w3c.dom.Element element)
initFromXml
in interface XmlPersistable
encoder
- encoder for XMLelement
- XML elementpublic org.w3c.dom.Element createElement(XmlEncoder encoder, java.lang.Object object)
createElement
in interface XmlDelegate
encoder
- XML encoder for this objectobject
- an AddeImageDescriptorpublic edu.wisc.ssec.mcidas.AreaDirectory getDirectory()
public void setDirectory(edu.wisc.ssec.mcidas.AreaDirectory d)
d
- image metadatapublic java.lang.String getSource()
public void setSource(java.lang.String s)
s
- the ADDE URL for this imagepublic AddeImageInfo getImageInfo()
public void setImageInfo(AddeImageInfo s)
s
- the AddeImageInfo for this imagepublic void setIsRelative(boolean value)
value
- The new value for IsRelativepublic boolean getIsRelative()
public void setRelativeIndex(int value)
value
- The new value for RelativeIndexpublic int getRelativeIndex()
public visad.DateTime getImageTime()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- object in questionComparable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- object in questiono
is an AddeImageDescriptor and
they area equivalent