コード例 #1
0
        /// <summary>
        /// Create an object using the contents of the corresponding MzIdentML object
        /// </summary>
        /// <param name="sd"></param>
        /// <param name="idata"></param>
        public SearchDatabaseInfo(SearchDatabaseType sd, IdentDataObj idata)
            : base(sd, idata)
        {
            Id                            = sd.id;
            Name                          = sd.name;
            Version                       = sd.version;
            _releaseDate                  = sd.releaseDate;
            ReleaseDateSpecified          = sd.releaseDateSpecified;
            _numDatabaseSequences         = sd.numDatabaseSequences;
            NumDatabaseSequencesSpecified = sd.numDatabaseSequencesSpecified;
            _numResidues                  = sd.numResidues;
            NumResiduesSpecified          = sd.numResiduesSpecified;
            ExternalFormatDocumentation   = sd.ExternalFormatDocumentation;
            Location                      = sd.location;

            _databaseName = null;
            _fileFormat   = null;

            if (sd.DatabaseName != null)
            {
                _databaseName = new ParamObj(sd.DatabaseName, IdentData);
            }
            if (sd.FileFormat != null)
            {
                _fileFormat = new FileFormatInfo(sd.FileFormat, IdentData);
            }
        }
コード例 #2
0
        /// <summary>
        ///     Constructor
        /// </summary>
        public SourceFileInfo()
        {
            Id   = null;
            Name = null;
            ExternalFormatDocumentation = null;
            Location = null;

            _fileFormat = null;
        }
コード例 #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        public SpectraDataObj()
        {
            Id   = null;
            Name = null;
            ExternalFormatDocumentation = null;
            Location = null;

            _spectrumIDFormat = null;
            _fileFormat       = null;
        }
コード例 #4
0
        /// <summary>
        ///     Create an object using the contents of the corresponding MzIdentML object
        /// </summary>
        /// <param name="sf"></param>
        /// <param name="idata"></param>
        public SourceFileInfo(SourceFileType sf, IdentDataObj idata)
            : base(sf, idata)
        {
            Id   = sf.id;
            Name = sf.name;
            ExternalFormatDocumentation = sf.ExternalFormatDocumentation;
            Location = sf.location;

            _fileFormat = null;

            if (sf.FileFormat != null)
            {
                _fileFormat = new FileFormatInfo(sf.FileFormat, IdentData);
            }
        }
コード例 #5
0
        /// <summary>
        /// Constructor
        /// </summary>
        public SearchDatabaseInfo()
        {
            Id                            = null;
            Name                          = null;
            Version                       = null;
            _releaseDate                  = DateTime.Now;
            ReleaseDateSpecified          = false;
            _numDatabaseSequences         = -1;
            NumDatabaseSequencesSpecified = false;
            _numResidues                  = -1;
            NumResiduesSpecified          = false;
            ExternalFormatDocumentation   = null;
            Location                      = null;

            _databaseName = null;
            _fileFormat   = null;
        }
コード例 #6
0
        /// <summary>
        /// Create an object using the contents of the corresponding MzIdentML object
        /// </summary>
        /// <param name="sd"></param>
        /// <param name="idata"></param>
        public SpectraDataObj(SpectraDataType sd, IdentDataObj idata)
            : base(idata)
        {
            Id   = sd.id;
            Name = sd.name;
            ExternalFormatDocumentation = sd.ExternalFormatDocumentation;
            Location = sd.location;

            _spectrumIDFormat = null;
            _fileFormat       = null;

            if (sd.SpectrumIDFormat != null)
            {
                _spectrumIDFormat = new SpectrumIDFormatObj(sd.SpectrumIDFormat, IdentData);
            }
            if (sd.FileFormat != null)
            {
                _fileFormat = new FileFormatInfo(sd.FileFormat, IdentData);
            }
        }