// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-792 // 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.02.16 at 09:57:53 AM CET // package org.ow2.easywsdl.schema.org.w3._2001.xmlschema; import java.util.ArrayList; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.ow2.easywsdl.u.builder.EqualsBuilder; import org.ow2.easywsdl.u.builder.HashCodeBuilder; import org.ow2.easywsdl.u.builder.ToStringBuilder; import org.jvnet.jaxb2_commons.lang.CopyTo; import org.jvnet.jaxb2_commons.lang.Copyable; import org.jvnet.jaxb2_commons.lang.Equals; import org.jvnet.jaxb2_commons.lang.HashCode; import org.jvnet.jaxb2_commons.lang.ToString; import org.jvnet.jaxb2_commons.lang.builder.CopyBuilder; import org.jvnet.jaxb2_commons.lang.builder.JAXBCopyBuilder; import org.jvnet.jaxb2_commons.lang.builder.JAXBEqualsBuilder; import org.jvnet.jaxb2_commons.lang.builder.JAXBHashCodeBuilder; import org.jvnet.jaxb2_commons.lang.builder.JAXBToStringBuilder; /** * <p>Java class for simpleType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="simpleType"> * <complexContent> * <extension base="{http://www.w3.org/2001/XMLSchema}annotated"> * <group ref="{http://www.w3.org/2001/XMLSchema}simpleDerivation"/> * <attribute name="final" type="{http://www.w3.org/2001/XMLSchema}simpleDerivationSet" /> * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NCName" /> * <anyAttribute processContents='lax' namespace='##other'/> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "simpleType", propOrder = { "restriction", "list", "union" }) @XmlSeeAlso({ TopLevelSimpleType.class, LocalSimpleType.class }) public abstract class SimpleType extends Annotated implements CopyTo, Copyable, Equals, HashCode, ToString { protected Restriction restriction; protected org.ow2.easywsdl.schema.org.w3._2001.xmlschema.List list; protected Union union; @XmlAttribute(name = "final") @XmlSchemaType(name = "simpleDerivationSet") protected java.util.List<String> _final; @XmlAttribute @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NCName") protected String name; /** * Gets the value of the restriction property. * * @return * possible object is * {@link Restriction } * */ public Restriction getRestriction() { return restriction; } /** * Sets the value of the restriction property. * * @param value * allowed object is * {@link Restriction } * */ public void setRestriction(Restriction value) { this.restriction = value; } /** * Gets the value of the list property. * * @return * possible object is * {@link org.ow2.easywsdl.schema.org.w3._2001.xmlschema.List } * */ public org.ow2.easywsdl.schema.org.w3._2001.xmlschema.List getList() { return list; } /** * Sets the value of the list property. * * @param value * allowed object is * {@link org.ow2.easywsdl.schema.org.w3._2001.xmlschema.List } * */ public void setList(org.ow2.easywsdl.schema.org.w3._2001.xmlschema.List value) { this.list = value; } /** * Gets the value of the union property. * * @return * possible object is * {@link Union } * */ public Union getUnion() { return union; } /** * Sets the value of the union property. * * @param value * allowed object is * {@link Union } * */ public void setUnion(Union value) { this.union = value; } /** * Gets the value of the final 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 final property. * * <p> * For example, to add a new item, do as follows: * <pre> * getFinal().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public java.util.List<String> getFinal() { if (_final == null) { _final = new ArrayList<String>(); } return this._final; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } public void toString(ToStringBuilder toStringBuilder) { super.toString(toStringBuilder); { Restriction theRestriction; theRestriction = this.getRestriction(); toStringBuilder.append("restriction", theRestriction); } { org.ow2.easywsdl.schema.org.w3._2001.xmlschema.List theList; theList = this.getList(); toStringBuilder.append("list", theList); } { Union theUnion; theUnion = this.getUnion(); toStringBuilder.append("union", theUnion); } { java.util.List<String> theFinal; theFinal = this.getFinal(); toStringBuilder.append("_final", theFinal); } { String theName; theName = this.getName(); toStringBuilder.append("name", theName); } } public String toString() { final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); } public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof SimpleType)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } super.equals(object, equalsBuilder); final SimpleType that = ((SimpleType) object); equalsBuilder.append(this.getRestriction(), that.getRestriction()); equalsBuilder.append(this.getList(), that.getList()); equalsBuilder.append(this.getUnion(), that.getUnion()); equalsBuilder.append(this.getFinal(), that.getFinal()); equalsBuilder.append(this.getName(), that.getName()); } public boolean equals(Object object) { if (!(object instanceof SimpleType)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); } public void hashCode(HashCodeBuilder hashCodeBuilder) { super.hashCode(hashCodeBuilder); hashCodeBuilder.append(this.getRestriction()); hashCodeBuilder.append(this.getList()); hashCodeBuilder.append(this.getUnion()); hashCodeBuilder.append(this.getFinal()); hashCodeBuilder.append(this.getName()); } public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); } public Object copyTo(Object target, CopyBuilder copyBuilder) { if (null == target) { throw new IllegalArgumentException("Target argument must not be null for abstract copyable classes."); } final SimpleType copy = ((SimpleType) target); super.copyTo(copy, copyBuilder); { Restriction sourceRestriction; sourceRestriction = this.getRestriction(); Restriction copyRestriction = ((Restriction) copyBuilder.copy(sourceRestriction)); copy.setRestriction(copyRestriction); } { org.ow2.easywsdl.schema.org.w3._2001.xmlschema.List sourceList; sourceList = this.getList(); org.ow2.easywsdl.schema.org.w3._2001.xmlschema.List copyList = ((org.ow2.easywsdl.schema.org.w3._2001.xmlschema.List) copyBuilder.copy(sourceList)); copy.setList(copyList); } { Union sourceUnion; sourceUnion = this.getUnion(); Union copyUnion = ((Union) copyBuilder.copy(sourceUnion)); copy.setUnion(copyUnion); } { java.util.List<String> sourceFinal; sourceFinal = this.getFinal(); java.util.List<String> copyFinal = ((java.util.List<String> ) copyBuilder.copy(sourceFinal)); copy._final = null; java.util.List<String> uniqueFinall = copy.getFinal(); uniqueFinall.addAll(copyFinal); } { String sourceName; sourceName = this.getName(); String copyName = ((String) copyBuilder.copy(sourceName)); copy.setName(copyName); } return copy; } public Object copyTo(Object target) { final CopyBuilder copyBuilder = new JAXBCopyBuilder(); return copyTo(target, copyBuilder); } }