@@ -22,10 +22,12 @@ #import "OFXMLElement.h" #import "OFInvalidArgumentException.h" @implementation OFXMLAttribute +@synthesize name = _name, namespace = _namespace; + + (instancetype)attributeWithName: (OFString*)name namespace: (OFString*)namespace stringValue: (OFString*)stringValue { return [[[self alloc] initWithName: name @@ -100,20 +102,10 @@ [_stringValue release]; [super dealloc]; } -- (OFString*)name -{ - OF_GETTER(_name, true) -} - -- (OFString*)namespace -{ - OF_GETTER(_namespace, true) -} - - (OFString*)stringValue { return [[_stringValue copy] autorelease]; }