Example #1
0
  /**
   * Returns Phone object with the specified value.
   *
   * @param value the string containing the description.
   * @return Phone
   */
  public Phone createPhone(String value) {
    PhoneField phoneImpl = new PhoneField();
    try {

      phoneImpl.setValue(value);

    } catch (SdpException s) {
      s.printStackTrace();
    }
    return phoneImpl;
  }
 @Override
 public void parse(String field, Data data) {
   if (field.equals("(   )   -")) return;
   super.parse(field, data);
 }