Ejemplo n.º 1
0
 private void SetDefaultMetaMetadatas()
 {
     if (META_METADATA_REPOSITORY != null)
     {
         DocumentMetaMetadata      = META_METADATA_REPOSITORY.GetMMByName(DocumentParserTagNames.DocumentTag);
         PdfMetaMetadata           = META_METADATA_REPOSITORY.GetMMByName(DocumentParserTagNames.PdfTag);
         SearchMetaMetadata        = META_METADATA_REPOSITORY.GetMMByName(DocumentParserTagNames.SearchTag);
         ImageMetaMetadata         = META_METADATA_REPOSITORY.GetMMByName(DocumentParserTagNames.ImageTag);
         DebugMetaMetadata         = META_METADATA_REPOSITORY.GetMMByName(DocumentParserTagNames.DebugTag);
         ImageClippingMetaMetadata = META_METADATA_REPOSITORY.GetMMByName(DocumentParserTagNames.ImageClippingTag);
     }
 }
        public static String GetMdClassNameFromMmdOrNoChange(String mmdName,
                                                             MetaMetadataRepository repository, MmdCompilerService compilerService)
        {
            MetaMetadata mmd = repository.GetMMByName(mmdName);

            if (mmd == null)
            {
                return(mmdName);
            }
            else
            {
                MetadataClassDescriptor metadataClassDescriptor = mmd.MetadataClassDescriptor;
                if (compilerService != null)
                {
                    compilerService.AddCurrentClassDependency(metadataClassDescriptor);
                }
                return(metadataClassDescriptor.DescribedClassSimpleName);
            }
        }