uk.gov.legislation.namespaces.metadata.Alternatives Maven / Gradle / Ivy
Show all versions of legislation-gov-uk Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.08.07 at 06:17:52 PM CEST
//
package uk.gov.legislation.namespaces.metadata;
import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Alternative" type="{http://www.legislation.gov.uk/namespaces/metadata}AlterType" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"alternatives"
})
@XmlRootElement(name = "Alternatives")
public class Alternatives {
@XmlElement(name = "Alternative", required = true)
protected List alternatives;
/**
* Gets the value of the alternatives 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 alternatives property.
*
*
* For example, to add a new item, do as follows:
*
* getAlternatives().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AlterType }
*
*
*/
public List getAlternatives() {
if (alternatives == null) {
alternatives = new ArrayList<>();
}
return this.alternatives;
}
}