gov.nasa.pds.tools.label.parser
Interface LabelParser

All Known Implementing Classes:
DefaultLabelParser

public interface LabelParser

Version:
$Revision: 4967 $
Author:
pramirez, jagander

Method Summary
 java.lang.String getODLVersion()
          Returns the version of ODL that this parser is compliant with.
 java.lang.String getPDSVersion()
          Returns the version of the PDS specification that this parser is compliant with.
 Label parseLabel(java.io.File file, boolean forceParse)
           
 Label parseLabel(java.net.URL url, boolean forceParse)
          Parses the given file
 Label parsePartial(java.io.File file, Label parent)
           
 Label parsePartial(java.net.URL url, Label parent)
          Parses the given partial label.
 

Method Detail

parseLabel

Label parseLabel(java.net.URL url,
                 boolean forceParse)
                 throws LabelParserException,
                        java.io.IOException
Parses the given file

Parameters:
url - File to
Returns:
Label representation of the file
Throws:
LabelParserException - - If any syntactic errors are encountered. All errors will be written to the Logger.
java.io.IOException

parseLabel

Label parseLabel(java.io.File file,
                 boolean forceParse)
                 throws LabelParserException,
                        java.io.IOException
Throws:
LabelParserException
java.io.IOException

parsePartial

Label parsePartial(java.net.URL url,
                   Label parent)
                   throws LabelParserException,
                          java.io.IOException
Parses the given partial label.

Parameters:
url -
Returns:
Label representation of the file
Throws:
LabelParserException
java.io.IOException

parsePartial

Label parsePartial(java.io.File file,
                   Label parent)
                   throws LabelParserException,
                          java.io.IOException
Throws:
LabelParserException
java.io.IOException

getPDSVersion

java.lang.String getPDSVersion()
Returns the version of the PDS specification that this parser is compliant with.

Returns:
The PDS version string

getODLVersion

java.lang.String getODLVersion()
Returns the version of ODL that this parser is compliant with.

Returns:
The ODL version string


Copyright © 2005-2009 Planetary Data System. All Rights Reserved.