comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/ManagedDomFacet.java @ 1715:a70e0cbc5e02

Added support for removing themes from output. flys-artifacts/trunk@2989 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 17 Oct 2011 14:55:45 +0000
parents 614ffddb860e
children b3a67d946568
comparison
equal deleted inserted replaced
1714:004b1b0838d6 1715:a70e0cbc5e02
24 24
25 private static Logger logger = Logger.getLogger(ManagedDomFacet.class); 25 private static Logger logger = Logger.getLogger(ManagedDomFacet.class);
26 26
27 27
28 public ManagedDomFacet(Element facet) { 28 public ManagedDomFacet(Element facet) {
29 super(null, -1, null, null, -1, -1); 29 super(null, -1, null, null, -1, -1, -1);
30 30
31 this.facet = facet; 31 this.facet = facet;
32 } 32 }
33 33
34 34
127 String.valueOf(active)); 127 String.valueOf(active));
128 } 128 }
129 129
130 130
131 @Override 131 @Override
132 public int getVisible() {
133 if (this.visible < 0) {
134 String visible = facet.getAttributeNS(
135 ArtifactNamespaceContext.NAMESPACE_URI, "visible");
136
137 if (visible != null && visible.length() > 0) {
138 this.visible = Integer.parseInt(visible);
139 }
140 }
141
142 return this.visible;
143 }
144
145
146 @Override
147 public void setVisible(int visible) {
148 this.visible = visible;
149
150 facet.setAttributeNS(
151 ArtifactNamespaceContext.NAMESPACE_URI,
152 "visible",
153 String.valueOf(getVisible()));
154 }
155
156
157 @Override
132 public String getArtifact() { 158 public String getArtifact() {
133 if (this.uuid == null || this.uuid.length() == 0) { 159 if (this.uuid == null || this.uuid.length() == 0) {
134 String uuid = facet.getAttributeNS( 160 String uuid = facet.getAttributeNS(
135 ArtifactNamespaceContext.NAMESPACE_URI, "artifact"); 161 ArtifactNamespaceContext.NAMESPACE_URI, "artifact");
136 162

http://dive4elements.wald.intevation.org