Exemple #1
0
  /**
   * Set the value.
   *
   * @param value to set
   * @throws SdpException if the value is null
   */
  public void setValue(String value) throws SdpException {
    if (value == null) throw new SdpException("The value is null");
    else {

      emailAddress.setDisplayName(value);
    }
  }
Exemple #2
0
 /**
  * Returns the value.
  *
  * @throws SdpParseException
  * @return the value
  */
 public String getValue() throws SdpParseException {
   if (emailAddress == null) return null;
   else {
     return emailAddress.getDisplayName();
   }
 }
Exemple #3
0
 /**
  * Get the string encoded version of this object
  *
  * @since v1.0
  */
 public String encode() {
   return EMAIL_FIELD + emailAddress.encode() + Separators.NEWLINE;
 }