All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ogema.serialization.jaxb.BooleanArrayResource Maven / Gradle / Ivy

There is a newer version: 2.2.1_1
Show newest version
/**
 * This file is part of OGEMA.
 *
 * OGEMA is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3
 * as published by the Free Software Foundation.
 *
 * OGEMA is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with OGEMA. If not, see .
 */
package org.ogema.serialization.jaxb;

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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import static org.ogema.serialization.JaxbResource.NS_OGEMA_REST;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BooleanArrayResource", namespace = NS_OGEMA_REST, propOrder = { "values" })
//@XmlRootElement(name = "resource", namespace = NS_OGEMA_REST)
public class BooleanArrayResource extends Resource {

	@XmlList
	@XmlElement(required = true)
	protected List values;

	public List getValues() {
        if (values == null) {
            values = new ArrayList<>();
        }
        return this.values;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy