gov.nasa.pds.tools.label
Class CatalogPointer

java.lang.Object
  extended by gov.nasa.pds.tools.label.Statement
      extended by gov.nasa.pds.tools.label.PointerStatement
          extended by gov.nasa.pds.tools.label.IncludePointer
              extended by gov.nasa.pds.tools.label.CatalogPointer
All Implemented Interfaces:
PointerType, Status, java.lang.Comparable

public class CatalogPointer
extends IncludePointer

This class represents a pointer to a catalog file. This is different than normal pointers in that it can reference several files.

Version:
$Revision: 3836 $
Author:
pramirez

Field Summary
 
Fields inherited from class gov.nasa.pds.tools.label.IncludePointer
loaded, loadStatus, numErrors, numWarnings, statements
 
Fields inherited from class gov.nasa.pds.tools.label.PointerStatement
externalReference, value
 
Fields inherited from class gov.nasa.pds.tools.label.Statement
context, filename, identifier, lineNumber
 
Fields inherited from interface gov.nasa.pds.tools.label.PointerType
CATALOG, CATALOG_NAMES, DATA_LOCATION, DESCRIPTION, DESCRIPTION_NAMES, INCLUDE, INCLUDE_NAMES, MAP_PROJECTION, UNDEFINED
 
Fields inherited from interface gov.nasa.pds.tools.label.validate.Status
FAIL, PASS, SKIP, UNKNOWN
 
Constructor Summary
CatalogPointer(int lineNumber, java.lang.String identifier, Value value)
           
 
Method Summary
 void loadReferencedStatements(java.util.List includePaths)
          This method attempts to load the referenced statements.
 
Methods inherited from class gov.nasa.pds.tools.label.IncludePointer
getLoadStatus, getNumErrors, getNumWarnings, getStatements, isLoaded
 
Methods inherited from class gov.nasa.pds.tools.label.PointerStatement
attachComment, getComment, getExternalFileReference, getExternalFileReferences, getPointerType, getValue, hasExternalReference, hasMultipleReferences
 
Methods inherited from class gov.nasa.pds.tools.label.Statement
compareTo, getContext, getFilename, getIdentifier, getLineNumber, setContext, setFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogPointer

public CatalogPointer(int lineNumber,
                      java.lang.String identifier,
                      Value value)
Method Detail

loadReferencedStatements

public void loadReferencedStatements(java.util.List includePaths)
                              throws ParseException,
                                     java.io.IOException
This method attempts to load the referenced statements. If unsuccessful will throw an error. Once loaded the statements are held in the class so they may be accessed at a later time.

Overrides:
loadReferencedStatements in class IncludePointer
Parameters:
includePaths - An list of URL in which to search for the referenced file
Throws:
ParseException - thrown if the file can not be properly loaded
java.io.IOException - thrown if file can not be accessed


Copyright © 2005-2009 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.