public class DocumentsChecker extends Object
Constructor and Description |
---|
DocumentsChecker() |
Modifier and Type | Method and Description |
---|---|
ArrayList<String> |
getPossibleFileExtensions(String documentStandardId)
Given a document standard id, returns a list of possible file extensions associated with that
id.
|
boolean |
isMimeTypeCorrect(String documentRef,
String documentStandardId)
Given a document file name, check for the mime type matches in the defined default filename.
|
public ArrayList<String> getPossibleFileExtensions(String documentStandardId)
documentStandardId
- The document standard id as defined by the PDS Information Model
document.public boolean isMimeTypeCorrect(String documentRef, String documentStandardId)
documentRef
- The file name of the documentdocumentStandardId
- The document standard id as defined by the PDS Information Model
document.Copyright © 2022 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.