// // 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 Categories complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="Categories"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="category" type="{http://www.mff.cuni.cz/~peckam/java/origamist/files/v1}Category" maxOccurs="unbounded"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlType(name = "Categories", propOrder = { "category" }) @XmlAccessorType(XmlAccessType.PROPERTY) public class Categories extends GeneratedClassBase implements Equals, HashCode { /** * Property category * */ public final static String CATEGORY_PROPERTY = "category:cz.cuni.mff.peckam.java.origamist.files.jaxb.Categories"; protected List<cz.cuni.mff.peckam.java.origamist.files.Category> category = new ObservableList<cz.cuni.mff.peckam.java.origamist.files.Category>(); public Categories() { if (getClass().getName().equals("cz.cuni.mff.peckam.java.origamist.files.Categories")) { init(); } } /** * Gets the value of the category 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 category property. * * <p> * For example, to add a new item, do as follows: * <pre> * getCategory().add(newItem); * </pre> * * * <p>Objects of the following type(s) are allowed in the list: {@link cz.cuni.mff.peckam.java.origamist.files.Category } * */ @XmlElement(required = true, type = cz.cuni.mff.peckam.java.origamist.files.Category.class) public List<cz.cuni.mff.peckam.java.origamist.files.Category> getCategory() { if (category == null) { category = new ObservableList<cz.cuni.mff.peckam.java.origamist.files.Category>(); } return this.category; } /** * * @return * Return an array of all list fields defined on this class and its superclasses. */ public List<?> [] getListFields() { return new List<?> [] {getCategory()}; } /** * * @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[] {CATEGORY_PROPERTY }; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Categories)) { return false; } if (this == object) { return true; } final Categories that = ((Categories) object); { List<cz.cuni.mff.peckam.java.origamist.files.Category> lhsCategory; lhsCategory = this.getCategory(); List<cz.cuni.mff.peckam.java.origamist.files.Category> rhsCategory; rhsCategory = that.getCategory(); if (!strategy.equals(LocatorUtils.property(thisLocator, "category", lhsCategory), LocatorUtils.property(thatLocator, "category", rhsCategory), lhsCategory, rhsCategory)) { 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.Category> theCategory; theCategory = this.getCategory(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "category", theCategory), currentHashCode, theCategory); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }