コード例 #1
0
 /**
  * Set hit format PUID.  Used by XML reader for IdentificationFile/FileFormatHit/PUID element
  */
 public void SetPUID(String value)
 {
     if (myHitFileFormat == null)
     {
         myHitFileFormat = new FileFormat();
     }
     myHitFileFormat.setAttributeValue("PUID", value);
 }
コード例 #2
0
 /**
  * Set hit format version.  Used by XML reader for IdentificationFile/FileFormatHit/Version element
  */
 public void SetVersion(String value)
 {
     if (myHitFileFormat == null)
     {
         myHitFileFormat = new FileFormat();
     }
     myHitFileFormat.setAttributeValue("Version", value);
 }
コード例 #3
0
 /**
  * Set hit format name.  Used by XML reader for IdentificationFile/FileFormatHit/Name element
  */
 public void SetName(String value)
 {
     //if necessary, this creates a new dummy File format
     if (myHitFileFormat == null)
     {
         myHitFileFormat = new FileFormat();
     }
     myHitFileFormat.setAttributeValue("Name", value);
 }
コード例 #4
0
 /**
  * Creates a new blank instance of fileFormatHit
  *
  * @param theFileFormat     The file format which has been identified
  * @param theType           The type of hit i.e. Positive/tentative
  * @param theSpecificity    Flag is set to true for Positive specific hits
  * @param theWarning        A warning associated with the hit
  */
 public FileFormatHit(SignatureFile.FileFormat theFileFormat, int theType, bool theSpecificity, string theWarning)
 {
     myHitFileFormat = theFileFormat;
     if (theType == AnalysisController.HIT_TYPE_POSITIVE_GENERIC_OR_SPECIFIC)
     {
         if (theSpecificity)
         {
             myHitType = AnalysisController.HIT_TYPE_POSITIVE_SPECIFIC;
         }
         else
         {
             myHitType = AnalysisController.HIT_TYPE_POSITIVE_GENERIC;
         }
     }
     else
     {
         myHitType = theType;
     }
     this.SetIdentificationWarning(theWarning);
 }
コード例 #5
0
		/** 
		* Set hit format PUID.  Used by XML reader for IdentificationFile/FileFormatHit/PUID element
		*/
		public void SetPUID(String value)
		{
			if (myHitFileFormat == null)
			{
				myHitFileFormat = new FileFormat();
			}
			myHitFileFormat.setAttributeValue("PUID", value);
		}
コード例 #6
0
		/** 
		* Set hit format version.  Used by XML reader for IdentificationFile/FileFormatHit/Version element
		*/
		public void SetVersion(String value)
		{
			if (myHitFileFormat == null)
			{
				myHitFileFormat = new FileFormat();
			}
			myHitFileFormat.setAttributeValue("Version", value);
		}
コード例 #7
0
		/** 
		* Set hit format name.  Used by XML reader for IdentificationFile/FileFormatHit/Name element
		*/
		public void SetName(String value)
		{
			//if necessary, this creates a new dummy File format
			if (myHitFileFormat == null)
			{
				myHitFileFormat = new FileFormat();
			}
			myHitFileFormat.setAttributeValue("Name", value);
		}
コード例 #8
0
		public void addFileFormat(FileFormat theFileFormat) { FileFormatList.Add(theFileFormat); }
コード例 #9
0
 public void addFileFormat(FileFormat theFileFormat)
 {
     FileFormatList.Add(theFileFormat);
 }
コード例 #10
0
		IList<FileFormat> formats = new List<FileFormat>(); //ArrayList();
		#endregion

		#region Public Methods
		/* setters */
		public void addFileFormat(FileFormat format) { formats.Add(format); }