Mercurial > projects > dstep
annotate dstep/foundation/NSXMLDTDNode.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | 89f3c3ef1fd2 |
children | b9de51448c6b |
rev | line source |
---|---|
14 | 1 /** |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Aug 3, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.foundation.NSXMLDTDNode; | |
8 | |
16
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
9 import dstep.foundation.NSObjCRuntime; |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
10 import dstep.foundation.NSString; |
14 | 11 import dstep.foundation.NSXMLNode; |
12 import dstep.objc.bridge.Bridge; | |
16
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
13 import dstep.objc.objc; |
14 | 14 |
15 alias NSUInteger NSXMLDTDNodeKind; | |
16 | |
17 enum | |
18 { | |
19 NSXMLEntityGeneralKind = 1, | |
20 NSXMLEntityParsedKind, | |
21 NSXMLEntityUnparsedKind, | |
22 NSXMLEntityParameterKind, | |
23 NSXMLEntityPredefined, | |
24 NSXMLAttributeCDATAKind, | |
25 NSXMLAttributeIDKind, | |
26 NSXMLAttributeIDRefKind, | |
27 NSXMLAttributeIDRefsKind, | |
28 NSXMLAttributeEntityKind, | |
29 NSXMLAttributeEntitiesKind, | |
30 NSXMLAttributeNMTokenKind, | |
31 NSXMLAttributeNMTokensKind, | |
32 NSXMLAttributeEnumerationKind, | |
33 NSXMLAttributeNotationKind, | |
34 NSXMLElementDeclarationUndefinedKind, | |
35 NSXMLElementDeclarationEmptyKind, | |
36 NSXMLElementDeclarationAnyKind, | |
37 NSXMLElementDeclarationMixedKind, | |
38 NSXMLElementDeclarationElementKind | |
39 } | |
40 | |
41 class NSXMLDTDNode : NSXMLNode | |
42 { | |
16
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
43 mixin (ObjcWrap); |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
44 |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
45 this () |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
46 { |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
47 super(typeof(this).alloc.init.objcObject); |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
48 } |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
49 |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
50 typeof(this) init () |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
51 { |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
52 return invokeObjcSelf!(typeof(this), "init"); |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
53 } |
14 | 54 |
55 Object initWithXMLString (NSString string) | |
56 { | |
57 return invokeObjcSelf!(Object, "initWithXMLString:", NSString)(string); | |
58 } | |
59 | |
60 this (NSString string) | |
61 { | |
16
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
62 typeof(this).alloc.initWithXMLString(string); |
14 | 63 } |
64 | |
65 void setDTDKind (uint kind) | |
66 { | |
67 return invokeObjcSelf!(void, "setDTDKind:", uint)(kind); | |
68 } | |
69 | |
70 uint DTDKind () | |
71 { | |
72 return invokeObjcSelf!(uint, "DTDKind"); | |
73 } | |
74 | |
75 bool isExternal () | |
76 { | |
77 return invokeObjcSelf!(bool, "isExternal"); | |
78 } | |
79 | |
80 void setPublicID (NSString publicID) | |
81 { | |
82 return invokeObjcSelf!(void, "setPublicID:", NSString)(publicID); | |
83 } | |
84 | |
85 NSString publicID () | |
86 { | |
87 return invokeObjcSelf!(NSString, "publicID"); | |
88 } | |
89 | |
90 void setSystemID (NSString systemID) | |
91 { | |
92 return invokeObjcSelf!(void, "setSystemID:", NSString)(systemID); | |
93 } | |
94 | |
95 NSString systemID () | |
96 { | |
97 return invokeObjcSelf!(NSString, "systemID"); | |
98 } | |
99 | |
100 void setNotationName (NSString notationName) | |
101 { | |
102 return invokeObjcSelf!(void, "setNotationName:", NSString)(notationName); | |
103 } | |
104 | |
105 NSString notationName () | |
106 { | |
107 return invokeObjcSelf!(NSString, "notationName"); | |
108 } | |
109 } | |
110 |