Skip to content

Commit 512b442

Browse files
committed
documentation stubs added
1 parent 72c2a4c commit 512b442

File tree

1 file changed

+110
-26
lines changed

1 file changed

+110
-26
lines changed

typescript/src/main/typescript/Jsonix.d.ts

Lines changed: 110 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,61 @@
1+
/**
2+
* (description)
3+
*
4+
* @interface Unmarshaller
5+
*/
16
interface Unmarshaller {
7+
/**
8+
* (description)
9+
*
10+
* @param {string} arg (description)
11+
* @returns {Object} (description)
12+
*/
213
unmarshalString(arg: string): Object;
14+
/**
15+
* (description)
16+
*
17+
* @param {File} arg (description)
18+
* @returns {Object} (description)
19+
*/
320
unmarshalFile(arg: File): Object;
421
}
22+
/**
23+
* (description)
24+
*
25+
* @interface Marshaller
26+
*/
527
interface Marshaller {
628

729
}
830

931
declare module Jsonix {
1032
export class Context {
33+
/**
34+
* Creates an instance of Context.
35+
*
36+
* @param {any[]} s (description)
37+
*/
1138
constructor(s: any[]);
39+
/**
40+
* (description)
41+
*
42+
* @param {string} name (description)
43+
* @returns {TypeInfo} (description)
44+
*/
1245
getTypeInfoByName(name: string): TypeInfo;
46+
/**
47+
* (description)
48+
*
49+
* @param {string} typeName (description)
50+
* @returns {TypeInfo} (description)
51+
*/
1352
getTypeInfoByTypeName(typeName: string): TypeInfo;
53+
/**
54+
* (description)
55+
*
56+
* @param {string} typeNameKey (description)
57+
* @returns {TypeInfo} (description)
58+
*/
1459
getTypeInfoByTypeNameKey(typeNameKey: string): TypeInfo;
1560
getElementInfo(name: string, scope: string): any;
1661
getSubstitutionMembers(name: string): any;
@@ -87,27 +132,47 @@ declare module Jsonix {
87132
}
88133

89134

135+
/**
136+
* (description)
137+
*
138+
* @interface Styled
139+
*/
90140
interface Styled {
91141
//{ CLASS_NAME: string },
92142
mappingStyle: Object;
93143
}
94144

95145
//TODO: package Schema.XSD
146+
/**
147+
* (description)
148+
*
149+
* @interface QName
150+
*/
96151
interface QName {
97-
key : string;
98-
namespaceURI : string;
99-
localPart : string;
100-
prefix : string;
101-
string : string;
152+
key: string;
153+
namespaceURI: string;
154+
localPart: string;
155+
prefix: string;
156+
string: string;
102157
}
103158

104159
//TODO: package mapping
160+
/**
161+
* (description)
162+
*
163+
* @interface TypeInfo
164+
*/
105165
interface TypeInfo {
106166
name: string,
107167
baseTypeInfo: TypeInfo,
108168
}
109169

110-
interface PropertyInfo{
170+
/**
171+
* (description)
172+
*
173+
* @interface PropertyInfo
174+
*/
175+
interface PropertyInfo {
111176
name: string;
112177
collection: boolean;
113178
targetNamespace: string;
@@ -116,22 +181,41 @@ interface PropertyInfo{
116181
built: boolean;
117182
}
118183

119-
interface AbstractElementPropertyInfo extends PropertyInfo{
184+
/**
185+
* (description)
186+
*
187+
* @interface AbstractElementPropertyInfo
188+
* @extends {PropertyInfo}
189+
*/
190+
interface AbstractElementPropertyInfo extends PropertyInfo {
120191
wrapperElement: QName;
121192
allowDom: boolean;
122193
allowTypedObject; boolean;
123194
mixed: boolean;
124195
}
125196

126197

198+
/**
199+
* (description)
200+
*
201+
* @interface ElementPropertyInfo
202+
* @extends {AbstractElementPropertyInfo}
203+
*/
127204
interface ElementPropertyInfo extends AbstractElementPropertyInfo {
128205
typeInfo: ClassInfo;
129206
elementName: QName;
130207
}
131208

132209

210+
/**
211+
* (description)
212+
*
213+
* @interface ClassInfo
214+
* @extends {TypeInfo}
215+
* @extends {Styled}
216+
*/
133217
interface ClassInfo extends TypeInfo, Styled {
134-
localName:string;
218+
localName: string;
135219
typeName: QName;
136220
instanceFactory: {};
137221
properties: { [index: number]: PropertyInfo };
@@ -150,24 +234,24 @@ interface ClassInfo extends TypeInfo, Styled {
150234
built: boolean,
151235
//TODO confirm this syntax
152236
propertyInfoCreators: {
153-
aa : {aa};
154-
anyAttribute : {aa},
155-
ae :{ae};
156-
anyElement :{ae};
157-
a :{a};
158-
attribute :{a};
159-
em :{em};
160-
elementMap :{em};
161-
e :{e};
162-
element :{e};
163-
es :{es};
164-
elements :{es};
165-
er :{er};
166-
elementRef :{er};
167-
ers :{ers};
168-
elementRefs :{ers};
169-
v :{v};
170-
value :{v}
237+
aa: { aa };
238+
anyAttribute: { aa },
239+
ae: { ae };
240+
anyElement: { ae };
241+
a: { a };
242+
attribute: { a };
243+
em: { em };
244+
elementMap: { em };
245+
e: { e };
246+
element: { e };
247+
es: { es };
248+
elements: { es };
249+
er: { er };
250+
elementRef: { er };
251+
ers: { ers };
252+
elementRefs: { ers };
253+
v: { v };
254+
value: { v }
171255
}
172256

173257

0 commit comments

Comments
 (0)