Beispiel #1
0
 @Override
 public Pipeable<U> jerialize(Recurser<T, U> recurser, DSL<T, U> dsl, Card domain)
     throws JerializerException {
   ObjectDSL<T, U> objectDSL = dsl.seeObject();
   objectDSL.seeList(
       "additionalName",
       new RefImpl(recurser.seeCustomRefList(dsl, domain.getAdditionalNameRef(), String.class)));
   objectDSL.seeCustom(
       "adr", new RefImpl(recurser.seeCustom(dsl, domain.getAdrRef(), AddressContainer.class)));
   objectDSL.seeString("bday", domain.getBdayRef());
   objectDSL.seeCustom(
       "email",
       new RefImpl(
           recurser.seeCustomMap(
               dsl, domain.getEmailRef(), net.exathunk.jereal.base.core.JThing.class)));
   objectDSL.seeString("familyName", domain.getFamilyNameRef());
   objectDSL.seeString("fn", domain.getFnRef());
   objectDSL.seeCustom(
       "geo", new RefImpl(recurser.seeCustom(dsl, domain.getGeoRef(), GeoContainer.class)));
   objectDSL.seeString("givenName", domain.getGivenNameRef());
   objectDSL.seeList(
       "honorificPrefix",
       new RefImpl(recurser.seeCustomRefList(dsl, domain.getHonorificPrefixRef(), String.class)));
   objectDSL.seeList(
       "honorificSuffix",
       new RefImpl(recurser.seeCustomRefList(dsl, domain.getHonorificSuffixRef(), String.class)));
   objectDSL.seeString("logo", domain.getLogoRef());
   objectDSL.seeString("nickname", domain.getNicknameRef());
   objectDSL.seeCustom(
       "org",
       new RefImpl(
           recurser.seeCustomMap(
               dsl, domain.getOrgRef(), net.exathunk.jereal.base.core.JThing.class)));
   objectDSL.seeString("photo", domain.getPhotoRef());
   objectDSL.seeString("role", domain.getRoleRef());
   objectDSL.seeString("sound", domain.getSoundRef());
   objectDSL.seeCustom(
       "tel",
       new RefImpl(
           recurser.seeCustomMap(
               dsl, domain.getTelRef(), net.exathunk.jereal.base.core.JThing.class)));
   objectDSL.seeString("title", domain.getTitleRef());
   objectDSL.seeString("tz", domain.getTzRef());
   objectDSL.seeString("url", domain.getUrlRef());
   return objectDSL;
 }
Beispiel #2
0
 @Override
 public <A extends PushableContext<A, B>, B extends Questionable> Pipeable<B> acceptDSL(
     DSL<A, B> dsl) {
   return dsl.seeLong(this);
 }