com.openindex.openestate.impl.csv.is24
Class IS24CSVWriter

java.lang.Object
  extended by com.openindex.openestate.impl.OpenEstateConverter
      extended by com.openindex.openestate.impl.csv.CSVWriter
          extended by com.openindex.openestate.impl.csv.is24.IS24CSVWriter
Direct Known Subclasses:
IS24CsvWriter

public class IS24CSVWriter
extends CSVWriter

Umwandlung von OpenEstate-XML in IS24-CSV.
siehe auch http://www.immobilienscout24.de/immobilientransfer/
$Id: IS24CSVWriter.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph

Constructor Summary
IS24CSVWriter()
           
IS24CSVWriter(Locale locale)
           
 
Method Summary
 String getCsvCharset()
           
 String getCsvLineSeparator()
           
 String getCsvValueSeparator()
           
protected  void handleValues(String[] values, EstateImpl estate, AgentImpl agent, AgentContactImpl contact)
           
protected  String prepareValue(String value)
           
 void write(Writer w, AgencyImpl src)
           
protected  void write(Writer w, EstateImpl estate, AgentImpl agent, AgentContactImpl contact, List<String> errors)
           
 void write(Writer w, SerializableXmlElement src)
           
protected  void write(Writer w, TransferAgencyImpl src)
           
 void write(Writer w, TransferImpl src)
           
protected  boolean writeEstateAttachment(String[] values, EstateAttachmentImpl attach, int namePos, int suffixPos, int typePos, int timePos, int textPos)
           
protected  void writeEstateAusstattung(String[] values, EstateImpl estate, int field, int valEmpty, int valEinfach, int valGehoben, int valLuxus, int valNormal)
           
protected  void writeEstateBauphase(String[] values, EstateImpl estate, int field, int valEmpty, int valPlanung, int valBau, int valAbgeschlossen)
           
protected  void writeEstateBebaubarNach(String[] values, EstateImpl estate, int field, char valEmpty, char valAussengebiet, char valBebauungsplan, char valNachbarbebauung)
           
protected  void writeEstateBefeuerung(String[] values, EstateImpl estate, int field, int valErdwaerme, int valFernwaerme, int valGas, int valKohle, int valOel, int valPellet, int valSolar, int valStrom)
           
protected  void writeEstateBodenbelag(String[] values, EstateImpl estate, int field, int valEmpty, int valBeton, int valEpoxid, int valFliesen, int valLaminat, int valWunsch, int valOhne, int valParkett, int valPvc, int valStein, int valTeppich, int valTeppichAntistat, int valTeppichFliesen)
           
protected  void writeEstateEbk(String[] values, EstateImpl estate, int field)
           
protected  void writeEstateEnergiepass(String[] values, EstateImpl estate, int field, int valEmpty, int valBedarf, int valVerbrauch, int wertField, int wertWarmField)
           
protected  void writeEstateErschliessung(String[] values, EstateImpl estate, int field, char valErschlossen, char valTeilerschlossen, char valUnerschlossen)
           
protected  void writeEstateGaesteWc(String[] values, EstateImpl estate, int field)
           
protected  void writeEstateGeschlecht(String[] values, EstateImpl estate, int field, int valFrau, int valMann)
           
protected  void writeEstateHaustiere(String[] values, EstateImpl estate, int field, char valYes, char valNo, char valVb)
           
protected  void writeEstateHeizungsart(String[] values, EstateImpl estate, int field, int valEtage, int valOfen, int valZentral)
           
protected  void writeEstateKeller(String[] values, EstateImpl estate, int field)
           
protected  void writeEstateMietePro(String[] values, EstateImpl estate, int field, char valTag, char valWoche, char valMonat)
           
protected  void writeEstateMoebliert(String[] values, EstateImpl estate, int field)
           
protected  void writeEstateRaucher(String[] values, EstateImpl estate, int field, int valEgal, int valNichtraucher)
           
protected  void writeEstateRollstuhl(String[] values, EstateImpl estate, int field)
           
protected  void writeEstateSenioren(String[] values, EstateImpl estate, int field)
           
protected  void writeEstateStellplatz(String[] values, EstateImpl estate, int field, char valEmpty, char valYes, char valAussen, char valCarport, char valGarage, char valParkhaus, char valTiefgarage)
           
protected  String writeEstateValue(String srcGroup, String srcAttrib, EstateImpl srcEstate)
           
protected  String writeEstateValueAsDate(String srcGroup, String srcAttrib, EstateImpl srcEstate)
           
protected  String writeEstateValueAsNumber(String srcGroup, String srcAttrib, EstateImpl srcEstate, int digits, int precision)
           
