// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // 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: 2012.11.13 at 06:00:06 PM CET // package eu.prestoprime.premis; 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.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for premisComplexType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="premisComplexType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element ref="{info:lc/xmlns/premis-v2}object" maxOccurs="unbounded"/> * <element ref="{info:lc/xmlns/premis-v2}event" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{info:lc/xmlns/premis-v2}agent" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{info:lc/xmlns/premis-v2}rights" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * <attribute name="version" use="required" type="{info:lc/xmlns/premis-v2}versionSimpleType" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "premisComplexType", propOrder = { "object", "event", "agent", "rights" }) public class PremisComplexType { @XmlElement(required = true) protected List<ObjectComplexType> object; protected List<EventComplexType> event; protected List<AgentComplexType> agent; protected List<RightsComplexType> rights; @XmlAttribute(name = "version", required = true) protected String version; /** * Gets the value of the object 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 object property. * * <p> * For example, to add a new item, do as follows: * <pre> * getObject().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ObjectComplexType } * * */ public List<ObjectComplexType> getObject() { if (object == null) { object = new ArrayList<ObjectComplexType>(); } return this.object; } /** * Gets the value of the event 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 event property. * * <p> * For example, to add a new item, do as follows: * <pre> * getEvent().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link EventComplexType } * * */ public List<EventComplexType> getEvent() { if (event == null) { event = new ArrayList<EventComplexType>(); } return this.event; } /** * Gets the value of the agent 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 agent property. * * <p> * For example, to add a new item, do as follows: * <pre> * getAgent().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link AgentComplexType } * * */ public List<AgentComplexType> getAgent() { if (agent == null) { agent = new ArrayList<AgentComplexType>(); } return this.agent; } /** * Gets the value of the rights 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 rights property. * * <p> * For example, to add a new item, do as follows: * <pre> * getRights().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link RightsComplexType } * * */ public List<RightsComplexType> getRights() { if (rights == null) { rights = new ArrayList<RightsComplexType>(); } return this.rights; } /** * Gets the value of the version property. * * @return * possible object is * {@link String } * */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link String } * */ public void setVersion(String value) { this.version = value; } }