Examples of FNType


Examples of com.odiago.flumebase.lang.FnType

  /** The function instance itself. */
  private final Function mFunc;

  public FnSymbol(String name, Function func, Type retType, List<Type> argTypes,
      List<Type> varArgTypes) {
    super(name, new FnType(retType, argTypes, varArgTypes));
    mFunc = func;
    mRetType = retType;
    mArgTypes = argTypes;
    mVarArgTypes = varArgTypes;
  }
View Full Code Here

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

    n.addHonorificPrefix("Mr.");
    n.addHonorificSuffix("I");
    n.addAdditionalName("Johny");
    vcard.setN(n);
   
    FNType fn = new FNType();
    fn.setFormattedName("John \"Johny\" Doe");
    fn.setCharset(Charset.forName("UTF-8"));
    fn.setLanguage(LanguageType.EN);
    vcard.setFN(fn);
   
    NicknameType nicknames = new NicknameType();
    nicknames.addNickname("Johny");
    nicknames.addNickname("JayJay");
View Full Code Here

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

  }
 
  @Test
  public void testBuildFNType() throws VCardBuildException {
    VCardImpl vcard = getSimpleVCard();
    FNType fn = new FNType("John \"Johny\" Doe");
    fn.setLanguage(LanguageType.EN);
    vcard.setFN(fn);
   
    VCardWriter vcardWriter = new VCardWriter();
    vcardWriter.setOutputVersion(VCardVersion.V3_0);
    vcardWriter.setCompatibilityMode(CompatibilityMode.RFC2426);
View Full Code Here

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

  private VCardImpl getSimpleVCard()
  {
    VCardImpl vcard = new VCardImpl();
    vcard.setVersion(new VersionType(VCardVersion.V3_0));
    vcard.setN(new NType("Doe", "John"));
    vcard.setFN(new FNType("John \"Johny\" Doe"));
    return vcard;
  }
View Full Code Here

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

  @Test
  public void testForceEncodeQuotedPrintableSpaces_1() throws VCardBuildException {
    VCardImpl vcard = new VCardImpl();
    vcard.setVersion(new VersionType(VCardVersion.V3_0));
    vcard.setN(new NType("Doe", "John"));
    vcard.setFN(new FNType("John Doe"));
   
    NoteType note = new NoteType("This is a note with normal text.");
    note.setEncodingType(EncodingType.QUOTED_PRINTABLE);
    vcard.addNote(note);
   
View Full Code Here

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

  @Test
  public void testForceEncodeQuotedPrintableSpaces_2() throws VCardBuildException {
    VCardImpl vcard = new VCardImpl();
    vcard.setVersion(new VersionType(VCardVersion.V3_0));
    vcard.setN(new NType("Doe", "John"));
    vcard.setFN(new FNType("John Doe"));
   
    NoteType note = new NoteType("This is a note with normal text.");
    note.setEncodingType(EncodingType.QUOTED_PRINTABLE);
    vcard.addNote(note);
   
View Full Code Here

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

  @Test
  public void testForceEncodeQuotedPrintableSpaces_3() throws VCardBuildException {
    VCardImpl vcard = new VCardImpl();
    vcard.setVersion(new VersionType(VCardVersion.V3_0));
    vcard.setN(new NType("Doe", "John"));
    vcard.setFN(new FNType("John Doe"));
   
    NoteType note = new NoteType("新中西里杨阿姨 some spaces ");
    note.setEncodingType(EncodingType.QUOTED_PRINTABLE);
    vcard.addNote(note);
   
View Full Code Here

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

  @Test
  public void testForceEncodeQuotedPrintableSpaces_4() throws VCardBuildException {
    VCardImpl vcard = new VCardImpl();
    vcard.setVersion(new VersionType(VCardVersion.V3_0));
    vcard.setN(new NType("Doe", "John"));
    vcard.setFN(new FNType("John Doe"));
   
    NoteType note = new NoteType("新中西里杨阿姨 some spaces ");
    note.setEncodingType(EncodingType.QUOTED_PRINTABLE);
    vcard.addNote(note);
   
View Full Code Here

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

   * @param vcard
   * @throws VCardParseException
   */
  private void parseFnType(String group, String value, List<ParameterType> paramTypeList, VCardImpl vcard) throws VCardParseException {
    try {
      FNType fnType = new FNType();
      parseParamTypes(fnType, paramTypeList, value, VCardTypeName.FN);
     
      if(fnType.isQuotedPrintable()) {
        value = decodeQuotedPrintableValue(fnType, value);
      }

      fnType.setFormattedName(VCardUtils.unescapeString(value));
     
      if(group != null) {
        fnType.setGroup(group);
      }
     
      vcard.setFN(fnType);
    }
    catch(Exception ex) {
View Full Code Here

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

    return result;
  }

  protected void appyBasicName(VCardImpl vcard) {
    vcard.setN(new NType("User", "Example"));
    vcard.setFN(new FNType("User, Example"));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.