| /******************************************************************************* |
| * Copyright (c) 2013-2016 LAAS-CNRS (www.laas.fr) |
| * 7 Colonel Roche 31077 Toulouse - France |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Initial Contributors: |
| * Thierry Monteil : Project manager, technical co-manager |
| * Mahdi Ben Alaya : Technical co-manager |
| * Samir Medjiah : Technical co-manager |
| * Khalil Drira : Strategy expert |
| * Guillaume Garzone : Developer |
| * François Aïssaoui : Developer |
| * |
| * New contributors : |
| *******************************************************************************/ |
| // |
| // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 |
| // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> |
| // Any modifications to this file will be lost upon recompilation of the source schema. |
| // Generated on: 2015.04.15 at 03:56:27 PM CEST |
| // |
| |
| package org.eclipse.om2m.commons.resource; |
| |
| import java.math.BigInteger; |
| |
| import javax.xml.bind.annotation.XmlAccessType; |
| import javax.xml.bind.annotation.XmlAccessorType; |
| import javax.xml.bind.annotation.XmlElement; |
| import javax.xml.bind.annotation.XmlRootElement; |
| import javax.xml.bind.annotation.XmlSchemaType; |
| import javax.xml.bind.annotation.XmlType; |
| |
| import org.eclipse.om2m.commons.constants.MgmtDefinitionTypes; |
| import org.eclipse.om2m.commons.constants.ShortName; |
| |
| /** |
| * <p> |
| * Java class for anonymous complex type. |
| * |
| * <p> |
| * The following schema fragment specifies the expected content contained within |
| * this class. |
| * |
| * <pre> |
| * <complexType> |
| * <complexContent> |
| * <extension base="{http://www.onem2m.org/xml/protocols}mgmtResource"> |
| * <sequence> |
| * <element name="batteryLevel" type="{http://www.w3.org/2001/XMLSchema}unsignedInt"/> |
| * <element name="batteryStatus" type="{http://www.onem2m.org/xml/protocols}batteryStatus"/> |
| * <choice minOccurs="0"> |
| * <element name="childResource" type="{http://www.onem2m.org/xml/protocols}childResourceRef" maxOccurs="unbounded"/> |
| * <element ref="{http://www.onem2m.org/xml/protocols}subscription" maxOccurs="unbounded"/> |
| * </choice> |
| * </sequence> |
| * </extension> |
| * </complexContent> |
| * </complexType> |
| * </pre> |
| */ |
| @XmlAccessorType(XmlAccessType.FIELD) |
| @XmlType(name = "") |
| @XmlRootElement(name = ShortName.BATTERY) |
| public class Battery extends MgmtObjWithChildren { |
| |
| @XmlSchemaType(name = "unsignedInt") |
| @XmlElement(name = ShortName.BATTERY_LEVEL, namespace="") |
| protected long batteryLevel; |
| @XmlElement(name = ShortName.BATTERY_STATUS, required = true, namespace="") |
| protected BigInteger batteryStatus; |
| |
| |
| public Battery() { |
| super(); |
| setMgmtDefinition(MgmtDefinitionTypes.BATTERY); |
| } |
| |
| /** |
| * Gets the value of the batteryLevel property. |
| * |
| */ |
| public long getBatteryLevel() { |
| return batteryLevel; |
| } |
| |
| /** |
| * Sets the value of the batteryLevel property. |
| * |
| */ |
| public void setBatteryLevel(long value) { |
| this.batteryLevel = value; |
| } |
| |
| /** |
| * Gets the value of the batteryStatus property. |
| * |
| * @return possible object is {@link BigInteger } |
| * |
| */ |
| public BigInteger getBatteryStatus() { |
| return batteryStatus; |
| } |
| |
| /** |
| * Sets the value of the batteryStatus property. |
| * |
| * @param value |
| * allowed object is {@link BigInteger } |
| * |
| */ |
| public void setBatteryStatus(BigInteger value) { |
| this.batteryStatus = value; |
| } |
| |
| } |