/******************************************************************************* | |
* 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.persistence.Transient; | |
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 ApplicationAnnc complex type. | |
* | |
* <p>The ApplicationAnnc resource represents an active announcement of a registered | |
* application in an other SCL. ApplicationAnnc 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> | |
* <complexType name="ApplicationAnnc"> | |
* <complexContent> | |
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
* <sequence> | |
* <element ref="{http://uri.etsi.org/m2m}link"/> | |
* <element ref="{http://uri.etsi.org/m2m}accessRightID" minOccurs="0"/> | |
* <element ref="{http://uri.etsi.org/m2m}searchStrings" minOccurs="0"/> | |
* <element ref="{http://uri.etsi.org/m2m}expirationTime" minOccurs="0"/> | |
* <element ref="{http://uri.etsi.org/m2m}containersReference" minOccurs="0"/> | |
* <element ref="{http://uri.etsi.org/m2m}groupsReference" minOccurs="0"/> | |
* <element ref="{http://uri.etsi.org/m2m}accessRightsReference" minOccurs="0"/> | |
* </sequence> | |
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> | |
* </restriction> | |
* </complexContent> | |
* </complexType> | |
* </pre> | |
* | |
* | |
*/ | |
@XmlAccessorType(XmlAccessType.FIELD) | |
@XmlRootElement | |
@Entity(name=DBEntities.APPLICATION_ANNC_ENTITY) | |
public class ApplicationAnnc extends Resource { | |
@XmlElement(required = true) | |
@XmlSchemaType(name = "anyURI") | |
protected String link; | |
@XmlSchemaType(name = "dateTime") | |
protected String expirationTime; | |
@XmlSchemaType(name = "anyURI") | |
@Transient | |
protected String containersReference; | |
@XmlSchemaType(name = "anyURI") | |
@Transient | |
protected String groupsReference; | |
@XmlSchemaType(name = "anyURI") | |
@Transient | |
protected String accessRightsReference; | |
@XmlAttribute(name = "id") | |
@XmlSchemaType(name = "anyURI") | |
protected String id; | |
/** | |
* Gets the value of the property link. | |
* | |
* @return | |
* possible object is | |
* {@link String } | |
* | |
*/ | |
public String getLink() { | |
return link; | |
} | |
/** | |
* Sets the value of the property link. | |
* | |
* @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 containersReference property. | |
* | |
* @return | |
* possible object is | |
* {@link String } | |
* | |
*/ | |
public String getContainersReference() { | |
if (containersReference == null && uri != null) { | |
return uri + Refs.CONTAINERS_REF; | |
} else { | |
return containersReference; | |
} | |
} | |
/** | |
* Sets the value of the containersReference property. | |
* | |
* @param value | |
* allowed object is | |
* {@link String } | |
* | |
*/ | |
public void setContainersReference(String value) { | |
this.containersReference = value; | |
} | |
/** | |
* Gets the value of the groupsReference property. | |
* | |
* @return | |
* possible object is | |
* {@link String } | |
* | |
*/ | |
public String getGroupsReference() { | |
if (groupsReference == null && uri != null) { | |
return uri + Refs.GROUPS_REF; | |
} else { | |
return groupsReference; | |
} | |
} | |
/** | |
* Sets the value of the groupsReference property. | |
* | |
* @param value | |
* allowed object is | |
* {@link String } | |
* | |
*/ | |
public void setGroupsReference(String value) { | |
this.groupsReference = value; | |
} | |
/** | |
* Gets the value of the accessRightsReference property. | |
* | |
* @return | |
* possible object is | |
* {@link String } | |
* | |
*/ | |
public String getAccessRightsReference() { | |
if (accessRightsReference == null && uri != null) { | |
return uri + Refs.ACCESSRIGHTS_REF; | |
} else { | |
return accessRightsReference; | |
} | |
} | |
/** | |
* Sets the value of the accessRightsReference property. | |
* | |
* @param value | |
* allowed object is | |
* {@link String } | |
* | |
*/ | |
public void setAccessRightsReference(String value) { | |
this.accessRightsReference = 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; | |
} | |
public String toString() { | |
return "ApplicationAnnc [link=" + link + ", accessRightID=" | |
+ accessRightID + ", searchStrings=" + searchStrings | |
+ ", expirationTime=" + expirationTime | |
+ ", containersReference=" + containersReference | |
+ ", groupsReference=" + groupsReference | |
+ ", accessRightsReference=" + accessRightsReference + ", id=" | |
+ id + ", uri=" + uri + "]"; | |
} | |
} |