/******************************************************************************* | |
* 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: 2013.06.24 at 02:12:54 AM CEST | |
// | |
package org.eclipse.om2m.commons.resource; | |
import java.util.ArrayList; | |
import java.util.List; | |
import javax.persistence.Embeddable; | |
import javax.persistence.Lob; | |
import javax.xml.bind.annotation.XmlAccessType; | |
import javax.xml.bind.annotation.XmlAccessorType; | |
/** | |
* <p>Java Class for PermissionFlagListType complex type. | |
* | |
* <p>The following schema fragment specifies the expected content contained within this class. | |
* | |
* <pre> | |
* <complexType name="PermissionFlagListType"> | |
* <complexContent> | |
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
* <sequence> | |
* <element ref="{http://uri.etsi.org/m2m}flag" maxOccurs="unbounded" minOccurs="0"/> | |
* </sequence> | |
* </restriction> | |
* </complexContent> | |
* </complexType> | |
* </pre> | |
* | |
* | |
*/ | |
@XmlAccessorType(XmlAccessType.FIELD) | |
@Embeddable | |
public class PermissionFlagListType { | |
@Lob | |
protected List<PermissionFlagType> flag; | |
/** | |
* Gets the value of the flag 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 flag property. | |
* | |
* <p> | |
* For example, to add a new item, do as follows: | |
* <pre> | |
* getFlag().add(newItem); | |
* </pre> | |
* | |
* | |
* <p> | |
* Objects of the following type(s) are allowed in the list | |
* {@link PermissionFlagType } | |
* | |
* | |
*/ | |
public List<PermissionFlagType> getFlag() { | |
if (flag == null) { | |
flag = new ArrayList<PermissionFlagType>(); | |
} | |
return this.flag; | |
} | |
@Override | |
public int hashCode() { | |
final int prime = 31; | |
int result = 1; | |
result = prime * result + ((flag == null) ? 0 : flag.hashCode()); | |
return result; | |
} | |
@Override | |
public boolean equals(Object obj) { | |
if (this == obj) { | |
return true; | |
} | |
if (obj == null) { | |
return false; | |
} | |
if (getClass() != obj.getClass()) { | |
return false; | |
} | |
PermissionFlagListType other = (PermissionFlagListType) obj; | |
if (flag == null) { | |
if (other.flag != null) { | |
return false; | |
} | |
} else if (!flag.equals(other.flag)) { | |
return false; | |
} | |
return true; | |
} | |
} |