Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/DifferenceSelect.java @ 5867:59ff03ff48f1
River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:23:01 +0200 |
parents | 4897a58c8746 |
children | af13ceeba52a |
comparison
equal
deleted
inserted
replaced
5866:9a6741ccf6d4 | 5867:59ff03ff48f1 |
---|---|
15 import org.dive4elements.artifactdatabase.state.Facet; | 15 import org.dive4elements.artifactdatabase.state.Facet; |
16 import org.dive4elements.artifacts.Artifact; | 16 import org.dive4elements.artifacts.Artifact; |
17 import org.dive4elements.artifacts.CallContext; | 17 import org.dive4elements.artifacts.CallContext; |
18 import org.dive4elements.artifacts.common.utils.XMLUtils; | 18 import org.dive4elements.artifacts.common.utils.XMLUtils; |
19 import org.dive4elements.artifacts.common.utils.XMLUtils.ElementCreator; | 19 import org.dive4elements.artifacts.common.utils.XMLUtils.ElementCreator; |
20 import org.dive4elements.river.artifacts.FLYSArtifact; | 20 import org.dive4elements.river.artifacts.D4EArtifact; |
21 import org.dive4elements.river.artifacts.access.BedHeightAccess; | 21 import org.dive4elements.river.artifacts.access.BedHeightAccess; |
22 import org.dive4elements.river.artifacts.states.DefaultState; | 22 import org.dive4elements.river.artifacts.states.DefaultState; |
23 import org.dive4elements.river.utils.StringUtil; | 23 import org.dive4elements.river.utils.StringUtil; |
24 | 24 |
25 /** | 25 /** |
43 /** | 43 /** |
44 * Overridden to do nothing. | 44 * Overridden to do nothing. |
45 */ | 45 */ |
46 @Override | 46 @Override |
47 public Object computeAdvance( | 47 public Object computeAdvance( |
48 FLYSArtifact artifact, | 48 D4EArtifact artifact, |
49 String hash, | 49 String hash, |
50 CallContext context, | 50 CallContext context, |
51 List<Facet> facets, | 51 List<Facet> facets, |
52 Object old | 52 Object old |
53 ) { | 53 ) { |
61 Artifact artifact, | 61 Artifact artifact, |
62 String name, | 62 String name, |
63 CallContext context) | 63 CallContext context) |
64 { | 64 { |
65 Element[] elements = new Element[1]; | 65 Element[] elements = new Element[1]; |
66 BedHeightAccess bha = new BedHeightAccess((FLYSArtifact)artifact, context); | 66 BedHeightAccess bha = new BedHeightAccess((D4EArtifact)artifact, context); |
67 String time = bha.getYearEpoch(); | 67 String time = bha.getYearEpoch(); |
68 elements[0] = createItem( | 68 elements[0] = createItem( |
69 ec, | 69 ec, |
70 new String[] {"year-epoch", time}); | 70 new String[] {"year-epoch", time}); |
71 | 71 |
75 /** | 75 /** |
76 * Creates the data element used for the static part of DESCRIBE document. | 76 * Creates the data element used for the static part of DESCRIBE document. |
77 */ | 77 */ |
78 @Override | 78 @Override |
79 protected Element createStaticData( | 79 protected Element createStaticData( |
80 FLYSArtifact flys, | 80 D4EArtifact flys, |
81 ElementCreator creator, | 81 ElementCreator creator, |
82 CallContext cc, | 82 CallContext cc, |
83 String name, | 83 String name, |
84 String value, | 84 String value, |
85 String type | 85 String type |