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

se.mdh.nuget.modell.Packages Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version

package se.mdh.nuget.modell;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 

Java class for packagesType complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="packagesType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="package" type="{}packageType" maxOccurs="unbounded"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "packagesType", propOrder = { "packages" }) @XmlRootElement(name = "packages") public class Packages implements Serializable { @XmlElement(name = "package", required = true) @NotNull @Size(min = 1) @Valid protected List packages; /** * Gets the value of the packages property. * *

* 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 set method for the packages property. * *

* For example, to add a new item, do as follows: *

     *    getPackages().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link PackageType } * * */ public List getPackages() { if (packages == null) { packages = new ArrayList(); } return this.packages; } /** * Generates a String representation of the contents of this type. * This is an extension method, produced by the 'ts' xjc plugin * */ @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy