blob: 68a1799e9aa71223301e208c9130447ec5473015 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013-2015 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
*
* Contributors:
* Thierry Monteil (Project co-founder) - Management and initial specification,
* conception and documentation.
* Mahdi Ben Alaya (Project co-founder) - Management and initial specification,
* conception, implementation, test and documentation.
* Christophe Chassot - Management and initial specification.
* Khalil Drira - Management and initial specification.
* Yassine Banouar - Initial specification, conception, implementation, test
* and documentation.
* Guillaume Garzone - Conception, implementation, test and documentation.
* Francois Aissaoui - Conception, implementation, test and documentation.
******************************************************************************/
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// 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: 2014.01.25 at 05:56:27 PM CET
//
package org.eclipse.om2m.commons.resource;
import javax.persistence.Entity;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
/**
* <p>Java class for GroupAnnc complex type.
*
* <p>GroupAnnc resource represents an active announcement of a registered
* {@link AccessRight} in an other SCL. GroupAnnc resource keeps a link to
* the original resource. That will be the reference returned during discovery.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="GroupAnnc">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element ref="{http://uri.etsi.org/m2m}link"/>
* &lt;element ref="{http://uri.etsi.org/m2m}accessRightID" minOccurs="0"/>
* &lt;element ref="{http://uri.etsi.org/m2m}searchStrings" minOccurs="0"/>
* &lt;element ref="{http://uri.etsi.org/m2m}expirationTime" minOccurs="0"/>
* &lt;/sequence>
* &lt;attribute ref="{http://uri.etsi.org/m2m}id"/>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
@Entity(name=DBEntities.GROUP_ANNC_ENTITY)
public class GroupAnnc extends Resource {
@XmlElement(required = true)
@XmlSchemaType(name = "anyURI")
protected String link;
@XmlSchemaType(name = "dateTime")
protected String expirationTime;
@XmlAttribute(name = "id", namespace = "http://uri.etsi.org/m2m")
@XmlSchemaType(name = "anyURI")
protected String id;
/**
* Gets the value of the link property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLink() {
return link;
}
/**
* Sets the value of the link property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLink(String value) {
this.link = value;
}
/**
* Gets the value of the expirationTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getExpirationTime() {
return expirationTime;
}
/**
* Sets the value of the expirationTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setExpirationTime(String value) {
this.expirationTime = value;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Copy the content into the current one
* @param resource
*/
public void copyOf(GroupAnnc resource) {
this.accessRightID = resource.accessRightID;
this.expirationTime = resource.expirationTime;
this.searchStrings = resource.searchStrings;
}
}