DOMAttribute.h
Go to the documentation of this file.
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #import <Foundation/Foundation.h>
00028 #import "DOMNode.h"
00029 #import "DOMNamespaceAware.h"
00030
00031
00032 @protocol DOMElement;
00033
00034
00051 @protocol DOMAttribute <DOMNode, DOMNamespaceAware>
00052
00059 - (NSString *)name;
00060
00064 - (NSString *)localName;
00065
00073 - (void)setName:(NSString *)name;
00074
00078 - (NSString *)value;
00079
00083 - (void)setValue:(NSString *)value;
00084
00088 - (id <DOMElement>)ownerElement;
00089
00094 - (BOOL)isId;
00095
00099 - (void)setIsId:(BOOL)state;
00100
00101 @end
00102
00103
00104 @interface DOMAttribute : DOMNode <DOMAttribute> {
00105 @private
00106 NSString *localName;
00107 NSString *prefix;
00108 NSString *value;
00109 NSString *namespaceURI;
00110
00111 BOOL isId;
00112 }
00113
00119 + (id <DOMAttribute>)attributeWithName:(NSString *)name value:(NSString *)value;
00120
00124 + (id <DOMAttribute>)attributeWithName:(NSString *)theName value:(NSString *)theValue namespaceURI:(NSString *)namespaceURI prefix:(NSString *)prefix;
00125
00131 - (id)initWithName:(NSString *)name value:(NSString *)value;
00132
00136 - (id)initWithName:(NSString *)name value:(NSString *)value namespaceURI:(NSString *)namespaceURI prefix:(NSString *)prefix;
00137
00138 @end