/******************************************************************************* * Copyright (c) 2011 IRIS/DMC. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * * Contributors: * IRIS/DMC- initial API and implementation * * ACKNOWLEDGEMENT * This software was developed as part of a project supported by * Cooperative Agreement Number G10AC00533 from the United States * Geological Survey. Its contents are solely the responsibility of * the authors and the USGS is not responsible for the efficacy, * safety, or suitability of this software. ******************************************************************************/ import java.io.IOException; public class B58{ private String units; private String description; private Double frequency; private Double sensitivity; public B58(){ } public B58(Double sensitivity, Double frequency){ this.frequency = frequency; this.sensitivity = sensitivity; } public B58(String units, String description, Double sensitivity, Double frequency){ this.units=units; this.description = description; this.frequency = frequency; this.sensitivity = sensitivity; } public String getUnits() { return units; } public void setUnits(String units) { this.units = units; } public Double getFrequency() { return frequency; } public void setFrequency(Double frequency) { this.frequency = frequency; } public Double getSensitivity() { return sensitivity; } public void setSensitivity(Double sensitivity) { this.sensitivity = sensitivity; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public void writeXml(XMLWriter out) throws IOException{ out.startElement(Schema.STAGE_SENSITIVITY); out.startElement(Schema.SENSITIVITY_VALUE); out.value(sensitivity); out.endElement(); out.startElement(Schema.GAIN_UNITS); out.value(units); out.endElement(); out.startElement(Schema.FREQUENCY); out.value(frequency); out.endElement(); out.endElement(); } }