gov.nasa.pds.tools.label
Class IncludePointer
java.lang.Object
gov.nasa.pds.tools.label.Statement
gov.nasa.pds.tools.label.PointerStatement
gov.nasa.pds.tools.label.ExternalPointer
gov.nasa.pds.tools.label.IncludePointer
- All Implemented Interfaces:
- PointerType, Status, java.lang.Comparable
public class IncludePointer
- extends ExternalPointer
- implements PointerType, Status
This class represents a pointer that is a set of external statements that can and should
be included in label containing this statement when performing validation.
- Version:
- $Revision$
- Author:
- pramirez
Constructor Summary |
IncludePointer(int lineNumber,
java.lang.String identifier,
Value value)
Constructs a pointer that can be resolved to a set of statements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncludePointer
public IncludePointer(int lineNumber,
java.lang.String identifier,
Value value)
- Constructs a pointer that can be resolved to a set of statements.
- Parameters:
lineNumber
- of statementidentifier
- of statmentvalue
- assigned to statment
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.
- 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
getStatements
public java.util.List getStatements()
- Retrieves the list of statements pointed to by this structure pointer
- Returns:
- external list of statements
isLoaded
public boolean isLoaded()
- Indicates whether or not the statments pointed to have been loaded.
- Returns:
- flag indicating load status
getLoadStatus
public java.lang.String getLoadStatus()
getNumErrors
public int getNumErrors()
getNumWarnings
public int getNumWarnings()
Copyright © 2005-2007 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.