@implementation NGVCardAddress
+- (id)initWithDictionary:(NSDictionary *)_plist group:(NSString *)_group
+ types:(NSArray *)_types arguments:(NSDictionary *)_a
+{
+ if ((self = [super initWithGroup:_group types:_types arguments:_a]) != nil) {
+ self->pobox = [[_plist objectForKey:@"pobox"] copy];
+ self->extadd = [[_plist objectForKey:@"extadd"] copy];
+ self->street = [[_plist objectForKey:@"street"] copy];
+ self->locality = [[_plist objectForKey:@"locality"] copy];
+ self->region = [[_plist objectForKey:@"region"] copy];
+ self->pcode = [[_plist objectForKey:@"pcode"] copy];
+ self->country = [[_plist objectForKey:@"country"] copy];
+ }
+ return self;
+}
+- (id)initWithPropertyList:(id)_plist group:(NSString *)_group
+ types:(NSArray *)_types arguments:(NSDictionary *)_a
+{
+ return [self initWithDictionary:_plist
+ group:_group types:_types arguments:_a];
+}
+
+- (id)initWithGroup:(NSString *)_group types:(NSArray *)_types
+ arguments:(NSDictionary *)_a
+{
+ return [self initWithPropertyList:nil
+ group:_group types:_types arguments:_a];
+}
+- (id)init {
+ return [self initWithPropertyList:nil group:nil types:nil arguments:nil];
+}
+
- (void)dealloc {
[self->pobox release];
[self->extadd release];
return self;
}
+/* description */
+
+- (void)appendAttributesToDescription:(NSMutableString *)_ms {
+ [super appendAttributesToDescription:_ms];
+ [_ms appendFormat:@" vcard=%@", [self vCardString]];
+}
+
@end /* NGVCardAddress */