// Generated by xsd compiler for ios/objective-c
// DO NOT CHANGE!

#import <Foundation/Foundation.h>
#import "Trading_AddressType.h"

@implementation Trading_AddressType

@synthesize name = _name;
@synthesize street = _street;
@synthesize street1 = _street1;
@synthesize street2 = _street2;
@synthesize cityName = _cityName;
@synthesize county = _county;
@synthesize stateOrProvince = _stateOrProvince;
@synthesize country = _country;
@synthesize countryName = _countryName;
@synthesize phone = _phone;
@synthesize phoneCountryCode = _phoneCountryCode;
@synthesize phoneCountryPrefix = _phoneCountryPrefix;
@synthesize phoneAreaOrCityCode = _phoneAreaOrCityCode;
@synthesize phoneLocalNumber = _phoneLocalNumber;
@synthesize phone2CountryCode = _phone2CountryCode;
@synthesize phone2CountryPrefix = _phone2CountryPrefix;
@synthesize phone2AreaOrCityCode = _phone2AreaOrCityCode;
@synthesize phone2LocalNumber = _phone2LocalNumber;
@synthesize postalCode = _postalCode;
@synthesize addressID = _addressID;
@synthesize addressOwner = _addressOwner;
@synthesize addressStatus = _addressStatus;
@synthesize externalAddressID = _externalAddressID;
@synthesize internationalName = _internationalName;
@synthesize internationalStateAndCity = _internationalStateAndCity;
@synthesize internationalStreet = _internationalStreet;
@synthesize companyName = _companyName;
@synthesize addressRecordType = _addressRecordType;
@synthesize firstName = _firstName;
@synthesize lastName = _lastName;
@synthesize phone2 = _phone2;
@synthesize addressUsage = _addressUsage;
@synthesize referenceID = _referenceID;
@synthesize any = _any;

// class meta-data method
// note: this method is only for internal use, DO NOT CHANGE!
+(PicoClassSchema *)getClassMetaData {
    return nil;
}

// property meta-data method
// note: this method is only for internal use, DO NOT CHANGE!
+(NSMutableDictionary *)getPropertyMetaData {
    NSMutableDictionary *map = [NSMutableDictionary dictionary];
    
    PicoPropertySchema *ps = nil;
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Name" propertyName:@"name" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"name"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Street" propertyName:@"street" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"street"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Street1" propertyName:@"street1" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"street1"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Street2" propertyName:@"street2" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"street2"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"CityName" propertyName:@"cityName" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"cityName"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"County" propertyName:@"county" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"county"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"StateOrProvince" propertyName:@"stateOrProvince" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"stateOrProvince"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Country" propertyName:@"country" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"country"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"CountryName" propertyName:@"countryName" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"countryName"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Phone" propertyName:@"phone" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"phone"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"PhoneCountryCode" propertyName:@"phoneCountryCode" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"phoneCountryCode"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"PhoneCountryPrefix" propertyName:@"phoneCountryPrefix" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"phoneCountryPrefix"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"PhoneAreaOrCityCode" propertyName:@"phoneAreaOrCityCode" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"phoneAreaOrCityCode"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"PhoneLocalNumber" propertyName:@"phoneLocalNumber" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"phoneLocalNumber"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Phone2CountryCode" propertyName:@"phone2CountryCode" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"phone2CountryCode"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Phone2CountryPrefix" propertyName:@"phone2CountryPrefix" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"phone2CountryPrefix"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Phone2AreaOrCityCode" propertyName:@"phone2AreaOrCityCode" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"phone2AreaOrCityCode"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Phone2LocalNumber" propertyName:@"phone2LocalNumber" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"phone2LocalNumber"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"PostalCode" propertyName:@"postalCode" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"postalCode"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"AddressID" propertyName:@"addressID" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"addressID"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"AddressOwner" propertyName:@"addressOwner" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"addressOwner"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"AddressStatus" propertyName:@"addressStatus" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"addressStatus"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"ExternalAddressID" propertyName:@"externalAddressID" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"externalAddressID"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"InternationalName" propertyName:@"internationalName" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"internationalName"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"InternationalStateAndCity" propertyName:@"internationalStateAndCity" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"internationalStateAndCity"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"InternationalStreet" propertyName:@"internationalStreet" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"internationalStreet"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"CompanyName" propertyName:@"companyName" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"companyName"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"AddressRecordType" propertyName:@"addressRecordType" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"addressRecordType"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"FirstName" propertyName:@"firstName" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"firstName"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"LastName" propertyName:@"lastName" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"lastName"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Phone2" propertyName:@"phone2" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"phone2"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"AddressUsage" propertyName:@"addressUsage" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"addressUsage"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"ReferenceID" propertyName:@"referenceID" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"referenceID"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ANY_ELEMENT xmlName:@"any" propertyName:@"any" type:PICO_TYPE_ANYELEMENT clazz:nil];
    [map setObject:ps forKey:@"any"];
    [ps release];
    
    return map;
}



-(void)dealloc {
    self.name = nil;
    self.street = nil;
    self.street1 = nil;
    self.street2 = nil;
    self.cityName = nil;
    self.county = nil;
    self.stateOrProvince = nil;
    self.country = nil;
    self.countryName = nil;
    self.phone = nil;
    self.phoneCountryCode = nil;
    self.phoneCountryPrefix = nil;
    self.phoneAreaOrCityCode = nil;
    self.phoneLocalNumber = nil;
    self.phone2CountryCode = nil;
    self.phone2CountryPrefix = nil;
    self.phone2AreaOrCityCode = nil;
    self.phone2LocalNumber = nil;
    self.postalCode = nil;
    self.addressID = nil;
    self.addressOwner = nil;
    self.addressStatus = nil;
    self.externalAddressID = nil;
    self.internationalName = nil;
    self.internationalStateAndCity = nil;
    self.internationalStreet = nil;
    self.companyName = nil;
    self.addressRecordType = nil;
    self.firstName = nil;
    self.lastName = nil;
    self.phone2 = nil;
    self.addressUsage = nil;
    self.referenceID = nil;
    self.any = nil;
    [super dealloc];
}

@end
