Examples/src/main/java/org/openestate/io/examples/WisItWritingExample.java
protected static ObjectType createOBJEKT() {
        // create an example real estate
        ObjectType obj = FACTORY.createObjectType();
        obj.setABSTELLPLATZ(RandomUtils.nextInt(0, 2) == 1);
        obj.setAUFANFRAGE(RandomUtils.nextInt(0, 2) == 1);
        obj.setAUFZUG(RandomUtils.nextInt(0, 2) == 1);
        obj.setBALKON(RandomUtils.nextInt(0, 2) == 1);
        obj.setBAUJAHR(String.valueOf(RandomUtils.nextInt(1900, 2015)));
        obj.setDACHBODEN(RandomUtils.nextInt(0, 2) == 1);
        obj.setFLAECHEART(AreaType.NETTO);
        obj.setFOERDERBAR(RandomUtils.nextInt(0, 2) == 1);
        obj.setFRAKTION("some notes about the fraction");
        obj.setGARAGE(RandomUtils.nextInt(0, 2) == 1);
        obj.setGRUENFLAECHE(RandomUtils.nextInt(0, 2) == 1);
        obj.setGUELTIGBIS(Calendar.getInstance());
        obj.setHEIZUNG(HeatingType.ZENTRAL);
        obj.setID(RandomStringUtils.random(5));
        obj.setIMMOBILIENART(PropertyType.EINFAMILIENHAUS);
        obj.setINFODE("some description in german language");
        obj.setINFOIT("some description in italian language");
        obj.setKELLER(RandomUtils.nextInt(0, 2) == 1);
        obj.setKLIMAHAUS(EnergyStandard.A);
        obj.setKONVENTIONIERT(RandomUtils.nextInt(0, 2) == 1);
        obj.setKUBATUR(BigDecimal.valueOf(RandomUtils.nextDouble(100, 1000)));
        obj.setLOESCHEN(RandomUtils.nextInt(0, 2) == 1);
        obj.setLOGGIA(RandomUtils.nextInt(0, 2) == 1);
        obj.setMIETEKAUF(MarketingType.MIETE);
        obj.setNUTZFLAECHE(BigDecimal.valueOf(RandomUtils.nextDouble(100, 1000)));
        obj.setORT("Bozen");
        obj.setPREIS(BigDecimal.valueOf(RandomUtils.nextDouble(300, 3000)));
        obj.setSTOCKWERK(BigInteger.valueOf(RandomUtils.nextInt(0, 5)));
        obj.setSTOCKWERKE(BigInteger.valueOf(RandomUtils.nextInt(0, 10)));
        obj.setTERRASSE(RandomUtils.nextInt(0, 2) == 1);
        obj.setUEBERGABEZEITPUNKT("some notes about the time of handover");
        obj.setZIMMER(BigInteger.valueOf(RandomUtils.nextInt(1, 5)));
        obj.setZUSTAND(ConditionType.GEBRAUCHT);

        obj.setBILD1(obj.getID() + "_1.jpg");
        obj.setBILD2(obj.getID() + "_2.jpg");
        obj.setBILD3(obj.getID() + "_3.jpg");
        obj.setBILD4(obj.getID() + "_4.jpg");
        obj.setBILD5(obj.getID() + "_5.jpg");
        obj.setBILD6(obj.getID() + "_6.jpg");
        obj.setBILD7(obj.getID() + "_7.jpg");
        obj.setBILD8(obj.getID() + "_8.jpg");
        obj.setBILD9(obj.getID() + "_9.jpg");
        obj.setBILD10(obj.getID() + "_10.jpg");

        obj.setDOWNLOAD1(obj.getID() + "_1.pdf");
        obj.setDOWNLOAD2(obj.getID() + "_2.pdf");
        obj.setDOWNLOAD3(obj.getID() + "_3.pdf");

        return obj;
    }
