Package gov.nasa.pds.tools.validate
Class CrossLabelFileAreaReferenceChecker
- java.lang.Object
-
- gov.nasa.pds.tools.validate.CrossLabelFileAreaReferenceChecker
-
public class CrossLabelFileAreaReferenceChecker extends Object
-
-
Constructor Summary
Constructors Constructor Description CrossLabelFileAreaReferenceChecker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
add(String name, ValidationTarget target, boolean isObs)
static String
getOtherFilename(String name, ValidationTarget target)
static String
getOtherId(String name, ValidationTarget target)
static void
reset()
-
-
-
Method Detail
-
add
public static boolean add(String name, ValidationTarget target, boolean isObs) throws IOException, ParserConfigurationException, SAXException, URISyntaxException
- Parameters:
name
- - the file being referenced by the file areatarget
- - the label being validated- Returns:
- true if name and target are unique and only known references and false otherwise All of these exceptions should not happen because they are getting the LID from the target. Would not have made it this far if that could not have happened already, So, just pass them back to the called and let them handle it with their own generic exception handler/message.
- Throws:
IOException
ParserConfigurationException
SAXException
URISyntaxException
-
getOtherId
public static String getOtherId(String name, ValidationTarget target) throws URISyntaxException
- Throws:
URISyntaxException
-
getOtherFilename
public static String getOtherFilename(String name, ValidationTarget target) throws URISyntaxException
- Throws:
URISyntaxException
-
reset
public static void reset()
-
-