Ejemplo n.º 1
0
        public FutureDocumentFromUri(MashupParseContext context)
        {
            XMLTagReader xMLTagReader = context.NewTagReader(FutureDocumentFromUri.GetXMLTag());

            this.documentUri = new Uri(context.GetRequiredAttribute(FutureDocumentFromUri.FetchedDocumentUriAttr));
            this.pageNumber  = context.GetRequiredAttributeInt(FutureDocumentFromUri.FetchedDocumentPageNumberAttr);
            xMLTagReader.SkipAllSubTags();
        }
Ejemplo n.º 2
0
        public StrongHash(MashupParseContext context)
        {
            XMLTagReader xMLTagReader = context.NewTagReader("StrongHash");

            this.hashValue = Convert.FromBase64String(context.GetRequiredAttribute("Value"));
            this.ComputeShortHashValue();
            xMLTagReader.SkipAllSubTags();
        }
		public FutureDocumentFromFilesystem(MashupParseContext context, string pathBase)
		{
			XMLTagReader xMLTagReader = context.NewTagReader(FutureDocumentFromFilesystem.GetXMLTag());
			string requiredAttribute = context.GetRequiredAttribute(FutureDocumentFromFilesystem.FilenameAttr);
			this.path = Path.Combine(pathBase, requiredAttribute);
			this.pageNumber = context.GetRequiredAttributeInt(FutureDocumentFromFilesystem.PageNumberAttr);
			xMLTagReader.SkipAllSubTags();
			this.ValidateFilename();
		}
Ejemplo n.º 4
0
        public FutureDocumentFromFilesystem(MashupParseContext context, string pathBase)
        {
            XMLTagReader xMLTagReader      = context.NewTagReader(FutureDocumentFromFilesystem.GetXMLTag());
            string       requiredAttribute = context.GetRequiredAttribute(FutureDocumentFromFilesystem.FilenameAttr);

            this.path       = Path.Combine(pathBase, requiredAttribute);
            this.pageNumber = context.GetRequiredAttributeInt(FutureDocumentFromFilesystem.PageNumberAttr);
            xMLTagReader.SkipAllSubTags();
            this.ValidateFilename();
        }
		public FutureDocumentFromUri(MashupParseContext context)
		{
			XMLTagReader xMLTagReader = context.NewTagReader(FutureDocumentFromUri.GetXMLTag());
			this.documentUri = new Uri(context.GetRequiredAttribute(FutureDocumentFromUri.FetchedDocumentUriAttr));
			this.pageNumber = context.GetRequiredAttributeInt(FutureDocumentFromUri.FetchedDocumentPageNumberAttr);
			xMLTagReader.SkipAllSubTags();
		}
Ejemplo n.º 6
0
		public StrongHash(MashupParseContext context)
		{
			XMLTagReader xMLTagReader = context.NewTagReader("StrongHash");
			this.hashValue = Convert.FromBase64String(context.GetRequiredAttribute("Value"));
			this.ComputeShortHashValue();
			xMLTagReader.SkipAllSubTags();
		}