protected static ObjectType createOBJEKT() {
        // create an example real estate
        ObjectType obj = FACTORY.createObjectType();
        obj.setABSTELLPLATZ(RandomUtils.nextInt(0, 2) == 1);
        obj.setAUFANFRAGE(RandomUtils.nextInt(0, 2) == 1);
        obj.setAUFZUG(RandomUtils.nextInt(0, 2) == 1);
        obj.setBALKON(RandomUtils.nextInt(0, 2) == 1);
        obj.setBAUJAHR(String.valueOf(RandomUtils.nextInt(1900, 2015)));
        obj.setDACHBODEN(RandomUtils.nextInt(0, 2) == 1);
        obj.setFLAECHEART(AreaType.NETTO);
        obj.setFOERDERBAR(RandomUtils.nextInt(0, 2) == 1);
        obj.setFRAKTION("some notes about the fraction");
        obj.setGARAGE(RandomUtils.nextInt(0, 2) == 1);
        obj.setGRUENFLAECHE(RandomUtils.nextInt(0, 2) == 1);
        obj.setGUELTIGBIS(Calendar.getInstance());
        obj.setHEIZUNG(HeatingType.ZENTRAL);
        obj.setID(RandomStringUtils.random(5));
        obj.setIMMOBILIENART(PropertyType.EINFAMILIENHAUS);
        obj.setINFODE("some description in german language");
        obj.setINFOIT("some description in italian language");
        obj.setKELLER(RandomUtils.nextInt(0, 2) == 1);
        obj.setKLIMAHAUS(EnergyStandard.A);
        obj.setKONVENTIONIERT(RandomUtils.nextInt(0, 2) == 1);
        obj.setKUBATUR(BigDecimal.valueOf(RandomUtils.nextDouble(100, 1000)));
        obj.setLOESCHEN(RandomUtils.nextInt(0, 2) == 1);
        obj.setLOGGIA(RandomUtils.nextInt(0, 2) == 1);
        obj.setMIETEKAUF(MarketingType.MIETE);
        obj.setNUTZFLAECHE(BigDecimal.valueOf(RandomUtils.nextDouble(100, 1000)));
        obj.setORT("Bozen");
        obj.setPREIS(BigDecimal.valueOf(RandomUtils.nextDouble(300, 3000)));
        obj.setSTOCKWERK(BigInteger.valueOf(RandomUtils.nextInt(0, 5)));
        obj.setSTOCKWERKE(BigInteger.valueOf(RandomUtils.nextInt(0, 10)));
        obj.setTERRASSE(RandomUtils.nextInt(0, 2) == 1);
        obj.setUEBERGABEZEITPUNKT("some notes about the time of handover");
        obj.setZIMMER(BigInteger.valueOf(RandomUtils.nextInt(1, 5)));
        obj.setZUSTAND(ConditionType.GEBRAUCHT);

        obj.setBILD1(obj.getID() + "_1.jpg");
        obj.setBILD2(obj.getID() + "_2.jpg");
        obj.setBILD3(obj.getID() + "_3.jpg");
        obj.setBILD4(obj.getID() + "_4.jpg");
        obj.setBILD5(obj.getID() + "_5.jpg");
        obj.setBILD6(obj.getID() + "_6.jpg");
        obj.setBILD7(obj.getID() + "_7.jpg");
        obj.setBILD8(obj.getID() + "_8.jpg");
        obj.setBILD9(obj.getID() + "_9.jpg");
        obj.setBILD10(obj.getID() + "_10.jpg");

        obj.setDOWNLOAD1(obj.getID() + "_1.pdf");
        obj.setDOWNLOAD2(obj.getID() + "_2.pdf");
        obj.setDOWNLOAD3(obj.getID() + "_3.pdf");

        return obj;
    }
protected static ObjectType createOBJEKT ( ) { // create an example real estate ObjectType obj = FACTORY . createObjectType ( ) ; obj . setABSTELLPLATZ ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setAUFANFRAGE ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setAUFZUG ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setBALKON ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setBAUJAHR ( String . valueOf ( RandomUtils . nextInt ( 1900 , 2015 ) ) ) ; obj . setDACHBODEN ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setFLAECHEART ( AreaType . NETTO ) ; obj . setFOERDERBAR ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setFRAKTION ( "some notes about the fraction" ) ; obj . setGARAGE ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setGRUENFLAECHE ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setGUELTIGBIS ( Calendar . getInstance ( ) ) ; obj . setHEIZUNG ( HeatingType . ZENTRAL ) ; obj . setID ( RandomStringUtils . random ( 5 ) ) ; obj . setIMMOBILIENART ( PropertyType . EINFAMILIENHAUS ) ; obj . setINFODE ( "some description in german language" ) ; obj . setINFOIT ( "some description in italian language" ) ; obj . setKELLER ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setKLIMAHAUS ( EnergyStandard . A ) ; obj . setKONVENTIONIERT ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setKUBATUR ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 100 , 1000 ) ) ) ; obj . setLOESCHEN ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setLOGGIA ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setMIETEKAUF ( MarketingType . MIETE ) ; obj . setNUTZFLAECHE ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 100 , 1000 ) ) ) ; obj . setORT ( "Bozen" ) ; obj . setPREIS ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 300 , 3000 ) ) ) ; obj . setSTOCKWERK ( BigInteger . valueOf ( RandomUtils . nextInt ( 0 , 5 ) ) ) ; obj . setSTOCKWERKE ( BigInteger . valueOf ( RandomUtils . nextInt ( 0 , 10 ) ) ) ; obj . setTERRASSE ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setUEBERGABEZEITPUNKT ( "some notes about the time of handover" ) ; obj . setZIMMER ( BigInteger . valueOf ( RandomUtils . nextInt ( 1 , 5 ) ) ) ; obj . setZUSTAND ( ConditionType . GEBRAUCHT ) ; obj . setBILD1 ( obj . getID ( ) + "_1.jpg" ) ; obj . setBILD2 ( obj . getID ( ) + "_2.jpg" ) ; obj . setBILD3 ( obj . getID ( ) + "_3.jpg" ) ; obj . setBILD4 ( obj . getID ( ) + "_4.jpg" ) ; obj . setBILD5 ( obj . getID ( ) + "_5.jpg" ) ; obj . setBILD6 ( obj . getID ( ) + "_6.jpg" ) ; obj . setBILD7 ( obj . getID ( ) + "_7.jpg" ) ; obj . setBILD8 ( obj . getID ( ) + "_8.jpg" ) ; obj . setBILD9 ( obj . getID ( ) + "_9.jpg" ) ; obj . setBILD10 ( obj . getID ( ) + "_10.jpg" ) ; obj . setDOWNLOAD1 ( obj . getID ( ) + "_1.pdf" ) ; obj . setDOWNLOAD2 ( obj . getID ( ) + "_2.pdf" ) ; obj . setDOWNLOAD3 ( obj . getID ( ) + "_3.pdf" ) ; return obj ; }
Create an {@link ObjectType} with some example data.

@return created example object
Create an { @link ObjectType } with some example data .