## org.autoplot.pds.Pds3DataSourceFactory

Factory for resolving PDS3 URIs.

## Pds3DataSourceFactory( )

getCompletions( org.autoplot.datasource.CompletionContext cc, ProgressMonitor mon ) → java.util.List [view source]

## getDataObjectPds3

getDataObjectPds3( java.net.URL url, String name ) → org.autoplot.pds.PDS3DataObject

return information about how this data is stored in PDS3DataObject.

### Parameters

url - URL of label
name - the object name

### Returns:

PDS3DataObject
[search for examples] [view on GitHub] [view on old javadoc]
getDataSource( java.net.URI uri ) → org.autoplot.datasource.DataSource [view source]

## getDocumentWithImports

getDocumentWithImports( java.net.URL labelUrl ) → org.w3c.dom.Document

read in the PDS label, resolving STRUCTURES which are loaded with a pointer. This will look in the current directory, and in the LABEL directory next to the DATA directory.

### Parameters

labelUrl - the URL of the LABEL file

### Returns:

a document model of the LABEL, with imports resolved.
[search for examples] [view on GitHub] [view on old javadoc]

## getDocumentWithImports

getDocumentWithImports( java.net.URL labelUrl, int depth ) → org.w3c.dom.Document

read in the PDS label, resolving STRUCTURES which are loaded with a pointer. This will look in the current directory, and in the LABEL directory next to the DATA directory. Note the Pointer must appear at /LABEL/*/POINTER[@object="STRUCTURE"] or /LABEL/POINTER[@object="STRUCTURE"], and Pointer is left in the Document.

### Parameters

labelUrl - the URL of the LABEL file
depth - number of levels deep, this is limited to 4.

### Returns:

a document model of the LABEL, with imports resolved.
[search for examples] [view on GitHub] [view on old javadoc]

## identifyRoot

identifyRoot( java.net.URL location ) → java.net.URL

identify the root of the volume.This was motivated by a LABL in SOFTWARE in a volume which didn't have DATA, and I had everything mounted in /project/pds/mirror/DATA.The root will often have DATA, DOCUMENT, and a README.txt file.

### Parameters

location - a location within the volume

### Returns:

the root of the volume or null if it can't be found.
[search for examples] [view on GitHub] [view on old javadoc]
reject( String suri, java.util.List problems, ProgressMonitor mon ) → boolean [view source]