Mercurial > dive4elements > framework
annotate artifacts-common/src/main/java/org/dive4elements/artifacts/common/utils/ElementConverter.java @ 570:584591f8203c 3.2.x
Upgrade to Log4j 2
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 28 Feb 2022 17:41:14 +0100 |
parents | 09b5f7de8b6d |
children |
rev | line source |
---|---|
502
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
1 /* |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
2 * Copyright (c) 2013 by Intevation GmbH |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
3 * |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
4 * This program is free software under the LGPL (>=v2.1) |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
5 * Read the file LGPL.txt coming with the software for details |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
6 * or visit http://www.gnu.org/licenses/ if it does not exist. |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
7 */ |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
8 package org.dive4elements.artifacts.common.utils; |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
9 |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
10 import org.w3c.dom.Element; |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
11 |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
12 /** Simple interface to convert an XML DOM element to somthing opaque, |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
13 * Useful to do some config preprocessing. |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
14 */ |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
15 public interface ElementConverter { |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
16 Object convert(Element element); |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
17 } |
09b5f7de8b6d
Added simple interface to convert an XML DOM element to something opaque.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
18 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |