java/rozsirene-atributy/src/cz/frantovo/rozsireneatributy/Konfigurace.java
branchv_0
changeset 39 ec0e970e0830
parent 38 41e91ea94acb
child 40 1978eaf429de
     1.1 --- a/java/rozsirene-atributy/src/cz/frantovo/rozsireneatributy/Konfigurace.java	Sat Dec 16 19:09:35 2023 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,122 +0,0 @@
     1.4 -/**
     1.5 - * Rozšířené atributy – program na správu rozšířených atributů souborů
     1.6 - * Copyright © 2023 František Kučera (frantovo.cz)
     1.7 - *
     1.8 - * This program is free software: you can redistribute it and/or modify
     1.9 - * it under the terms of the GNU General Public License as published by
    1.10 - * the Free Software Foundation, either version 3 of the License.
    1.11 - *
    1.12 - * This program is distributed in the hope that it will be useful,
    1.13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.15 - * GNU General Public License for more details.
    1.16 - *
    1.17 - * You should have received a copy of the GNU General Public License
    1.18 - * along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1.19 - */
    1.20 -package cz.frantovo.rozsireneatributy;
    1.21 -
    1.22 -import java.io.File;
    1.23 -import java.util.LinkedList;
    1.24 -import java.util.List;
    1.25 -
    1.26 -/**
    1.27 - * @author Ing. František Kučera (frantovo.cz)
    1.28 - */
    1.29 -public class Konfigurace {
    1.30 -
    1.31 -	public static class DefiniceAtributu {
    1.32 -
    1.33 -		private String název;
    1.34 -		private String popis;
    1.35 -		private final List<DefiniceHodnoty> hodnoty = new LinkedList<>();
    1.36 -
    1.37 -		public DefiniceAtributu(String název, String popis) {
    1.38 -			this.název = název;
    1.39 -			this.popis = popis;
    1.40 -		}
    1.41 -
    1.42 -		public String getNázev() {
    1.43 -			return název;
    1.44 -		}
    1.45 -
    1.46 -		public void setNázev(String název) {
    1.47 -			this.název = název;
    1.48 -		}
    1.49 -
    1.50 -		public String getPopis() {
    1.51 -			return popis;
    1.52 -		}
    1.53 -
    1.54 -		public void setPopis(String popis) {
    1.55 -			this.popis = popis;
    1.56 -		}
    1.57 -
    1.58 -		public List<DefiniceHodnoty> getHodnoty() {
    1.59 -			return hodnoty;
    1.60 -		}
    1.61 -
    1.62 -		public void addHodnota(DefiniceHodnoty hodnota) {
    1.63 -			this.hodnoty.add(hodnota);
    1.64 -		}
    1.65 -
    1.66 -	}
    1.67 -
    1.68 -	public static class DefiniceHodnoty {
    1.69 -
    1.70 -		private String název;
    1.71 -		private String popis;
    1.72 -
    1.73 -		public DefiniceHodnoty(String název, String popis) {
    1.74 -			this.název = název;
    1.75 -			this.popis = popis;
    1.76 -		}
    1.77 -
    1.78 -		public String getNázev() {
    1.79 -			return název;
    1.80 -		}
    1.81 -
    1.82 -		public void setNázev(String název) {
    1.83 -			this.název = název;
    1.84 -		}
    1.85 -
    1.86 -		public String getPopis() {
    1.87 -			return popis;
    1.88 -		}
    1.89 -
    1.90 -		public void setPopis(String popis) {
    1.91 -			this.popis = popis;
    1.92 -		}
    1.93 -	}
    1.94 -
    1.95 -	private File soubor;
    1.96 -
    1.97 -	private boolean povinnéZamykání = false;
    1.98 -
    1.99 -	private final List<DefiniceAtributu> atributy = new LinkedList<>();
   1.100 -
   1.101 -	public File getSoubor() {
   1.102 -		return soubor;
   1.103 -	}
   1.104 -
   1.105 -	public void setSoubor(File soubor) {
   1.106 -		this.soubor = soubor;
   1.107 -	}
   1.108 -
   1.109 -	public boolean isPovinnéZamykání() {
   1.110 -		return povinnéZamykání;
   1.111 -	}
   1.112 -
   1.113 -	public void setPovinnéZamykání(boolean povinnéZamykání) {
   1.114 -		this.povinnéZamykání = povinnéZamykání;
   1.115 -	}
   1.116 -
   1.117 -	public List<DefiniceAtributu> getAtributy() {
   1.118 -		return atributy;
   1.119 -	}
   1.120 -
   1.121 -	public void addAtribut(DefiniceAtributu atribut) {
   1.122 -		this.atributy.add(atribut);
   1.123 -	}
   1.124 -
   1.125 -}