Skip to content

martiner/ubyport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UbyPort Java

Build Status

<dependency>
	<groupId>cz.geek</groupId>
	<artifactId>ubyport</artifactId>
	<version>VERSION</version>
</dependency>

Usage

UbyportUbytovatel ubytovatel = new UbyportUbytovatel();
ubytovatel.setIdub("id1");
ubytovatel.setZkratka("abbr1");
ubytovatel.setUbytovatel("Ubyt");
ubytovatel.setKontakt("Kontakt");
ubytovatel.setOkres("Okr");
ubytovatel.setObec("Obc");
ubytovatel.setCastObce("Cast");
ubytovatel.setUlice("Ulice");
ubytovatel.setCisloDomovni("2A");
ubytovatel.setCisloOrientacni("id1");
ubytovatel.setPsc("11150");

UbyportUbytovany ubytovany = new UbyportUbytovany();
ubytovany.setUbytovaniOd(LocalDate.of(2018, 6, 27));
ubytovany.setUbytovaniDo(LocalDate.of(2018, 6, 30));
ubytovany.setPrijmeni("Prijmeni");
ubytovany.setJmeno("Jmeno");
ubytovany.setNarozeni(LocalDate.of(1980, 5, 12));
ubytovany.setStatniPrislusnost(StatniPrislusnost.SVK);
ubytovany.setBydliste("Bydl");
ubytovany.setDoklad("AK47");
ubytovany.setViza("V123");
ubytovany.setUcelPobytu(UcelPobytu.U10);
ubytovany.setPoznamka("Pozn");

Ubyport ubyport = new Ubyport(ubytovatel);
ubyport.add(ubytovany);

System.out.println(ubyport.asString());

ubyport.export(outputStream);

About

A Java library for generating Ubyport UNL files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages