| package org.eclipse.om2m.commons.obix; |
| |
| 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; |
| /** |
| * Real oBIX object representing a real number. |
| * @author Francois Aissaoui |
| * |
| */ |
| @XmlAccessorType(XmlAccessType.FIELD) |
| @XmlType(name = "real") |
| @XmlRootElement |
| public class Real extends Obj{ |
| |
| @XmlAttribute(name = "val") |
| protected Double val; |
| @XmlAttribute(name = "name") |
| protected String name; |
| @XmlAttribute(name = "href") |
| protected String href; |
| @XmlAttribute(name = "null") |
| protected Boolean _null; |
| |
| public Real(){} |
| |
| public Real(String name, double val){ |
| this.name = name ; |
| this.val = Double.valueOf(val); |
| } |
| |
| /** |
| * @return the val |
| */ |
| public Double getVal() { |
| return val; |
| } |
| |
| /** |
| * @param val the val to set |
| */ |
| public void setVal(Double val) { |
| this.val = val; |
| } |
| |
| /** |
| * @return the name |
| */ |
| public String getName() { |
| return name; |
| } |
| |
| /** |
| * @param name the name to set |
| */ |
| public void setName(String name) { |
| this.name = name; |
| } |
| |
| /** |
| * @return the href |
| */ |
| public String getHref() { |
| return href; |
| } |
| |
| /** |
| * @param href the href to set |
| */ |
| public void setHref(String href) { |
| this.href = href; |
| } |
| |
| /** |
| * @return the _null |
| */ |
| public Boolean get_null() { |
| return _null; |
| } |
| |
| /** |
| * @param _null the _null to set |
| */ |
| public void set_null(Boolean _null) { |
| this._null = _null; |
| } |
| |
| } |