Mercurial > dive4elements > river
annotate flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/ManagedFacet.java @ 4769:92a08725bc63
Do not die in W80 parser id invalid date is given.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 04 Jan 2013 15:46:33 +0100 |
parents | b195fede1c3b |
children |
rev | line source |
---|---|
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.flys.artifacts.model; |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
2 |
945
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
3 import org.w3c.dom.Document; |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
4 import org.w3c.dom.Element; |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
5 import org.w3c.dom.Node; |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
6 |
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
7 import de.intevation.artifactdatabase.state.DefaultFacet; |
1061
b1b0a0b61845
Made facets cloneable with the right type.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
949
diff
changeset
|
8 import de.intevation.artifactdatabase.state.Facet; |
4255
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
9 import de.intevation.artifacts.ArtifactNamespaceContext; |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
10 import de.intevation.artifacts.common.utils.XMLUtils.ElementCreator; |
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
11 |
1624
238145ef67da
Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1061
diff
changeset
|
12 |
238145ef67da
Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1061
diff
changeset
|
13 /** |
238145ef67da
Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1061
diff
changeset
|
14 * Facet with user-supplied theme-control-information (pos in list, |
238145ef67da
Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1061
diff
changeset
|
15 * active/disabled etc) attached. |
238145ef67da
Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1061
diff
changeset
|
16 */ |
4255
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
17 public class ManagedFacet extends DefaultFacet implements Comparable { |
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
18 |
1624
238145ef67da
Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1061
diff
changeset
|
19 /** The uuid of the owner artifact. */ |
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
20 protected String uuid; |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
21 |
1624
238145ef67da
Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1061
diff
changeset
|
22 /** A property that determines the position of this facet. */ |
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
23 protected int position; |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
24 |
1624
238145ef67da
Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1061
diff
changeset
|
25 /** A property that determines if this facet is active or not. */ |
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
26 protected int active; |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
27 |
1715
a70e0cbc5e02
Added support for removing themes from output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1624
diff
changeset
|
28 /** A property that determines if this facet is visible or not. */ |
a70e0cbc5e02
Added support for removing themes from output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1624
diff
changeset
|
29 protected int visible; |
a70e0cbc5e02
Added support for removing themes from output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1624
diff
changeset
|
30 |
1061
b1b0a0b61845
Made facets cloneable with the right type.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
949
diff
changeset
|
31 public ManagedFacet() { |
b1b0a0b61845
Made facets cloneable with the right type.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
949
diff
changeset
|
32 } |
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
33 |
4255
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
34 public ManagedFacet(String name, int index, String desc, String uuid, |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
35 int pos, int active, int visible) { |
694
68c6c75a6f7c
Add index and description of facets to collections describe document.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
346
diff
changeset
|
36 super(index, name, desc); |
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
37 |
4255
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
38 this.uuid = uuid; |
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
39 this.position = pos; |
4255
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
40 this.active = active; |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
41 this.visible = visible; |
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
42 } |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
43 |
1721
eb35570df0e8
Cosmetics, docs.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1715
diff
changeset
|
44 /** |
eb35570df0e8
Cosmetics, docs.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1715
diff
changeset
|
45 * Sets position (will be merged to position in ThemeList). |
eb35570df0e8
Cosmetics, docs.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1715
diff
changeset
|
46 */ |
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
47 public void setPosition(int pos) { |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
48 this.position = pos; |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
49 } |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
50 |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
51 public int getPosition() { |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
52 return position; |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
53 } |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
54 |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
55 public void setActive(int active) { |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
56 this.active = active; |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
57 } |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
58 |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
59 public int getActive() { |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
60 return active; |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
61 } |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
62 |
1715
a70e0cbc5e02
Added support for removing themes from output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1624
diff
changeset
|
63 public void setVisible(int visible) { |
a70e0cbc5e02
Added support for removing themes from output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1624
diff
changeset
|
64 this.visible = visible; |
a70e0cbc5e02
Added support for removing themes from output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1624
diff
changeset
|
65 } |
a70e0cbc5e02
Added support for removing themes from output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1624
diff
changeset
|
66 |
a70e0cbc5e02
Added support for removing themes from output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1624
diff
changeset
|
67 public int getVisible() { |
a70e0cbc5e02
Added support for removing themes from output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1624
diff
changeset
|
68 return visible; |
a70e0cbc5e02
Added support for removing themes from output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1624
diff
changeset
|
69 } |
a70e0cbc5e02
Added support for removing themes from output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1624
diff
changeset
|
70 |
1721
eb35570df0e8
Cosmetics, docs.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1715
diff
changeset
|
71 /** |
eb35570df0e8
Cosmetics, docs.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1715
diff
changeset
|
72 * Get uuid of related artifact. |
4736
b195fede1c3b
Remove trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4255
diff
changeset
|
73 * |
1721
eb35570df0e8
Cosmetics, docs.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1715
diff
changeset
|
74 * @return uuid of related artifact. |
eb35570df0e8
Cosmetics, docs.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1715
diff
changeset
|
75 */ |
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
76 public String getArtifact() { |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
77 return uuid; |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
78 } |
945
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
79 |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
80 public Node toXML(Document doc) { |
4255
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
81 ElementCreator ec = new ElementCreator(doc, |
945
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
82 ArtifactNamespaceContext.NAMESPACE_URI, |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
83 ArtifactNamespaceContext.NAMESPACE_PREFIX); |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
84 |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
85 Element facet = ec.create("theme"); |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
86 ec.addAttr(facet, "artifact", getArtifact(), true); |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
87 ec.addAttr(facet, "facet", getName(), true); |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
88 ec.addAttr(facet, "pos", String.valueOf(getPosition()), true); |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
89 ec.addAttr(facet, "active", String.valueOf(getActive()), true); |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
90 ec.addAttr(facet, "index", String.valueOf(getIndex()), true); |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
91 ec.addAttr(facet, "description", getDescription(), true); |
1715
a70e0cbc5e02
Added support for removing themes from output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1624
diff
changeset
|
92 ec.addAttr(facet, "visible", String.valueOf(getVisible()), true); |
945
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
93 |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
94 return facet; |
59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
95 } |
1061
b1b0a0b61845
Made facets cloneable with the right type.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
949
diff
changeset
|
96 |
b1b0a0b61845
Made facets cloneable with the right type.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
949
diff
changeset
|
97 public void set(ManagedFacet other) { |
4255
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
98 uuid = other.uuid; |
1061
b1b0a0b61845
Made facets cloneable with the right type.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
949
diff
changeset
|
99 position = other.position; |
4255
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
100 active = other.active; |
1061
b1b0a0b61845
Made facets cloneable with the right type.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
949
diff
changeset
|
101 } |
b1b0a0b61845
Made facets cloneable with the right type.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
949
diff
changeset
|
102 |
3076
5642a83420f2
FLYS artifacts: Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1721
diff
changeset
|
103 @Override |
1061
b1b0a0b61845
Made facets cloneable with the right type.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
949
diff
changeset
|
104 public Facet deepCopy() { |
b1b0a0b61845
Made facets cloneable with the right type.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
949
diff
changeset
|
105 ManagedFacet copy = new ManagedFacet(); |
4255
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
106 copy.set((DefaultFacet) this); |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
107 copy.set((ManagedFacet) this); |
1061
b1b0a0b61845
Made facets cloneable with the right type.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
949
diff
changeset
|
108 return copy; |
b1b0a0b61845
Made facets cloneable with the right type.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
949
diff
changeset
|
109 } |
4255
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
110 |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
111 @Override |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
112 public int compareTo(Object o) { |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
113 if (!(o instanceof ManagedFacet)) { |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
114 return -1; |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
115 } |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
116 |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
117 ManagedFacet other = (ManagedFacet) o; |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
118 |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
119 if (position < other.position) { |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
120 return -1; |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
121 } |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
122 else if (position > other.position) { |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
123 return 1; |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
124 } |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
125 else { |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
126 return 0; |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
127 } |
670e98f5a441
Fixed leak while merging facets.
Ingo Weinzierl <weinzierl.ingo@googlemail.com>
parents:
4049
diff
changeset
|
128 } |
346
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
129 } |
16161de47662
The Attributes of a collection are written into its DESCRIBE now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
130 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |