public class PDS3Label extends java.lang.Object implements PDSObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTEXT |
ContextUtil |
ctxtUtil |
Constructor and Description |
---|
PDS3Label()
Empty Constructor, set everything later on
|
PDS3Label(org.w3c.dom.Document document)
Constructor
Construct the PDS3label using a DOM object from somewhere else
|
PDS3Label(java.lang.String filePath)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String key)
Retrieves the value for the specified key
|
java.lang.String |
getContext()
Returns the variable to be used in the Velocity Template Engine to map to
this object.
|
java.lang.String |
getFilePath() |
javax.imageio.stream.ImageInputStream |
getImageInputStream() |
java.lang.Long |
getImageStartByte() |
java.util.List |
getList(java.lang.String key) |
java.util.List<java.lang.String> |
getPDSObjectNames()
Added per request from mcayanan in order to be able to loop through the
PDS Objects that can be found in the label
|
java.lang.String |
getUnits(java.lang.String key) |
void |
setImageInputStream(javax.imageio.stream.ImageInputStream iis) |
void |
setImageStartByte(java.lang.Long x) |
void |
setIncludePaths(java.util.List<java.lang.String> i)
Set the paths to search for files referenced by pointers.
|
void |
setMappings() |
void |
setParameters(PDSObject pdsObject) |
void |
setParserType(ParserType type) |
java.lang.String |
toString() |
public static final java.lang.String CONTEXT
public ContextUtil ctxtUtil
public PDS3Label()
public PDS3Label(org.w3c.dom.Document document)
document
- public PDS3Label(java.lang.String filePath)
filePath
- public final java.lang.Object get(java.lang.String key)
get
in interface PDSObjectContext
key
- public final java.lang.String getContext()
getContext
in interface PDSContext
public final java.lang.String getFilePath()
getFilePath
in interface PDSObject
public final java.util.List getList(java.lang.String key) throws TemplateException
getList
in interface PDSObject
TemplateException
public final java.lang.String getUnits(java.lang.String key)
getUnits
in interface PDSObjectContext
public final void setParameters(PDSObject pdsObject)
setParameters
in interface PDSObjectContext
public void setImageInputStream(javax.imageio.stream.ImageInputStream iis)
public javax.imageio.stream.ImageInputStream getImageInputStream()
getImageInputStream
in interface PDSObject
public void setImageStartByte(java.lang.Long x)
public java.lang.Long getImageStartByte()
getImageStartByte
in interface PDSObject
public void setMappings()
setMappings
in interface PDSObjectContext
public final java.util.List<java.lang.String> getPDSObjectNames()
public final java.lang.String toString()
toString
in class java.lang.Object
public void setParserType(ParserType type)
public void setIncludePaths(java.util.List<java.lang.String> i)
Default is to always look first in the same directory as the label, then search specified directories.
i
- List of pathsCopyright © 2010-2019 Planetary Data System. All Rights Reserved.