DOMProcessingInstruction.h

Go to the documentation of this file.
00001 /*
00002  * Iconara DOM framework: DOMProcessingInstruction (created 27 April 2002)
00003  *
00004  * Release 1
00005  *
00006  * Copyright 2002-2005 Iconara/Theo Hultberg
00007  *
00008  *
00009  * This file is part of the Iconara DOM framework.
00010  *
00011  * Iconara DOM is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * Iconara DOM is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with Iconara DOM; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024  *
00025  */
00026 
00027 #import <Foundation/Foundation.h>
00028 #import "DOMNode.h";
00029 
00030 
00046 @protocol DOMProcessingInstruction <DOMNode>
00047 
00051 - (void)setData:(NSString *)string;
00052 
00056 - (NSString *)data;
00057 
00066 - (void)setTarget:(NSString *)target;
00067 
00071 - (NSString *)target;
00072 
00073 @end
00074 
00075 
00076 @interface DOMProcessingInstruction : DOMNode <DOMProcessingInstruction> {
00077     NSString *target;
00078     NSString *data;
00079 }
00080 
00081 + (id <DOMProcessingInstruction>)processingInstructionWithTarget:(NSString *)target;
00082 
00083 + (id <DOMProcessingInstruction>)processingInstructionWithTarget:(NSString *)target data:(NSString *)string;
00084 
00085 - (id)initWithTarget:(NSString *)target;
00086 
00087 - (id)initWithTarget:(NSString *)target data:(NSString *)string;
00088 
00089 @end
00090 
00091 
00092 /*
00093  * DOMProcessingInstruction is so long, this makes it shorter.
00094  *
00095  * Not used throughout the framework, for consistency, but applications
00096  * using the framework may use this macro.
00097  */
00098 @compatibility_alias DOMPI DOMProcessingInstruction;