Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
		/** 
		* 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);
		}
		/** 
		* 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);
		}
		/** 
		* 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);
		}
		public void addFileFormat(FileFormat theFileFormat) { FileFormatList.Add(theFileFormat); }
Example #9
0
 public void addFileFormat(FileFormat theFileFormat)
 {
     FileFormatList.Add(theFileFormat);
 }
		IList<FileFormat> formats = new List<FileFormat>(); //ArrayList();
		#endregion

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