summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/foundation/NSXMLDTDNode.inc
blob: 5684c83b1f9f248d2cf0957d75f34701d209ddd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{ Parsed from Foundation.framework NSXMLDTDNode.h }

{$ifdef TYPES}
{$ifndef NSXMLDTDNODE_PAS_T}
{$define NSXMLDTDNODE_PAS_T}

{ Constants }

const
  NSXMLEntityGeneralKind = 1;
  NSXMLEntityParsedKind = 2;
  NSXMLEntityUnparsedKind = 3;
  NSXMLEntityParameterKind = 4;
  NSXMLEntityPredefined = 5;
  NSXMLAttributeCDATAKind = 6;
  NSXMLAttributeIDKind = 7;
  NSXMLAttributeIDRefKind = 8;
  NSXMLAttributeIDRefsKind = 9;
  NSXMLAttributeEntityKind = 10;
  NSXMLAttributeEntitiesKind = 11;
  NSXMLAttributeNMTokenKind = 12;
  NSXMLAttributeNMTokensKind = 13;
  NSXMLAttributeEnumerationKind = 14;
  NSXMLAttributeNotationKind = 15;
  NSXMLElementDeclarationUndefinedKind = 16;
  NSXMLElementDeclarationEmptyKind = 17;
  NSXMLElementDeclarationAnyKind = 18;
  NSXMLElementDeclarationMixedKind = 19;
  NSXMLElementDeclarationElementKind = 20;

{ Types }
type
  NSXMLDTDNodeKind = NSUInteger;
  NSXMLDTDNodeKindPtr = ^NSXMLDTDNodeKind;

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSXMLDTDNODE_PAS_R}
{$define NSXMLDTDNODE_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSXMLDTDNODE_PAS_F}
{$define NSXMLDTDNODE_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSXMLDTDNODE_PAS_S}
{$define NSXMLDTDNODE_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSXMLDTDNode = objcclass;
  NSXMLDTDNodePointer = ^NSXMLDTDNode;
  NSXMLDTDNodePtr = NSXMLDTDNodePointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSXMLDTDNODE_PAS_C}
{$define NSXMLDTDNODE_PAS_C}

{ NSXMLDTDNode }
  NSXMLDTDNode = objcclass external (NSXMLNode)
  private
    _DTDKind: NSXMLDTDNodeKind;
    _name: NSString;
    _notationName: NSString;
    _publicID: NSString;
    _systemID: NSString;
    
  public
    function initWithXMLString(string_: NSString): id; message 'initWithXMLString:';
    procedure setDTDKind(kind_: NSXMLDTDNodeKind); message 'setDTDKind:';
    function DTDKind: NSXMLDTDNodeKind; message 'DTDKind';
    function isExternal: Boolean; message 'isExternal';
    procedure setPublicID(publicID_: NSString); message 'setPublicID:';
    function publicID: NSString; message 'publicID';
    procedure setSystemID(systemID_: NSString); message 'setSystemID:';
    function systemID: NSString; message 'systemID';
    procedure setNotationName(notationName_: NSString); message 'setNotationName:';
    function notationName: NSString; message 'notationName';
  end;

{$endif}
{$endif}