|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.objectAccess.ObjectAccess
public class ObjectAccess
The ObjectAccess
class is a point of entry into parsed PDS (including PDS 4/XML-schema-labeled) objects.
Constructor Summary | |
---|---|
ObjectAccess()
Creates a new instance with the current directory as the archive root path. |
|
ObjectAccess(File archiveRoot)
Constructs an ObjectAccess object and sets the archive root path. |
|
ObjectAccess(String archiveRoot)
Constructs an ObjectAccess object and sets the archive root path. |
Method Summary | ||
---|---|---|
String |
getArchiveRoot()
Gets the root file path of the object archive(s) for this ObjectProvider. |
|
List<Array2DImage> |
getArray2DImages(FileAreaObservational observationalFileArea)
Returns a list of Array2DImage objects given an observation file area object. |
|
List<FieldBinary> |
getFieldBinaries(TableBinary table)
Returns a list of FieldBinary objects given a table binary object. |
|
List<FieldCharacter> |
getFieldCharacters(TableCharacter table)
Returns a list of FieldCharacter objects given a table character object. |
|
ProductObservational |
getObservationalProduct(String relativeXmlFilePath)
Gets an instance of ProductObservational. |
|
|
getProduct(File labelFile,
Class<T> productClass)
Reads a product label of a specified class, and returns an instance of that class as a result. |
|
File |
getRoot()
Gets the root file path of the object archive(s) for this ObjectProvider. |
|
List<TableBinary> |
getTableBinaries(FileAreaObservational observationalFileArea)
Returns a list of TableBinary objects given an observation file area object. |
|
List<TableCharacter> |
getTableCharacters(FileAreaObservational observationalFileArea)
Returns a list of TableCharacter objects given an observation file area object. |
|
List<TableDelimited> |
getTableDelimiteds(FileAreaObservational observationalFileArea)
Returns a list of TableDelimited objects given an observation file area object. |
|
List<Object> |
getTableObjects(FileAreaObservational observationalFileArea)
Returns a list of table objects. |
|
void |
setObservationalProduct(String relativeXmlFilePath,
ProductObservational product)
Writes a label given the product XML file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectAccess()
public ObjectAccess(String archiveRoot)
ObjectAccess
object and sets the archive root path.
archiveRoot
- the archive root path
Exception
public ObjectAccess(File archiveRoot)
ObjectAccess
object and sets the archive root path.
archiveRoot
- the archive root path
Exception
Method Detail |
---|
public <T> T getProduct(File labelFile, Class<T> productClass) throws ParseException
ObjectProvider
getProduct
in interface ObjectProvider
T
- the product object classlabelFile
- the file containing the XML labelproductClass
- the product object class
ParseException
- if there is an error parsing the labelpublic ProductObservational getObservationalProduct(String relativeXmlFilePath)
ObjectProvider
getObservationalProduct
in interface ObjectProvider
relativeXmlFilePath
- the XML file path and name of the product to obtain, relative
to the ObjectAccess archive root
public void setObservationalProduct(String relativeXmlFilePath, ProductObservational product)
ObjectProvider
setObservationalProduct
in interface ObjectProvider
relativeXmlFilePath
- the XML file path and name of the product to set, relative
to the ObjectAccess archive rootpublic List<Array2DImage> getArray2DImages(FileAreaObservational observationalFileArea)
ObjectProvider
getArray2DImages
in interface ObjectProvider
public List<Object> getTableObjects(FileAreaObservational observationalFileArea)
ObjectProvider
getTableObjects
in interface ObjectProvider
public List<TableCharacter> getTableCharacters(FileAreaObservational observationalFileArea)
ObjectProvider
getTableCharacters
in interface ObjectProvider
public List<TableBinary> getTableBinaries(FileAreaObservational observationalFileArea)
ObjectProvider
getTableBinaries
in interface ObjectProvider
public List<TableDelimited> getTableDelimiteds(FileAreaObservational observationalFileArea)
ObjectProvider
getTableDelimiteds
in interface ObjectProvider
public List<FieldCharacter> getFieldCharacters(TableCharacter table)
ObjectProvider
getFieldCharacters
in interface ObjectProvider
table
- TableCharacter object
public List<FieldBinary> getFieldBinaries(TableBinary table)
ObjectProvider
getFieldBinaries
in interface ObjectProvider
table
- TableBinary object
public String getArchiveRoot()
ObjectProvider
getArchiveRoot
in interface ObjectProvider
public File getRoot()
ObjectProvider
getRoot
in interface ObjectProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |