示例#1
0
 public final String modelToXmlString() {
   TiersInformationsType object = (TiersInformationsType) this.modelToXml();
   XmlOptions opts = new XmlOptions();
   opts.setSavePrettyPrint();
   opts.setSavePrettyPrintIndent(4);
   opts.setUseDefaultNamespace();
   opts.setCharacterEncoding("UTF-8");
   return object.xmlText(opts);
 }
示例#2
0
  public static TiersInformations xmlToModel(TiersInformationsType tiersInformationsDoc) {
    Calendar calendar = Calendar.getInstance();
    LocalTime localTime = new LocalTime();
    List list = new ArrayList();
    TiersInformations tiersInformations = new TiersInformations();

    tiersInformations.setTiersNom(tiersInformationsDoc.getTiersNom());

    tiersInformations.setTiersPrenom(tiersInformationsDoc.getTiersPrenom());

    tiersInformations.setTiersTelephone(tiersInformationsDoc.getTiersTelephone());

    return tiersInformations;
  }
示例#3
0
  public final TiersInformationsType modelToXml() {

    Calendar calendar = Calendar.getInstance();
    Date date = null;
    LocalTime localTime = new LocalTime();
    TiersInformationsType tiersInformations = TiersInformationsType.Factory.newInstance();
    int i = 0;

    tiersInformations.setTiersNom(this.tiersNom);

    tiersInformations.setTiersPrenom(this.tiersPrenom);

    tiersInformations.setTiersTelephone(this.tiersTelephone);

    return tiersInformations;
  }