protected  String writeEstateValueAsYear(String srcGroup, String srcAttrib, EstateImpl srcEstate)
           
protected  String writeEstateValueAsYesNo(String srcGroup, String srcAttrib, EstateImpl srcEstate)
           
protected  void writeEstateZulieferung(String[] values, EstateImpl estate, int field, int valEmpty, int valDirekt, int valGanztags, int valIndirekt, int valPkw, int valHinten, int valVorn, int valVormittags)
           
protected  void writeEstateZustand(String[] values, EstateImpl estate, int field, int valEmpty, int valAbbruch, int valErstbezug, int valErstbezugNachSanierung, int valGepflegt, int valModernisiert, int valVereinbarung, int valNeu, int valRenoBedarf, int valSaniert, int valUnreno, int valReno)
           
 
Methods inherited from class com.openindex.openestate.impl.csv.CSVWriter
write, write, write, write, writeValues
 
Methods inherited from class com.openindex.openestate.impl.OpenEstateConverter
getErrorMap, getEstateValue, getEstateValueAsBigDecimal, getEstateValueAsBigInteger, getEstateValueAsBoolean, getEstateValueAsCalendar, getEstateValueAsDate, getEstateValueAsDouble, getEstateValueAsFloat, getEstateValueAsInteger, getEstateValueAsList, getEstateValueAsLong, getEstateValueAsNonEmptyString, getEstateValueAsString, getFormattedEstateValue, getNumber, getOpenEstateLanguage, getXmlLineSeparator, hasEstateValue, putErrors, putEstateValue, putEstateValue, setOpenEstateLanguage, setXmlLineSeparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IS24CSVWriter

public IS24CSVWriter()

IS24CSVWriter

public IS24CSVWriter(Locale locale)
Method Detail

getCsvCharset

public String getCsvCharset()
Overrides:
getCsvCharset in class CSVWriter

getCsvLineSeparator

public String getCsvLineSeparator()
Overrides:
getCsvLineSeparator in class CSVWriter

getCsvValueSeparator

public String getCsvValueSeparator()
Overrides:
getCsvValueSeparator in class CSVWriter

handleValues

protected void handleValues(String[] values,
                            EstateImpl estate,
                            AgentImpl agent,
                            AgentContactImpl contact)

prepareValue

protected String prepareValue(String value)
Overrides:
prepareValue in class CSVWriter

write

public void write(Writer w,
                  SerializableXmlElement src)
           throws IOException
Specified by:
write in class CSVWriter
Throws:
IOException

write

public void write(Writer w,
                  AgencyImpl src)
           throws IOException
Throws:
IOException

write

public void write(Writer w,
                  TransferImpl src)
           throws IOException
Throws:
IOException

write

protected void write(Writer w,
                     TransferAgencyImpl src)
              throws IOException
Throws:
IOException

write

protected void write(Writer w,
                     EstateImpl estate,
                     AgentImpl agent,
                     AgentContactImpl contact,
                     List<String> errors)
              throws IOException,
                     OpenEstateException
Throws:
IOException
OpenEstateException

writeEstateAttachment

protected boolean writeEstateAttachment(String[] values,
                                        EstateAttachmentImpl attach,
                                        int namePos,
                                        int suffixPos,
                                        int typePos,
                                        int timePos,
                                        int textPos)

writeEstateAusstattung

protected void writeEstateAusstattung(String[] values,
                                      EstateImpl estate,
                                      int field,
                                      int valEmpty,
                                      int valEinfach,
                                      int valGehoben,
                                      int valLuxus,
                                      int valNormal)

writeEstateBauphase

protected void writeEstateBauphase(String[] values,
                                   EstateImpl estate,
                                   int field,
                                   int valEmpty,
                                   int valPlanung,
                                   int valBau,
                                   int valAbgeschlossen)

writeEstateBebaubarNach

protected void writeEstateBebaubarNach(String[] values,
                                       EstateImpl estate,
                                       int field,
                                       char valEmpty,
                                       char valAussengebiet,
                                       char valBebauungsplan,
                                       char valNachbarbebauung)

writeEstateBefeuerung

protected void writeEstateBefeuerung(String[] values,
                                     EstateImpl estate,
                                     int field,
                                     int valErdwaerme,
                                     int valFernwaerme,
                                     int valGas,
                                     int valKohle,
                                     int valOel,
                                     int valPellet,
                                     int valSolar,
                                     int valStrom)

writeEstateBodenbelag

