java/sql-dk/src/info/globalcode/sql/dk/configuration/PropertyDeclaration.java
author František Kučera <franta-hg@frantovo.cz>
Sat, 15 Aug 2015 10:04:28 +0200
branchv_0
changeset 205 d6624c3b146a
child 207 2bba68ef47c1
permissions -rw-r--r--
property annotations for documentation of formatter properties
     1 /**
     2  * SQL-DK
     3  * Copyright © 2015 František Kučera (frantovo.cz)
     4  *
     5  * This program is free software: you can redistribute it and/or modify
     6  * it under the terms of the GNU General Public License as published by
     7  * the Free Software Foundation, either version 3 of the License, or
     8  * (at your option) any later version.
     9  *
    10  * This program is distributed in the hope that it will be useful,
    11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    13  * GNU General Public License for more details.
    14  *
    15  * You should have received a copy of the GNU General Public License
    16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
    17  */
    18 package info.globalcode.sql.dk.configuration;
    19 
    20 import java.lang.annotation.ElementType;
    21 import java.lang.annotation.Repeatable;
    22 import java.lang.annotation.Retention;
    23 import static java.lang.annotation.RetentionPolicy.RUNTIME;
    24 import java.lang.annotation.Target;
    25 
    26 /**
    27  *
    28  * @author Ing. František Kučera (frantovo.cz)
    29  */
    30 @Retention(RUNTIME)
    31 @Target({ElementType.TYPE})
    32 @Repeatable(PropertyDeclarations.class)
    33 public @interface PropertyDeclaration {
    34 
    35 	/**
    36 	 * @return name of the property
    37 	 */
    38 	String name();
    39 
    40 	/**
    41 	 * @return data type of the value: String, numbers, Boolean or Enum
    42 	 */
    43 	Class type();
    44 
    45 	/**
    46 	 * @return documentation for the users
    47 	 */
    48 	String description();
    49 }