java/sql-dk/src/info/globalcode/sql/dk/configuration/FormatterDefinition.java
branchv_0
changeset 30 b7ea47b2d4ca
parent 29 d66858b4b563
child 34 9335cf31c0f2
equal deleted inserted replaced
29:d66858b4b563 30:b7ea47b2d4ca
    15  * You should have received a copy of the GNU General Public License
    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/>.
    16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
    17  */
    17  */
    18 package info.globalcode.sql.dk.configuration;
    18 package info.globalcode.sql.dk.configuration;
    19 
    19 
    20 import static info.globalcode.sql.dk.Constants.XMLNS_CONFIGURATION;
    20 import static info.globalcode.sql.dk.Xmlns.CONFIGURATION;
    21 import info.globalcode.sql.dk.DKException;
    21 import info.globalcode.sql.dk.DKException;
    22 import info.globalcode.sql.dk.formatting.Formatter;
    22 import info.globalcode.sql.dk.formatting.Formatter;
    23 import info.globalcode.sql.dk.formatting.FormatterContext;
    23 import info.globalcode.sql.dk.formatting.FormatterContext;
    24 import java.lang.reflect.Constructor;
    24 import java.lang.reflect.Constructor;
    25 import java.lang.reflect.InvocationTargetException;
    25 import java.lang.reflect.InvocationTargetException;
    40 	public FormatterDefinition(String name, String className) {
    40 	public FormatterDefinition(String name, String className) {
    41 		this.name = name;
    41 		this.name = name;
    42 		this.className = className;
    42 		this.className = className;
    43 	}
    43 	}
    44 
    44 
    45 	@XmlElement(name = "name", namespace = XMLNS_CONFIGURATION)
    45 	@XmlElement(name = "name", namespace = CONFIGURATION)
    46 	@Override
    46 	@Override
    47 	public String getName() {
    47 	public String getName() {
    48 		return name;
    48 		return name;
    49 	}
    49 	}
    50 
    50 
    60 	 * The constructor must accept one parameter:
    60 	 * The constructor must accept one parameter:
    61 	 * <code>info.globalcode.sql.dk.formatting.FormatterContext</code>
    61 	 * <code>info.globalcode.sql.dk.formatting.FormatterContext</code>
    62 	 *
    62 	 *
    63 	 * @return fully qualified class name
    63 	 * @return fully qualified class name
    64 	 */
    64 	 */
    65 	@XmlElement(name = "class", namespace = XMLNS_CONFIGURATION)
    65 	@XmlElement(name = "class", namespace = CONFIGURATION)
    66 	public String getClassName() {
    66 	public String getClassName() {
    67 		return className;
    67 		return className;
    68 	}
    68 	}
    69 
    69 
    70 	public void setClassName(String className) {
    70 	public void setClassName(String className) {