1 31 32 package org.opencms.search.documents; 33 34 import org.opencms.file.CmsObject; 35 import org.opencms.search.A_CmsIndexResource; 36 import org.opencms.search.CmsIndexException; 37 import org.opencms.search.extractors.CmsExtractionResult; 38 import org.opencms.search.extractors.I_CmsExtractionResult; 39 40 55 public class CmsDocumentGeneric extends A_CmsVfsDocument { 56 57 62 public CmsDocumentGeneric(String name) { 63 64 super(name); 65 } 66 67 72 public I_CmsExtractionResult extractContent(CmsObject cms, A_CmsIndexResource resource, String language) 73 throws CmsIndexException { 74 75 if (resource == null) { 76 throw new CmsIndexException(Messages.get().container(Messages.ERR_NO_RAW_CONTENT_1, language)); 77 } 78 return new CmsExtractionResult(""); 80 } 81 } | Popular Tags |