Class NonXMLMetadataHandler

java.lang.Object
edu.ucsb.nceas.metacat.object.handler.NonXMLMetadataHandler
Direct Known Subclasses:
JsonLDHandler

public abstract class NonXMLMetadataHandler extends Object
The abstract class to validate non-xml meta data objects
Author:
tao
  • 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