mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Add skeletal NSXML work as requested.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27824 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
af0cbcda24
commit
a2e18e58d5
21 changed files with 2553 additions and 4 deletions
111
Source/NSXMLDTDNode.m
Normal file
111
Source/NSXMLDTDNode.m
Normal file
|
@ -0,0 +1,111 @@
|
|||
/* Implementation for NSXMLDTDNode for GNUStep
|
||||
Copyright (C) 2008 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard Frith-Macdonald <rfm@gnu.org>
|
||||
Created: September 2008
|
||||
|
||||
This file is part of the GNUstep Base Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
*/
|
||||
|
||||
#import "NSXMLPrivate.h"
|
||||
|
||||
@implementation NSXMLDTDNode
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[_name release];
|
||||
[_notationName release];
|
||||
[_publicID release];
|
||||
[_systemID release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (NSXMLDTDNodeKind) DTDKind
|
||||
{
|
||||
return _DTDKind;
|
||||
}
|
||||
|
||||
- (id) initWithXMLString: (NSString*)string
|
||||
{
|
||||
[self notImplemented: _cmd];
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (BOOL) isExternal
|
||||
{
|
||||
if (_systemID != nil)
|
||||
{
|
||||
// FIXME ... libxml integration?
|
||||
return YES;
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (NSString*) notationName
|
||||
{
|
||||
if (_notationName == nil)
|
||||
{
|
||||
[self notImplemented: _cmd];
|
||||
}
|
||||
return _notationName;
|
||||
}
|
||||
|
||||
- (NSString*) publicID
|
||||
{
|
||||
if (_publicID == nil)
|
||||
{
|
||||
[self notImplemented: _cmd];
|
||||
}
|
||||
return _publicID;
|
||||
}
|
||||
|
||||
- (void) setDTDKind: (NSXMLDTDNodeKind)kind
|
||||
{
|
||||
_DTDKind = kind;
|
||||
// FIXME ... libxml integration?
|
||||
}
|
||||
|
||||
- (void) setNotationName: (NSString*)notationName
|
||||
{
|
||||
ASSIGNCOPY(_notationName, notationName);
|
||||
// FIXME ... libxml integration?
|
||||
}
|
||||
|
||||
- (void) setPublicID: (NSString*)publicID
|
||||
{
|
||||
ASSIGNCOPY(_publicID, publicID);
|
||||
// FIXME ... libxml integration?
|
||||
}
|
||||
|
||||
- (void) setSystemID: (NSString*)systemID
|
||||
{
|
||||
ASSIGNCOPY(_systemID, systemID);
|
||||
// FIXME ... libxml integration?
|
||||
}
|
||||
|
||||
- (NSString*) systemID
|
||||
{
|
||||
if (_systemID == nil)
|
||||
{
|
||||
[self notImplemented: _cmd];
|
||||
}
|
||||
return _systemID;
|
||||
}
|
||||
|
||||
@end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue