public ParseInput(string rawFilePath, string outputDirectory, string outputFile, OutputFormat outputFormat, bool gzip, MetadataFormat outputMetadata, string s3url, string s3AccessKeyId, string s3SecretAccessKey, string bucketName, bool ignoreInstrumentErrors, bool noPeakPicking, bool verbose ) { RawFilePath = rawFilePath; var splittedPath = RawFilePath.Split('/'); RawFileName = splittedPath[splittedPath.Length - 1]; RawFileNameWithoutExtension = Path.GetFileNameWithoutExtension(RawFileName); OutputDirectory = outputDirectory; OutputFile = outputFile; OutputFormat = outputFormat; Gzip = gzip; OutputMetadata = outputMetadata; S3url = s3url; S3AccessKeyId = s3AccessKeyId; S3SecretAccessKey = s3SecretAccessKey; this.bucketName = bucketName; IgnoreInstrumentErrors = ignoreInstrumentErrors; NoPeakPicking = noPeakPicking; Verbose = verbose; if (S3url != null && S3AccessKeyId != null && S3SecretAccessKey != null && bucketName != null) { InitializeS3Bucket(); } if (OutputDirectory == null && OutputFile != null) { OutputDirectory = Path.GetDirectoryName(OutputFile); } }
/// <summary> /// Constructor /// </summary> public MetadataFormatRepository() { MetadataFormat rdf = new MetadataFormat("rdf", "", "", ""); _dictionary = new Dictionary <string, MetadataFormat>(); _dictionary.Add("rdf", rdf); }
/// <summary> /// Constructor /// </summary> public MetadataFormatRepository() { MetadataFormat xml = new MetadataFormat("XML", "", "", ""); _dictionary = new Dictionary <string, MetadataFormat>(); _dictionary.Add("XML", xml); }
/// <summary> /// Create a new Metadata object with all properties stored in the XML format. /// </summary> /// <remarks> /// None of the properties are checked for correctness. This is the "master" /// constructor that all other constructors call /// </remarks> /// <param name="path">String to the metadata resource</param> /// <param name="type">See Metadata.Type</param> /// <param name="format">See Metadata.Format</param> /// <param name="version">string documenting the version of the xml schema</param> /// <param name="schema">string documenting the xml schema</param> private Metadata(string path, MetadataType type, MetadataFormat format, string version, string schema) { _path = path; Type = type; Format = format; Version = version; Schema = schema; }
public void SampleMetadataFormatRepository_GetByPrefix() { var expected = new MetadataFormat( "oai_dc", OaiNamespaces.OaiDcNamespace, OaiNamespaces.OaiDcSchema, OaiNamespaces.OaiDcSchemaLocation); var actual = _repository.GetMetadataFormat("oai_dc"); Assert.AreEqual(expected.Prefix, actual.Prefix); Assert.AreEqual(expected.Namespace, actual.Namespace); Assert.AreEqual(expected.Schema, actual.Schema); Assert.AreEqual(expected.SchemaLocation, actual.SchemaLocation); }
public ParseInput(string rawFilePath, string outputDirectory, OutputFormat outputFormat, bool gzip, MetadataFormat outputMetadata, bool excludeProfileData, string collection, string msRun, string subFolder) { RawFilePath = rawFilePath; var splittedPath = RawFilePath.Split('/'); RawFileName = splittedPath[splittedPath.Length - 1]; RawFileNameWithoutExtension = Path.GetFileNameWithoutExtension(RawFileName); OutputDirectory = outputDirectory; OutputFormat = outputFormat; Gzip = gzip; OutputMetadata = outputMetadata; ExcludeProfileData = excludeProfileData; Collection = collection; MsRun = msRun; SubFolder = subFolder; }
public ModuleBuilder( LLVMModuleRef module, TypeEnvironment typeSystem, NameMangler mangler, GCInterface gc, MetadataFormat metadata) { this.Module = module; this.TypeSystem = typeSystem; this.Mangler = mangler; this.GC = gc; this.Metadata = metadata; this.methodDecls = new Dictionary <IMethod, LLVMValueRef>(); this.fieldDecls = new Dictionary <IField, LLVMValueRef>(); this.importCache = new Dictionary <IType, LLVMTypeRef>(); this.fieldIndices = new Dictionary <IType, Dictionary <IField, int> >(); this.baseIndices = new Dictionary <IType, Dictionary <IType, int> >(); }
protected ODataSimpleMeta GetMetadata(Content content, string selfurl, MetadataFormat format, HttpContext httpContext) { if (format == MetadataFormat.Minimal) { return(new ODataSimpleMeta { Uri = selfurl, Type = content.ContentType.Name, }); } var snActions = ODataTools.GetActions(content, this.Request, httpContext).ToArray(); return(new ODataFullMeta { Uri = selfurl, Type = content.ContentType.Name, Actions = snActions.Where(a => a.CausesStateChange && a.IsODataOperation).Select(a => CreateOdataOperation(a, selfurl)).OrderBy(x => x.Title).ToArray(), Functions = snActions.Where(a => !a.CausesStateChange && a.IsODataOperation).Select(a => CreateOdataOperation(a, selfurl)).OrderBy(x => x.Title).ToArray(), }); }
protected ODataSimpleMeta GetMetadata(Content content, string selfurl, MetadataFormat format) { if (format == MetadataFormat.Minimal) { return(new ODataSimpleMeta { Uri = selfurl, Type = content.ContentType.Name, }); } var snActions = GetSnActions(content); //return new ODataFullMeta //{ // Uri = selfurl, // Type = content.ContentType.Name, // Actions = snActions.Where(a => a.CausesStateChange && a.IsODataOperation).Select(a => new ODataOperation // { // Title = SNSR.GetString(a.Text), // Name = a.Name, // Target = string.Concat(selfurl, "/", a.Name), // Forbidden = a.Forbidden // }).OrderBy(x => x.Title).ToArray(), // Functions = snActions.Where(a => !a.CausesStateChange && a.IsODataOperation).Select(a => new ODataOperation // { // Title = SNSR.GetString(a.Text), // Name = a.Name, // Target = string.Concat(selfurl, "/", a.Name), // Forbidden = a.Forbidden // }).OrderBy(x => x.Title).ToArray(), //}; return(new ODataFullMeta { Uri = selfurl, Type = content.ContentType.Name, Actions = snActions.Where(a => a.CausesStateChange && a.IsODataOperation).Select(a => CreateOdataOperation(a, selfurl)).OrderBy(x => x.Title).ToArray(), Functions = snActions.Where(a => !a.CausesStateChange && a.IsODataOperation).Select(a => CreateOdataOperation(a, selfurl)).OrderBy(x => x.Title).ToArray(), }); }
public CsdlWriter(DocSet docs, string[] namespacesToExport, string baseUrl, string preexistingEdmxFile, MetadataFormat format = MetadataFormat.Default, bool sortOutput = false) : base(docs) { this.options = new CsdlWriterOptions() { Namespaces = namespacesToExport, BaseUrl = baseUrl, SourceMetadataPath = preexistingEdmxFile, Formats = format, Sort = sortOutput }; }
internal Metadata(string path, MetadataType type, MetadataFormat format, string version, string schema) { _path = path; Type = type; Format = format; Version = version; Schema = schema; State = MetadataState.Initialized; }
internal Metadata(string path, MetadataType type, MetadataFormat format) : this(path, type, format, null, null) { }
/// <summary> /// Get the Course Metadata in XML Format. /// </summary> /// <param name="courseId">Unique Identifier for the course</param> /// <param name="scope">Defines the scope of the data to return: Course or Activity level</param> /// <param name="format">Defines the amount of data to return: Summary or Detailed</param> /// <returns>XML string representing the Metadata</returns> public string GetMetadata(string courseId, MetadataScope scope, MetadataFormat format) { return GetMetadata(courseId, Int32.MinValue, scope, format); }
/// <summary> /// Get the Course Metadata in XML Format /// </summary> /// <param name="courseId">Unique Identifier for the course</param> /// <param name="versionId">Version of the specified course</param> /// <param name="scope">Defines the scope of the data to return: Course or Activity level</param> /// <param name="format">Defines the amount of data to return: Summary or Detailed</param> /// <returns>XML string representing the Metadata</returns> public string GetMetadata(string courseId, int versionId, MetadataScope scope, MetadataFormat format) { ServiceRequest request = new ServiceRequest(configuration); request.Parameters.Add("courseid", courseId); if (versionId != Int32.MinValue) { request.Parameters.Add("versionid", versionId); } request.Parameters.Add("scope", Enum.GetName(scope.GetType(), scope).ToLower()); request.Parameters.Add("format", Enum.GetName(format.GetType(), format).ToLower()); XmlDocument response = request.CallService("rustici.course.getMetadata"); // Return the subset of the xml starting with the top <object> return response.ChildNodes[1].InnerXml; }
/// <summary> /// Get the Course Metadata in XML Format. /// </summary> /// <param name="courseId">Unique Identifier for the course</param> /// <param name="scope">Defines the scope of the data to return: Course or Activity level</param> /// <param name="format">Defines the amount of data to return: Summary or Detailed</param> /// <returns>XML string representing the Metadata</returns> public string GetMetadata(string courseId, MetadataScope scope, MetadataFormat format) { return(GetMetadata(courseId, Int32.MinValue, scope, format)); }
/// <summary> /// Get the Course Metadata in XML Format /// </summary> /// <param name="courseId">Unique Identifier for the course</param> /// <param name="versionId">Version of the specified course</param> /// <param name="scope">Defines the scope of the data to return: Course or Activity level</param> /// <param name="format">Defines the amount of data to return: Summary or Detailed</param> /// <returns>XML string representing the Metadata</returns> public string GetMetadata(string courseId, int versionId, MetadataScope scope, MetadataFormat format) { ServiceRequest request = new ServiceRequest(configuration); request.Parameters.Add("courseid", courseId); if (versionId != Int32.MinValue) { request.Parameters.Add("versionid", versionId); } request.Parameters.Add("scope", Enum.GetName(scope.GetType(), scope).ToLower()); request.Parameters.Add("format", Enum.GetName(format.GetType(), format).ToLower()); XmlDocument response = request.CallService("rustici.course.getMetadata"); // Return the subset of the xml starting with the top <object> return(response.ChildNodes[1].InnerXml); }
/// <summary> /// Create a new Metadata object with a few common properties. /// </summary> /// <remarks> /// None of the properties are checked for correctness. This is used externally when /// building a theme list stored in a Microsoft Access database (version 2.0 theme list) /// </remarks> /// <param name="path">String to the metadata resource</param> /// <param name="type">See Metadata.Type</param> /// <param name="format">See Metadata.Format</param> internal Metadata(string path, MetadataType type, MetadataFormat format) : this(path, type, format, null, null) { }