Package com.google.code.lightssh.project.contact.entity

Examples of com.google.code.lightssh.project.contact.entity.ContactMechanism


  private final String TELEPHONE_NUMBER = "telephonenumber";
 
  @SuppressWarnings("rawtypes")
  public Object convertFromString(Map context, String[] values, Class toClass){
    if( values == null || values[0] == null || CONTACT_MECHANISM.equals(values[0]))
      return new ContactMechanism();
    else if( POSTAL_ADDRESS.equals(values[0]) )
      return new PostalAddress();
    else if( TELEPHONE_NUMBER.equals(values[0]) )
      return new TelephoneNumber();
   
    return new ContactMechanism();
  }
View Full Code Here

TOP

Related Classes of com.google.code.lightssh.project.contact.entity.ContactMechanism

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.