// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6 // 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: 2010, 2015 .05.05 at 01:57:10 PM EDT // package org.eclipse.persistence.testing.jaxb.substitution; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for person complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="person"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element ref="{myNamespace}name"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "person", propOrder = { "name" }) public class Person { @XmlElementRef(name = "name", namespace = "myNamespace", type = JAXBElement.class) protected JAXBElement<String> name; /** * Gets the value of the name property. * * @return * possible object is * {@link JAXBElement }{@code <}{@link String }{@code >} * {@link JAXBElement }{@code <}{@link String }{@code >} * */ public JAXBElement<String> getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link JAXBElement }{@code <}{@link String }{@code >} * {@link JAXBElement }{@code <}{@link String }{@code >} * */ public void setName(JAXBElement<String> value) { this.name = ((JAXBElement<String> ) value); } public boolean equals(Object arg0) { if (arg0 == null) { return false; } if (!(arg0 instanceof Person)) { return false; } Person aPerson = (Person) arg0; if (this.name == null && aPerson.name != null) { return false; } if (this.name != null && aPerson.name == null) { return false; } return this.name.getValue().equals(aPerson.name.getValue()); } }