Package net.sourceforge.cardme.vcard.types

Examples of net.sourceforge.cardme.vcard.types.SortStringType


    categories.addCategory("Category 3");
    vcard.setCategories(categories);
   
    vcard.setSecurityClass(new ClassType("Public"));
    vcard.setProdId(new ProdIdType("31e78c0d-fb07-479d-b6af-95a9a3f2916f"));
    vcard.setSortString(new SortStringType("JOHN"));
   
    vcard.setMailer(new MailerType("Mozilla Thunderbird"));
    vcard.setTitle(new TitleType("Generic Accountant"));
    vcard.setRole(new RoleType("Counting Money"));
   
View Full Code Here


   * @param vcard
   * @throws VCardParseException
   */
  private void parseSortStringType(String group, String value, List<ParameterType> paramTypeList, VCardImpl vcard) throws VCardParseException {
    try {
      SortStringType sortStringType = new SortStringType();
      parseParamTypes(sortStringType, paramTypeList, value, VCardTypeName.SORT_STRING);
     
      if(sortStringType.isQuotedPrintable()) {
        value = decodeQuotedPrintableValue(sortStringType, value);
      }
     
      if(group != null) {
        sortStringType.setGroup(group);
      }
     
      sortStringType.setSortString(VCardUtils.unescapeString(value));
      vcard.setSortString(sortStringType);
    }
    catch(Exception ex) {
      throw new VCardParseException("SortStringType ("+VCardTypeName.SORT_STRING.getType()+") ["+ex.getClass().getName()+"] "+ex.getMessage(), ex);
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.cardme.vcard.types.SortStringType

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.