comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/FlowVelocityMeasurementArtifact.java @ 4497:a2735a4bf75e

Change facets member variable to private Don't allow direct access to the facets member variable. Use the addFacets and getFacets methods instead.
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 14 Nov 2012 11:15:57 +0100
parents cc6323401643
children
comparison
equal deleted inserted replaced
4496:d8992459b408 4497:a2735a4bf75e
66 66
67 67
68 /** Create a new state with bogus output. */ 68 /** Create a new state with bogus output. */
69 protected State spawnState() { 69 protected State spawnState() {
70 state = new StaticState(STATIC_STATE_NAME); 70 state = new StaticState(STATIC_STATE_NAME);
71 List<Facet> fs = facets.get(STATIC_STATE_NAME); 71 List<Facet> fs = getFacets(STATIC_STATE_NAME);
72 DefaultOutput output = new DefaultOutput( 72 DefaultOutput output = new DefaultOutput(
73 "general", 73 "general",
74 "general", 74 "general",
75 "image/png", 75 "image/png",
76 fs, 76 fs,
109 // store relevant parts of code as data. 109 // store relevant parts of code as data.
110 Facet facet = new FlowVelocityMeasurementFacet( 110 Facet facet = new FlowVelocityMeasurementFacet(
111 FLOW_VELOCITY_MEASUREMENT, 111 FLOW_VELOCITY_MEASUREMENT,
112 "flowvelocity-name"); 112 "flowvelocity-name");
113 fs.add(facet); 113 fs.add(facet);
114 facets.put(state.getID(), fs); 114 addFacets(state.getID(), fs);
115 addStringData(DATA_NAME, code); 115 addStringData(DATA_NAME, code);
116 } 116 }
117 117
118 spawnState(); 118 spawnState();
119 super.setup(identifier, factory, context, callMeta, data); 119 super.setup(identifier, factory, context, callMeta, data);

http://dive4elements.wald.intevation.org