示例#1
0
 ///
 ///	 * <param name="typ">
 ///	 *            the single contacttype to set this contact to </param>
 ///
 public virtual void addContactTypes(EnumContactType typ)
 {
     if (typ != null)
     {
         appendAttribute(AttributeName.CONTACTTYPES, typ.getName(), null, " ", true);
     }
 }
示例#2
0
 ///
 ///	 * <param name="typ">
 ///	 *            the single contacttype to set this contact to </param>
 ///
 public virtual void setContactTypes(EnumContactType typ)
 {
     if (typ == null)
     {
         removeAttribute(AttributeName.CONTACTTYPES);
     }
     else
     {
         setAttribute(AttributeName.CONTACTTYPES, typ.getName(), null);
     }
 }