Mercurial > dive4elements > river
comparison flys-artifacts/ChangeLog @ 945:59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
flys-artifacts/trunk@2360 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 19 Jul 2011 10:37:57 +0000 |
parents | c256061287d7 |
children | 854620e52971 |
comparison
equal
deleted
inserted
replaced
944:c256061287d7 | 945:59ae2a823e73 |
---|---|
1 2011-07-19 Ingo Weinzierl <ingo@intevation.de> | |
2 | |
3 * src/main/java/de/intevation/flys/artifacts/model/ManagedFacet.java: | |
4 Override the toXML() method. Subclasses can now write their own XML | |
5 representation. | |
6 | |
7 * src/main/java/de/intevation/flys/artifacts/model/ManagedDomFacet.java: | |
8 New. This ManagedFacet uses an Element (DOM) to store the information | |
9 about a facet. The intent of this facet type is to represent a facet | |
10 stored in an Collection attribute. Different facets can have different | |
11 attributes that we need to parse, but the only thing ManagedFacets need | |
12 to do, is to adjust the attributes "active" and "position". So, those | |
13 values are set directly on the Element, the other attributes aren't | |
14 touched. | |
15 | |
16 * src/main/java/de/intevation/flys/artifacts/model/ManagedFacetAdapter.java: | |
17 New. This facet is a wrapper for another facet. This subclass of a | |
18 ManagedFacet overrides the toXML() method. The XML representation is | |
19 defined by the inner facet that is stored as member variable. The | |
20 ManagedFacet specific attributes "artifact", "facet", "pos" and "active" | |
21 are added manually. | |
22 | |
23 * src/main/java/de/intevation/flys/collections/AttributeWriter.java: Uses | |
24 the toXML() method to write a facet node into the attribute document. | |
25 | |
26 * src/main/java/de/intevation/flys/collections/AttributeParser.java: Uses | |
27 the ManagedDomFacet to save the information of a facet which is | |
28 contained in the attribute part of a Collection's DESCRIBE document. | |
29 | |
30 * src/main/java/de/intevation/flys/collections/OutputParser.java: Uses the | |
31 ManagedFacetAdapter to save a facet, because we want to keep the | |
32 specific facet to be able to write its specific XML representation into | |
33 the Collection's DESCRIBE document. | |
34 | |
35 * src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java: | |
36 Adapted the XPath of facets stored in the attribute part of the | |
37 DESCRIBE. | |
38 | |
1 2011-07-18 Ingo Weinzierl <ingo@intevation.de> | 39 2011-07-18 Ingo Weinzierl <ingo@intevation.de> |
2 | 40 |
3 * src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java: Added a | 41 * src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java: Added a |
4 method that returns the Outputs for the Artifact. | 42 method that returns the Outputs for the Artifact. |
5 | 43 |