コード例 #1
0
        public Image ConstructImage(ParsedUri location)
        {
            MetaMetadata metaMetadata = GetImageMM(location);
            Image        result       = null;

            if (metaMetadata != null)
            {
                result          = (Image)metaMetadata.ConstructMetadata(this.MetadataTScope);
                result.Location = new MetadataParsedURL(location);
            }
            return(result);
        }
コード例 #2
0
        public Document ConstructDocument(ParsedUri location, bool isImage)
        {
            // if (location.IsImage) return constructImage(location);
            if (isImage)
            {
                return(ConstructImage(location));
            }
            MetaMetadata mmd    = GetDocumentMM(location);
            Document     result = mmd.ConstructMetadata(MetadataTScope) as Document;

            if (result != null)
            {
                result.Location = new MetadataParsedURL(location);
            }
            return(result);
        }