// // 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.XmlAttribute; 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>Provided property: files * <p>Provided property: categories * <p>Provided property: id * <p>Java class for Category complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="Category"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="name" type="{http://www.mff.cuni.cz/~peckam/java/origamist/common/v1}LangString" maxOccurs="unbounded"/> * <element name="files" type="{http://www.mff.cuni.cz/~peckam/java/origamist/files/v1}Files" minOccurs="0"/> * <element name="categories" type="{http://www.mff.cuni.cz/~peckam/java/origamist/files/v1}Categories" minOccurs="0"/> * </sequence> * <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlType(name = "Category", propOrder = { "name", "files", "categories" }) @XmlAccessorType(XmlAccessType.PROPERTY) public class Category extends GeneratedClassBase implements Equals, HashCode { protected cz.cuni.mff.peckam.java.origamist.files.Files files; /** * Property files * */ public final static String FILES_PROPERTY = "files:cz.cuni.mff.peckam.java.origamist.files.jaxb.Category"; protected cz.cuni.mff.peckam.java.origamist.files.Categories categories; /** * Property categories * */ public final static String CATEGORIES_PROPERTY = "categories:cz.cuni.mff.peckam.java.origamist.files.jaxb.Category"; protected String id; /** * Property id * */ public final static String ID_PROPERTY = "id:cz.cuni.mff.peckam.java.origamist.files.jaxb.Category"; /** * Property name * */ public final static String NAME_PROPERTY = "name:cz.cuni.mff.peckam.java.origamist.files.jaxb.Category"; protected List<cz.cuni.mff.peckam.java.origamist.common.LangString> name = new ObservableList<cz.cuni.mff.peckam.java.origamist.common.LangString>(); public Category() { if (getClass().getName().equals("cz.cuni.mff.peckam.java.origamist.files.Category")) { init(); } } /** * Gets the value of the name 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 name property. * * <p> * For example, to add a new item, do as follows: * <pre> * getName().add(newItem); * </pre> * * * <p>Objects of the following type(s) are allowed in the list: {@link cz.cuni.mff.peckam.java.origamist.common.LangString } * */ @XmlElement(required = true, type = cz.cuni.mff.peckam.java.origamist.common.LangString.class) public List<cz.cuni.mff.peckam.java.origamist.common.LangString> getName() { if (name == null) { name = new ObservableList<cz.cuni.mff.peckam.java.origamist.common.LangString>(); } return this.name; } /** * Gets the value of the files property. * * @return * possible object is * {@link cz.cuni.mff.peckam.java.origamist.files.jaxb.Files } * */ @XmlElement(type = cz.cuni.mff.peckam.java.origamist.files.Files.class) public cz.cuni.mff.peckam.java.origamist.files.Files getFiles() { return files; } /** * Sets the value of the files property. * * @param value * allowed object is * {@link cz.cuni.mff.peckam.java.origamist.files.jaxb.Files } * */ public void setFiles(cz.cuni.mff.peckam.java.origamist.files.Files value) { cz.cuni.mff.peckam.java.origamist.files.Files old = this.files; this.files = ((cz.cuni.mff.peckam.java.origamist.files.Files) value); if (((old!= value)&&((old == null)||(value == null)))||((old!= null)&&(!old.equals(value)))) { support.firePropertyChange(Category.FILES_PROPERTY, old, value); } } /** * Gets the value of the categories property. * * @return * possible object is * {@link cz.cuni.mff.peckam.java.origamist.files.jaxb.Categories } * */ @XmlElement(type = cz.cuni.mff.peckam.java.origamist.files.Categories.class) public cz.cuni.mff.peckam.java.origamist.files.Categories getCategories() { return categories; } /** * Sets the value of the categories property. * * @param value * allowed object is * {@link cz.cuni.mff.peckam.java.origamist.files.jaxb.Categories } * */ public void setCategories(cz.cuni.mff.peckam.java.origamist.files.Categories value) { cz.cuni.mff.peckam.java.origamist.files.Categories old = this.categories; this.categories = ((cz.cuni.mff.peckam.java.origamist.files.Categories) value); if (((old!= value)&&((old == null)||(value == null)))||((old!= null)&&(!old.equals(value)))) { support.firePropertyChange(Category.CATEGORIES_PROPERTY, old, value); } } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ @XmlAttribute(required = true) public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { String old = this.id; this.id = value; if (((old!= value)&&((old == null)||(value == null)))||((old!= null)&&(!old.equals(value)))) { support.firePropertyChange(Category.ID_PROPERTY, old, value); } } /** * * @return * Return an array of all list fields defined on this class and its superclasses. */ public List<?> [] getListFields() { return new List<?> [] {getName()}; } /** * * @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[] {NAME_PROPERTY }; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Category)) { return false; } if (this == object) { return true; } final Category that = ((Category) object); { List<cz.cuni.mff.peckam.java.origamist.common.LangString> lhsName; lhsName = this.getName(); List<cz.cuni.mff.peckam.java.origamist.common.LangString> rhsName; rhsName = that.getName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName)) { return false; } } { cz.cuni.mff.peckam.java.origamist.files.Files lhsFiles; lhsFiles = this.getFiles(); cz.cuni.mff.peckam.java.origamist.files.Files rhsFiles; rhsFiles = that.getFiles(); if (!strategy.equals(LocatorUtils.property(thisLocator, "files", lhsFiles), LocatorUtils.property(thatLocator, "files", rhsFiles), lhsFiles, rhsFiles)) { return false; } } { cz.cuni.mff.peckam.java.origamist.files.Categories lhsCategories; lhsCategories = this.getCategories(); cz.cuni.mff.peckam.java.origamist.files.Categories rhsCategories; rhsCategories = that.getCategories(); if (!strategy.equals(LocatorUtils.property(thisLocator, "categories", lhsCategories), LocatorUtils.property(thatLocator, "categories", rhsCategories), lhsCategories, rhsCategories)) { return false; } } { String lhsId; lhsId = this.getId(); String rhsId; rhsId = that.getId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) { 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.common.LangString> theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName); } { cz.cuni.mff.peckam.java.origamist.files.Files theFiles; theFiles = this.getFiles(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "files", theFiles), currentHashCode, theFiles); } { cz.cuni.mff.peckam.java.origamist.files.Categories theCategories; theCategories = this.getCategories(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "categories", theCategories), currentHashCode, theCategories); } { String theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }