001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
003: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004: // Any modifications to this file will be lost upon recompilation of the source schema.
005: // Generated on: 2006.10.04 at 03:08:16 PM PDT
006: //
007:
008: package org.apache.openjpa.persistence.xmlmapping.xmlbindings.myaddress;
009:
010: import javax.xml.bind.JAXBElement;
011: import javax.xml.bind.annotation.XmlAccessType;
012: import javax.xml.bind.annotation.XmlAccessorType;
013: import javax.xml.bind.annotation.XmlElement;
014: import javax.xml.bind.annotation.XmlRootElement;
015: import javax.xml.bind.annotation.XmlType;
016:
017: /**
018: * <p>Java class for CAN_Address complex type.
019: *
020: * <p>The following schema fragment specifies the expected content contained within this class.
021: *
022: * <pre>
023: * <complexType name="CAN_Address">
024: * <complexContent>
025: * <extension base="{}Address">
026: * <sequence>
027: * <element name="Province" type="{http://www.w3.org/2001/XMLSchema}string"/>
028: * <element name="PostalCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
029: * </sequence>
030: * </extension>
031: * </complexContent>
032: * </complexType>
033: * </pre>
034: *
035: *
036: */
037: @XmlRootElement
038: @XmlAccessorType(XmlAccessType.FIELD)
039: @XmlType(name="CAN_Address",propOrder={"province","postalCode"})
040: public class CANAddress extends Address {
041:
042: @XmlElement(name="Province")
043: protected String province;
044: @XmlElement(name="PostalCode")
045: protected String postalCode;
046:
047: /**
048: * Gets the value of the province property.
049: *
050: * @return
051: * possible object is
052: * {@link String }
053: *
054: */
055: public String getProvince() {
056: return province;
057: }
058:
059: /**
060: * Sets the value of the province property.
061: *
062: * @param value
063: * allowed object is
064: * {@link String }
065: *
066: */
067: public void setProvince(String value) {
068: this .province = value;
069: }
070:
071: /**
072: * Gets the value of the postalCode property.
073: *
074: * @return
075: * possible object is
076: * {@link String }
077: *
078: */
079: public String getPostalCode() {
080: return postalCode;
081: }
082:
083: /**
084: * Sets the value of the postalCode property.
085: *
086: * @param value
087: * allowed object is
088: * {@link String }
089: *
090: */
091: public void setPostalCode(String value) {
092: this .postalCode = value;
093: }
094:
095: public String toString() {
096: StringBuffer sb = new StringBuffer();
097: sb.append(super .toString()).append("\n ").append(
098: this .province).append(" ").append(this.postalCode);
099: return sb.toString();
100: }
101: }
|