All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.andy2003.canio.kcd.Value Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2013.06.24 at 08:37:14 PM CEST 
//


package com.github.andy2003.canio.kcd;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <attribute name="type" default="unsigned">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}token">
 *             <enumeration value="unsigned"/>
 *             <enumeration value="signed"/>
 *             <enumeration value="single"/>
 *             <enumeration value="double"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *       <attribute name="slope" type="{http://www.w3.org/2001/XMLSchema}double" default="1" />
 *       <attribute name="intercept" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
 *       <attribute name="unit" type="{http://www.w3.org/2001/XMLSchema}string" default="1" />
 *       <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
 *       <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}double" default="1" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "Value") public class Value { @XmlAttribute(name = "type") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String type; @XmlAttribute(name = "slope") protected Double slope; @XmlAttribute(name = "intercept") protected Double intercept; @XmlAttribute(name = "unit") protected String unit; @XmlAttribute(name = "min") protected Double min; @XmlAttribute(name = "max") protected Double max; /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { if (type == null) { return "unsigned"; } else { return type; } } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the slope property. * * @return * possible object is * {@link Double } * */ public double getSlope() { if (slope == null) { return 1.0D; } else { return slope; } } /** * Sets the value of the slope property. * * @param value * allowed object is * {@link Double } * */ public void setSlope(Double value) { this.slope = value; } /** * Gets the value of the intercept property. * * @return * possible object is * {@link Double } * */ public double getIntercept() { if (intercept == null) { return 0.0D; } else { return intercept; } } /** * Sets the value of the intercept property. * * @param value * allowed object is * {@link Double } * */ public void setIntercept(Double value) { this.intercept = value; } /** * Gets the value of the unit property. * * @return * possible object is * {@link String } * */ public String getUnit() { if (unit == null) { return "1"; } else { return unit; } } /** * Sets the value of the unit property. * * @param value * allowed object is * {@link String } * */ public void setUnit(String value) { this.unit = value; } /** * Gets the value of the min property. * * @return * possible object is * {@link Double } * */ public double getMin() { if (min == null) { return 0.0D; } else { return min; } } /** * Sets the value of the min property. * * @param value * allowed object is * {@link Double } * */ public void setMin(Double value) { this.min = value; } /** * Gets the value of the max property. * * @return * possible object is * {@link Double } * */ public double getMax() { if (max == null) { return 1.0D; } else { return max; } } /** * Sets the value of the max property. * * @param value * allowed object is * {@link Double } * */ public void setMax(Double value) { this.max = value; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy