/** * 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); } }
/** * Returns the value. * * @throws SdpParseException * @return the value */ public String getValue() throws SdpParseException { if (emailAddress == null) return null; else { return emailAddress.getDisplayName(); } }
/** * Get the string encoded version of this object * * @since v1.0 */ public String encode() { return EMAIL_FIELD + emailAddress.encode() + Separators.NEWLINE; }