All Downloads are FREE. Search and download functionalities are using the official Maven repository.

alipsa.sieparser.SieCompany Maven / Gradle / Ivy

Go to download

A Java parser for SIE files that can read files of version 1 to 4 (including 4i)

The newest version!
/*
MIT License

Copyright (c) 2015 Johan Idstam
Modifications by Per Nyfelt Copyright (c) 2016 Alipsa HB

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

package alipsa.sieparser;

import java.util.HashMap;

public class SieCompany {
    /**
     * The organisation type names as set by Bolagsverket
     */
    private HashMap organisationTypeNames;

    private int sni;
    private String name;
    private String code;
    private String orgType;
    private String orgIdentifier;
    private String contact;
    private String street;
    private String zipCity;
    private String phone;

    public SieCompany() {
        organisationTypeNames = new HashMap<>();
        loadOrgTypeNames();
    }

    /**
     * #BKOD
     * @return the Sni code (#BKOD)
     */
    public int getSni() {
        return sni;
    }

    public void setSni(int value) {
        sni = value;
    }

    /**
     * #FNAMN
     * @return the company name (#FNAMN)
     */
    public String getName() {
        return name;
    }

    public void setName(String value) {
        name = value;
    }

    /**
     * #FNR
     * @return the code (#FNR)
     */
    public String getCode() {
        return code;
    }

    public void setCode(String value) {
        code = value;
    }

    /**
     * #FTYP
     * @return the organization type (#FTYP)
     */
    public String getOrgType() {
        return orgType;
    }

    public void setOrgType(String value) {
        orgType = value;
    }

    /**
     * #ORGNR
     * @return the organization id (#ORGNR)
     */
    public String getOrgIdentifier() {
        return orgIdentifier;
    }

    public void setOrgIdentifier(String value) {
        orgIdentifier = value;
    }

    /**
     * #ADRESS
     * @return the contact address (#ADRESS)
     */
    public String getContact() {
        return contact;
    }

    public void setContact(String value) {
        contact = value;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String value) {
        street = value;
    }

    public String getZipCity() {
        return zipCity;
    }

    public void setZipCity(String value) {
        zipCity = value;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String value) {
        phone = value;
    }

    private void loadOrgTypeNames() {
        organisationTypeNames.put("AB", "Aktiebolag.");
        organisationTypeNames.put("E", "Enskild näringsidkare.");
        organisationTypeNames.put("HB", "Handelsbolag.");
        organisationTypeNames.put("KB", "Kommanditbolag.");
        organisationTypeNames.put("EK", "Ekonomisk förening.");
        organisationTypeNames.put("KHF", "Kooperativ hyresrättsförening.");
        organisationTypeNames.put("BRF", "Bostadsrättsförening.");
        organisationTypeNames.put("BF", "Bostadsförening.");
        organisationTypeNames.put("SF", "Sambruksförening.");
        organisationTypeNames.put("I", "Ideell förening som bedriver näring.");
        organisationTypeNames.put("S", "Stiftelse som bedriver näring.");
        organisationTypeNames.put("FL", "Filial till utländskt bolag.");
        organisationTypeNames.put("BAB", "Bankaktiebolag.");
        organisationTypeNames.put("MB", "Medlemsbank.");
        organisationTypeNames.put("SB", "Sparbank.");
        organisationTypeNames.put("BFL", "Utländsk banks filial.");
        organisationTypeNames.put("FAB", "Försäkringsaktiebolag.");
        organisationTypeNames.put("OFB", "Ömsesidigt försäkringsbolag.");
        organisationTypeNames.put("SE", "Europabolag.");
        organisationTypeNames.put("SCE", "Europakooperativ.");
        organisationTypeNames.put("TSF", "Trossamfund.");
        organisationTypeNames.put("X", "Annan företagsform.");
    }

}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy