// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-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: 2011.05.27 at 03:59:32 dop. CEST // package cz.cuni.mff.peckam.java.origamist.files.jaxb; 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.XmlType; import cz.cuni.mff.peckam.java.origamist.common.GeneratedClassBase; import cz.cuni.mff.peckam.java.origamist.utils.ObservableList; import org.jvnet.jaxb2_commons.lang.Equals; import org.jvnet.jaxb2_commons.lang.EqualsStrategy; import org.jvnet.jaxb2_commons.lang.HashCode; import org.jvnet.jaxb2_commons.lang.HashCodeStrategy; import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy; import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy; import org.jvnet.jaxb2_commons.locator.ObjectLocator; import org.jvnet.jaxb2_commons.locator.util.LocatorUtils; /** * <p>Java class for Files complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="Files"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="file" type="{http://www.mff.cuni.cz/~peckam/java/origamist/files/v1}File" maxOccurs="unbounded"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlType(name = "Files", propOrder = { "file" }) @XmlAccessorType(XmlAccessType.PROPERTY) public class Files extends GeneratedClassBase implements Equals, HashCode { /** * Property file * */ public final static String FILE_PROPERTY = "file:cz.cuni.mff.peckam.java.origamist.files.jaxb.Files"; protected List<cz.cuni.mff.peckam.java.origamist.files.File> file = new ObservableList<cz.cuni.mff.peckam.java.origamist.files.File>(); public Files() { if (getClass().getName().equals("cz.cuni.mff.peckam.java.origamist.files.Files")) { init(); } } /** * Gets the value of the file 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 file property. * * <p> * For example, to add a new item, do as follows: * <pre> * getFile().add(newItem); * </pre> * * * <p>Objects of the following type(s) are allowed in the list: {@link cz.cuni.mff.peckam.java.origamist.files.File } * */ @XmlElement(required = true, type = cz.cuni.mff.peckam.java.origamist.files.File.class) public List<cz.cuni.mff.peckam.java.origamist.files.File> getFile() { if (file == null) { file = new ObservableList<cz.cuni.mff.peckam.java.origamist.files.File>(); } return this.file; } /** * * @return * Return an array of all list fields defined on this class and its superclasses. */ public List<?> [] getListFields() { return new List<?> [] {getFile()}; } /** * * @return * Return an array of property names of all list fields defined on this class and its superclasses. The order of the property names corresponds with the order of getListFields(). */ public String[] getListProperties() { return new String[] {FILE_PROPERTY }; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Files)) { return false; } if (this == object) { return true; } final Files that = ((Files) object); { List<cz.cuni.mff.peckam.java.origamist.files.File> lhsFile; lhsFile = this.getFile(); List<cz.cuni.mff.peckam.java.origamist.files.File> rhsFile; rhsFile = that.getFile(); if (!strategy.equals(LocatorUtils.property(thisLocator, "file", lhsFile), LocatorUtils.property(thatLocator, "file", rhsFile), lhsFile, rhsFile)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { List<cz.cuni.mff.peckam.java.origamist.files.File> theFile; theFile = this.getFile(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "file", theFile), currentHashCode, theFile); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }