public void setAttributeValue(String name, String value)
 {
     if (name.Equals("Version"))
     {
         setVersion(value);
     }
     else if (name.Equals("DateCreated"))
     {
         setDateCreated(value);
     }
     else
     {
         MessageDisplay.UnknownAttributeWarning(name, this.GetElementName());
     }
 }
Esempio n. 2
0
 public void setAttributeValue(string name, String value)
 {
     if (name.Equals("ID"))
     {
         setID(value);
     }
     else if (name.Equals("Specificity"))
     {
         setSpecificity(value);
     }
     else
     {
         MessageDisplay.UnknownAttributeWarning(name, this.GetElementName());
     }
 }
Esempio n. 3
0
 //public void setMaxOffset( String theMaxOffset ) { this.MaxOffset = Integer.parseInt(theMaxOffset); }
 public void setAttributeValue(string name, string value)
 {
     if (name.Equals("Reference"))
     {
         setReference(value);
     }
     else if (name.Equals("Endianness"))
     {
         setEndianness(value);
     }
     else
     {
         MessageDisplay.UnknownAttributeWarning(name, this.GetElementName());
     }
 }
Esempio n. 4
0
 /** Respond to an XML attribute
  * @param theName attribute name
  * @param theValue attribute value
  */
 public void setAttributeValue(String theName, String theValue)
 {
     if (theName.Equals("Byte"))
     {
         try
         {
             myShiftByte = Convert.ToInt32(theValue);                     //Integer.parseInt(theValue, 16);
         }
         catch (Exception)
         {
         }
     }
     else
     {
         MessageDisplay.UnknownAttributeWarning(theName, this.GetElementName());
     }
 }
Esempio n. 5
0
 public void setAttributeValue(string name, string value)
 {
     if (name.Equals("Position"))
     {
         setPosition(Convert.ToInt32(value));                 //Integer.parseInt(value));
     }
     else if (name.Equals("MinOffset"))
     {
         setMinOffset(Convert.ToInt32(value));                 //(Integer.parseInt(value));
     }
     else if (name.Equals("MaxOffset"))
     {
         setMaxOffset(Convert.ToInt32(value));                 //(Integer.parseInt(value));
     }
     else
     {
         MessageDisplay.UnknownAttributeWarning(name, this.GetElementName());
     }
 }
Esempio n. 6
0
 public void setAttributeValue(string theName, string theValue)
 {
     if (theName.Equals(ID_ATTRIBUTE))
     {
         this.identifier = Convert.ToInt32(theValue);                 //Integer.parseInt(theValue);
     }
     else if (theName.Equals(NAME_ATTRIBUTE))
     {
         this.name = theValue;
     }
     else if (theName.Equals(VERSION_ATTRIBUTE))
     {
         this.version = theValue;
     }
     else if (theName.Equals(PUID_ATTRIBUTE))
     {
         this.puid = theValue;
     }
     else
     {
         MessageDisplay.UnknownAttributeWarning(name, this.GetElementName());
     }
 }
Esempio n. 7
0
 public virtual void SetAttributeValue(string name, string value)
 {
     MessageDisplay.UnknownAttributeWarning(name, this.GetElementName());
 }