| /******************************************************************************* |
| * 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 javax.xml.bind.annotation.XmlAccessType; |
| import javax.xml.bind.annotation.XmlAccessorType; |
| import javax.xml.bind.annotation.XmlAttribute; |
| import javax.xml.bind.annotation.XmlElement; |
| import javax.xml.bind.annotation.XmlSchemaType; |
| import javax.xml.bind.annotation.XmlType; |
| import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; |
| import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
| |
| import org.eclipse.om2m.commons.constants.ShortName; |
| |
| /** |
| * <p> |
| * Java class for childResourceRef complex type. |
| * |
| * <p> |
| * The following schema fragment specifies the expected content contained within |
| * this class. |
| * |
| * <pre> |
| * <complexType name="childResourceRef"> |
| * <simpleContent> |
| * <extension base="<http://www.w3.org/2001/XMLSchema>anyURI"> |
| * <attribute name="resourceName" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" /> |
| * <attribute name="type" use="required" type="{http://www.onem2m.org/xml/protocols}resourceType" /> |
| * </extension> |
| * </simpleContent> |
| * </complexType> |
| * </pre> |
| * |
| * |
| */ |
| @XmlAccessorType(XmlAccessType.FIELD) |
| @XmlType(name = ShortName.CHILD_RESOURCE) |
| public class ChildResourceRef { |
| |
| @XmlElement(name="val", namespace="") |
| @XmlSchemaType(name = "anyURI") |
| protected String value; |
| @XmlAttribute(name = ShortName.CHILD_RESOURCE_NAME, required = true) |
| @XmlJavaTypeAdapter(CollapsedStringAdapter.class) |
| @XmlSchemaType(name = "NCName") |
| protected String resourceName; |
| @XmlAttribute(name = ShortName.CHILD_RESOURCE_TYPE, required = true) |
| protected BigInteger type; |
| @XmlAttribute(name=ShortName.CHILD_RESOURCE_SPID, required=false) |
| @XmlSchemaType(name = "anyURI") |
| protected String spid; |
| |
| /** |
| * Gets the value of the value property. |
| * |
| * @return possible object is {@link String } |
| * |
| */ |
| public String getValue() { |
| return value; |
| } |
| |
| /** |
| * Sets the value of the value property. |
| * |
| * @param value |
| * allowed object is {@link String } |
| * |
| */ |
| public void setValue(String value) { |
| this.value = value; |
| } |
| |
| /** |
| * Gets the value of the resourceName property. |
| * |
| * @return possible object is {@link String } |
| * |
| */ |
| public String getResourceName() { |
| return resourceName; |
| } |
| |
| /** |
| * Sets the value of the resourceName property. |
| * |
| * @param value |
| * allowed object is {@link String } |
| * |
| */ |
| public void setResourceName(String value) { |
| this.resourceName = value; |
| } |
| |
| /** |
| * Gets the value of the type property. |
| * |
| * @return possible object is {@link BigInteger } |
| * |
| */ |
| public BigInteger getType() { |
| return type; |
| } |
| |
| /** |
| * Sets the value of the type property. |
| * |
| * @param value |
| * allowed object is {@link BigInteger } |
| * |
| */ |
| public void setType(BigInteger value) { |
| this.type = value; |
| } |
| |
| public void setType(int value){ |
| this.type = BigInteger.valueOf(value); |
| } |
| |
| /** |
| * @return the spid |
| */ |
| public String getSpid() { |
| return spid; |
| } |
| |
| /** |
| * @param spid the spid to set |
| */ |
| public void setSpid(String spid) { |
| this.spid = spid; |
| } |
| |
| |
| |
| } |