Class ContentTypeProvider

java.lang.Object
edu.ucsb.nceas.metacat.ContentTypeProvider

public class ContentTypeProvider extends Object
This class will figure out which content type it is for a given data file. First, from xml_relation to get all relative files to this data file. Then from xml_documents to get physical files. From physical file pull out the content type
  • Constructor Details

    • ContentTypeProvider

      public ContentTypeProvider(String docIdWithRevision)
      Constructor of ContentTypeProvider
  • Method Details

    • getContentType

      public String getContentType()
      Method to get content type
    • main

      public static void main(String[] argus)