Class NonXMLMetadataHandler
java.lang.Object
edu.ucsb.nceas.metacat.object.handler.NonXMLMetadataHandler
- Direct Known Subclasses:
JsonLDHandler
The abstract class to validate non-xml meta data objects
- Author:
- tao
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
validate
(InputStream source) The abstract method to validate the non-xml object
-
Constructor Details
-
NonXMLMetadataHandler
public NonXMLMetadataHandler()
-
-
Method Details
-
validate
public abstract boolean validate(InputStream source) throws org.dataone.service.exceptions.InvalidRequest The abstract method to validate the non-xml object- Parameters:
source
- the input stream contains the content of the meta data object- Returns:
- true if the content is valid; false otherwise.
- Throws:
org.dataone.service.exceptions.InvalidRequest
- when the content is not valid
-