/*
* Copyright 2008, Plutext Pty Ltd.
*
* This file is part of Plutext-Server.
Plutext-Server is free software: you can redistribute it and/or modify
it under the terms of version 3 of the GNU Affero General Public License
as published by the Free Software Foundation.
Plutext-Server 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Plutext-Server. If not, see <http://www.fsf.org/licensing/licenses/>.
*/
package org.plutext.transforms;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="changeset" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute name="number" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
* <attribute name="modifier" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="date" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </simpleContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"changeset"
})
@XmlRootElement(name = "changesets")
public class Changesets {
protected List<Changesets.Changeset> changeset;
/**
* Gets the value of the changeset 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 changeset property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getChangeset().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Changesets.Changeset }
*
*
*/
public List<Changesets.Changeset> getChangeset() {
if (changeset == null) {
changeset = new ArrayList<Changesets.Changeset>();
}
return this.changeset;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute name="number" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
* <attribute name="modifier" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="date" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"value"
})
public static class Changeset {
@XmlValue
protected String value;
@XmlAttribute(namespace = "http://www.plutext.org/transforms", required = true)
@XmlSchemaType(name = "unsignedInt")
protected long number;
@XmlAttribute(namespace = "http://www.plutext.org/transforms", required = true)
protected String modifier;
@XmlAttribute(namespace = "http://www.plutext.org/transforms", required = true)
protected String date;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets the value of the number property.
*
*/
public long getNumber() {
return number;
}
/**
* Sets the value of the number property.
*
*/
public void setNumber(long value) {
this.number = value;
}
/**
* Gets the value of the modifier property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getModifier() {
return modifier;
}
/**
* Sets the value of the modifier property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setModifier(String value) {
this.modifier = value;
}
/**
* Gets the value of the date property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDate() {
return date;
}
/**
* Sets the value of the date property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDate(String value) {
this.date = value;
}
}
}