DOMParentNode.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
00029
00033 @protocol DOMParent <NSObject>
00034
00041 - (NSArray *)children;
00042
00046 - (id <DOMNode>)firstChild;
00047
00051 - (id <DOMNode>)lastChild;
00052
00057 - (BOOL)containsChild:(id <DOMNode>)child;
00058
00104 - (id <DOMNode>)appendChild:(id <DOMNode>)child;
00105
00114 - (void)appendChildren:(NSArray *)children;
00115
00127 - (id <DOMNode>)insertChild:(id <DOMNode>)child after:(id <DOMNode>)node;
00128
00140 - (id <DOMNode>)insertChild:(id <DOMNode>)child before:(id <DOMNode>)other;
00141
00148 - (id <DOMNode>)removeChild:(id <DOMNode>)child;
00149
00155 - (void)removeAllChildren;
00156
00166 - (id <DOMNode>)replaceChild:(id <DOMNode>)child withNode:(id <DOMNode>)other;
00167
00180 - (id <DOMElement>)childElementById:(NSString *)ID;
00181
00188 - (NSArray *)childElementsByName:(NSString *)name;
00189
00197 - (NSArray *)childElementsByName:(NSString *)name inNamespace:(NSString *)namespaceURI;
00198
00199 @end
00200
00201
00205 @interface DOMParent : DOMNode <DOMParent> {
00206 @protected
00207 NSMutableArray *children;
00208 }
00209
00210 @end
00211
00215 @interface DOMParent ( ProtectedMethods )
00216
00217 - (id <DOMNode>)insertChild:(id <DOMNode>)node atIndex:(int)index;
00218
00219 - (BOOL)isValidChild:(id <DOMNode>)node;
00220
00221 @end