protected void writeEstateBodenbelag(String[] values,
                                     EstateImpl estate,
                                     int field,
                                     int valEmpty,
                                     int valBeton,
                                     int valEpoxid,
                                     int valFliesen,
                                     int valLaminat,
                                     int valWunsch,
                                     int valOhne,
                                     int valParkett,
                                     int valPvc,
                                     int valStein,
                                     int valTeppich,
                                     int valTeppichAntistat,
                                     int valTeppichFliesen)

writeEstateEbk

protected void writeEstateEbk(String[] values,
                              EstateImpl estate,
                              int field)

writeEstateEnergiepass

protected void writeEstateEnergiepass(String[] values,
                                      EstateImpl estate,
                                      int field,
                                      int valEmpty,
                                      int valBedarf,
                                      int valVerbrauch,
                                      int wertField,
                                      int wertWarmField)

writeEstateErschliessung

protected void writeEstateErschliessung(String[] values,
                                        EstateImpl estate,
                                        int field,
                                        char valErschlossen,
                                        char valTeilerschlossen,
                                        char valUnerschlossen)

writeEstateGaesteWc

protected void writeEstateGaesteWc(String[] values,
                                   EstateImpl estate,
                                   int field)

writeEstateGeschlecht

protected void writeEstateGeschlecht(String[] values,
                                     EstateImpl estate,
                                     int field,
                                     int valFrau,
                                     int valMann)

writeEstateHaustiere

protected void writeEstateHaustiere(String[] values,
                                    EstateImpl estate,
                                    int field,
                                    char valYes,
                                    char valNo,
                                    char valVb)

writeEstateHeizungsart

protected void writeEstateHeizungsart(String[] values,
                                      EstateImpl estate,
                                      int field,
                                      int valEtage,
                                      int valOfen,
                                      int valZentral)

writeEstateKeller

protected void writeEstateKeller(String[] values,
                                 EstateImpl estate,
                                 int field)

writeEstateMietePro

protected void writeEstateMietePro(String[] values,
                                   EstateImpl estate,
                                   int field,
                                   char valTag,
                                   char valWoche,
                                   char valMonat)

writeEstateMoebliert

protected void writeEstateMoebliert(String[] values,
                                    EstateImpl estate,
                                    int field)

writeEstateRaucher

protected void writeEstateRaucher(String[] values,
                                  EstateImpl estate,
                                  int field,
                                  int valEgal,
                                  int valNichtraucher)

writeEstateRollstuhl

protected void writeEstateRollstuhl(String[] values,
                                    EstateImpl estate,
                                    int field)

writeEstateSenioren

protected void writeEstateSenioren(String[] values,
                                   EstateImpl estate,
                                   int field)

writeEstateStellplatz

protected void writeEstateStellplatz(String[] values,
                                     EstateImpl estate,
                                     int field,
                                     char valEmpty,
                                     char valYes,
                                     char valAussen,
                                     char valCarport,
                                     char valGarage,
                                     char valParkhaus,
                                     char valTiefgarage)

writeEstateValue

protected String writeEstateValue(String srcGroup,
                                  String srcAttrib,
                                  EstateImpl srcEstate)

writeEstateValueAsDate

protected String writeEstateValueAsDate(String srcGroup,
                                        String srcAttrib,
                                        EstateImpl srcEstate)

writeEstateValueAsNumber

protected String writeEstateValueAsNumber(String srcGroup,
                                          String srcAttrib,
                                          EstateImpl srcEstate,
                                          int digits,
                                          int precision)

writeEstateValueAsYear

protected String writeEstateValueAsYear(String srcGroup,
                                        String srcAttrib,
                                        EstateImpl srcEstate)

writeEstateValueAsYesNo

protected String writeEstateValueAsYesNo(String srcGroup,
                                         String srcAttrib,
                                         EstateImpl srcEstate)

writeEstateZulieferung

protected void writeEstateZulieferung(String[] values,
                                      EstateImpl estate,
                                      int field,
                                      int valEmpty,
                                      int valDirekt,
                                      int valGanztags,
                                      int valIndirekt,
                                      int valPkw,
                                      int valHinten,
                                      int valVorn,
                                      int valVormittags)

writeEstateZustand

protected void writeEstateZustand(String[] values,
                                  EstateImpl estate,
                                  int field,
                                  int valEmpty,
                                  int valAbbruch,
                                  int valErstbezug,
                                  int valErstbezugNachSanierung,
                                  int valGepflegt,
                                  int valModernisiert,
                                  int valVereinbarung,
                                  int valNeu,
                                  int valRenoBedarf,
                                  int valSaniert,
                                  int valUnreno,
                                  int valReno)


Copyright © 2012 OpenEstate. All Rights Reserved.