| /******************************************************************************* |
| * Copyright (c) 2013-2020 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 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * 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 java.util.ArrayList; |
| import java.util.List; |
| |
| import javax.xml.bind.annotation.XmlAccessType; |
| import javax.xml.bind.annotation.XmlAccessorType; |
| import javax.xml.bind.annotation.XmlElement; |
| import javax.xml.bind.annotation.XmlList; |
| import javax.xml.bind.annotation.XmlSeeAlso; |
| import javax.xml.bind.annotation.XmlType; |
| |
| import org.eclipse.om2m.commons.constants.ShortName; |
| |
| /** |
| * <p> |
| * Java class for announcedMgmtResource complex type. |
| * |
| * <p> |
| * The following schema fragment specifies the expected content contained within |
| * this class. |
| * |
| * <pre> |
| * <complexType name="announcedMgmtResource"> |
| * <complexContent> |
| * <extension base="{http://www.onem2m.org/xml/protocols}announcedResource"> |
| * <sequence> |
| * <element name="mgmtDefinition" type="{http://www.onem2m.org/xml/protocols}mgmtDefinition"/> |
| * <element name="objectIDs" type="{http://www.onem2m.org/xml/protocols}listOfURIs" minOccurs="0"/> |
| * <element name="objectPaths" type="{http://www.onem2m.org/xml/protocols}listOfURIs" minOccurs="0"/> |
| * <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| * </sequence> |
| * </extension> |
| * </complexContent> |
| * </complexType> |
| * </pre> |
| * |
| * |
| */ |
| @XmlAccessorType(XmlAccessType.FIELD) |
| @XmlType(name = "announcedMgmtResource", propOrder = { "mgmtDefinition", |
| "objectIDs", "objectPaths", "description", "subscriptions", "childResource" }) |
| @XmlSeeAlso({ EventLogAnnc.class, RebootAnnc.class, DeviceCapabilityAnnc.class, |
| DeviceInfoAnnc.class, SoftwareAnnc.class, FirmwareAnnc.class, |
| AreaNwkDeviceInfoAnnc.class, AreaNwkInfoAnnc.class, BatteryAnnc.class, |
| MemoryAnnc.class }) |
| public class AnnouncedMgmtResource extends AnnouncedResource { |
| |
| @XmlElement(name = ShortName.MGMT_DEF, required = true, namespace="") |
| protected BigInteger mgmtDefinition; |
| |
| @XmlList |
| @XmlElement(name = ShortName.OBJ_IDS, namespace="") |
| protected List<String> objectIDs; |
| |
| @XmlList |
| @XmlElement(name = ShortName.OBJ_PATHS, namespace="") |
| protected List<String> objectPaths; |
| |
| @XmlElement(name = ShortName.DESCRIPTION, namespace="") |
| protected String description; |
| |
| @XmlElement(name = ShortName.CHILD_RESOURCE, namespace="") |
| protected List<ChildResourceRef> childResource; |
| |
| @XmlElement(namespace = "http://www.onem2m.org/xml/protocols", name = ShortName.SUB) |
| protected List<Subscription> subscriptions; |
| |
| /** |
| * Gets the value of the mgmtDefinition property. |
| * |
| * @return possible object is {@link BigInteger } |
| * |
| */ |
| public BigInteger getMgmtDefinition() { |
| return mgmtDefinition; |
| } |
| |
| /** |
| * Sets the value of the mgmtDefinition property. |
| * |
| * @param value |
| * allowed object is {@link BigInteger } |
| * |
| */ |
| protected void setMgmtDefinition(BigInteger value) { |
| this.mgmtDefinition = value; |
| } |
| |
| /** |
| * Gets the value of the objectIDs property. |
| * |
| * <p> |
| * This accessor method returns a reference to the live list, not a |
| * snapshot. Therefore any modification you make to the returned list will |
| * be present inside the JAXB object. This is why there is not a |
| * <CODE>set</CODE> method for the objectIDs property. |
| * |
| * <p> |
| * For example, to add a new item, do as follows: |
| * |
| * <pre> |
| * getObjectIDs().add(newItem); |
| * </pre> |
| * |
| * |
| * <p> |
| * Objects of the following type(s) are allowed in the list {@link String } |
| * |
| * |
| */ |
| public List<String> getObjectIDs() { |
| if (objectIDs == null) { |
| objectIDs = new ArrayList<String>(); |
| } |
| return this.objectIDs; |
| } |
| |
| /** |
| * Gets the value of the objectPaths property. |
| * |
| * <p> |
| * This accessor method returns a reference to the live list, not a |
| * snapshot. Therefore any modification you make to the returned list will |
| * be present inside the JAXB object. This is why there is not a |
| * <CODE>set</CODE> method for the objectPaths property. |
| * |
| * <p> |
| * For example, to add a new item, do as follows: |
| * |
| * <pre> |
| * getObjectPaths().add(newItem); |
| * </pre> |
| * |
| * |
| * <p> |
| * Objects of the following type(s) are allowed in the list {@link String } |
| * |
| * |
| */ |
| public List<String> getObjectPaths() { |
| if (objectPaths == null) { |
| objectPaths = new ArrayList<String>(); |
| } |
| return this.objectPaths; |
| } |
| |
| /** |
| * Gets the value of the description property. |
| * |
| * @return possible object is {@link String } |
| * |
| */ |
| public String getDescription() { |
| return description; |
| } |
| |
| /** |
| * Sets the value of the description property. |
| * |
| * @param value |
| * allowed object is {@link String } |
| * |
| */ |
| public void setDescription(String value) { |
| this.description = value; |
| } |
| |
| /** |
| * Gets the value of the childResource property. |
| * |
| * <p> |
| * This accessor method returns a reference to the live list, not a |
| * snapshot. Therefore any modification you make to the returned list will |
| * be present inside the JAXB object. This is why there is not a |
| * <CODE>set</CODE> method for the childResource property. |
| * |
| * <p> |
| * For example, to add a new item, do as follows: |
| * |
| * <pre> |
| * getChildResource().add(newItem); |
| * </pre> |
| * |
| * |
| * <p> |
| * Objects of the following type(s) are allowed in the list |
| * {@link ChildResourceRef } |
| * |
| * |
| */ |
| public List<ChildResourceRef> getChildResource() { |
| if (childResource == null) { |
| childResource = new ArrayList<ChildResourceRef>(); |
| } |
| return this.childResource; |
| } |
| |
| /** |
| * Gets the value of the subscription property. |
| * |
| * <p> |
| * This accessor method returns a reference to the live list, not a |
| * snapshot. Therefore any modification you make to the returned list will |
| * be present inside the JAXB object. This is why there is not a |
| * <CODE>set</CODE> method for the subscription property. |
| * |
| * <p> |
| * For example, to add a new item, do as follows: |
| * |
| * <pre> |
| * getSubscription().add(newItem); |
| * </pre> |
| * |
| * |
| * <p> |
| * Objects of the following type(s) are allowed in the list |
| * {@link Subscription } |
| * |
| * |
| */ |
| public List<Subscription> getSubscriptions() { |
| if (subscriptions == null) { |
| subscriptions = new ArrayList<Subscription>(); |
| } |
| return this.subscriptions; |
| } |
| |
| } |