Examples of NType


Examples of com.sun.tools.internal.xjc.model.nav.NType

        return getProperty().ref().get(0);
    }

    public NType getContentInMemoryType() {
        if(getProperty().getAdapter()==null) {
            NType itemType = getContentType().getType();
            if(!property.isCollection())
                return itemType;

            return NavigatorImpl.createParameterizedType(List.class,itemType);
        } else {
View Full Code Here

Examples of com.sun.tools.internal.xjc.model.nav.NType

        this.outline = outline;
    }

    public JType getTypeClass() {
        CAdapter a = typeUse.getAdapterUse();
        NType nt;
        if(a!=null)
            nt = a.customType;
        else
            nt = typeUse.getInfo().getType();

        JType jt = nt.toType(outline,EXPOSED);

        JPrimitiveType prim = jt.boxify().getPrimitiveType();
        if(!typeUse.isCollection() && prim!=null)
            jt = prim;
View Full Code Here

Examples of com.sun.tools.xjc.model.nav.NType

        return getProperty().ref().get(0);
    }

    public NType getContentInMemoryType() {
        if(getProperty().getAdapter()==null) {
            NType itemType = getContentType().getType();
            if(!property.isCollection())
                return itemType;

            return NavigatorImpl.createParameterizedType(List.class,itemType);
        } else {
View Full Code Here

Examples of com.sun.tools.xjc.model.nav.NType

        this.outline = outline;
    }

    public JType getTypeClass() {
        CAdapter a = typeUse.getAdapterUse();
        NType nt;
        if(a!=null)
            nt = a.customType;
        else
            nt = typeUse.getInfo().getType();

        JType jt = nt.toType(outline,EXPOSED);

        JPrimitiveType prim = jt.boxify().getPrimitiveType();
        if(!typeUse.isCollection() && prim!=null)
            jt = prim;
View Full Code Here

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

   
    SourceType source = new SourceType();
    source.setSource("Whatever");
    vcard.setSource(source);
   
    NType n = new NType();
    n.setEncodingType(EncodingType.QUOTED_PRINTABLE);
    n.setCharset(Charset.forName("UTF-8"));
    n.setLanguage(LanguageType.EN);
    n.setFamilyName("DÖe");
//    n.setFamilyName("Doe");
    n.setGivenName("John");
    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"));
View Full Code Here

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

  }
 
  @Test
  public void testBuildNType() throws VCardBuildException {
    VCardImpl vcard = getSimpleVCard();
    NType n = new NType();
    n.setFamilyName("Doe");
    n.setGivenName("John");
    n.addAdditionalName("Johny");
    n.addHonorificPrefix("Mr.");
    n.addHonorificSuffix("I");
    vcard.setN(n);
   
    VCardWriter vcardWriter = new VCardWriter();
    vcardWriter.setOutputVersion(VCardVersion.V3_0);
    vcardWriter.setCompatibilityMode(CompatibilityMode.RFC2426);
View Full Code Here

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

 
  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.NType

 
  @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.NType

 
  @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.NType

 
  @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
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.