@@ -10,35 +10,35 @@ interface Unmarshaller { //TODO: <T> @see createUnmarshaller
1010 * @param {string } arg (description)
1111 * @returns {Object } (description)
1212 */
13- unmarshalString ( arg : string ) : Object ;
13+ unmarshalString ( arg :string ) : Object ;
1414
1515 /**
1616 * (description)
17- *
17+ *
1818 * @param {string } fileName (description)
1919 * @param {(unmarshalled:Object)=> void } callback (description)
2020 * @param {Object } options (description)
2121 */
22- unmarshalFile ( fileName : string , callback : ( unmarshalled : Object ) => void , options : Object ) : void ;
22+ unmarshalFile ( fileName :string , callback :( unmarshalled :Object ) => void , options :Object ) : void ;
2323
2424
2525 /**
2626 * (description)
27- *
27+ *
2828 * @param {string } url (description)
2929 * @param {(unmarshalled:Object)=> void } callback (description)
3030 * @param {Object } options (description)
3131 */
32- unmarshalURL ( url : string , callback : ( unmarshalled : Object ) => void , options : Object ) : void ;
32+ unmarshalURL ( url :string , callback :( unmarshalled :Object ) => void , options :Object ) : void ;
3333
3434 /**
3535 * (description)
36- *
36+ *
3737 * @param {Element } doc (description)
3838 * @param {string } scope (description)
3939 * @returns {Object } (description)
4040 */
41- unmarshalDocument ( doc : Element , scope : string ) : Object ;
41+ unmarshalDocument ( doc :Element , scope :string ) : Object ;
4242}
4343/**
4444 * (description)
@@ -48,19 +48,19 @@ interface Unmarshaller { //TODO: <T> @see createUnmarshaller
4848interface Marshaller { // TODO: generics like marshalString(object:T):string;
4949 /**
5050 * (description)
51- *
51+ *
5252 * @param {Object } object (description)
5353 * @returns {string } (description)
5454 */
55- marshalString ( object : Object ) : string ;
55+ marshalString ( object :Object ) : string ;
5656
5757 /**
5858 * (description)
59- *
59+ *
6060 * @param {Object } object (description)
6161 * @returns {Element } (description)
6262 */
63- marshalDocument ( object : Object ) : Element ;
63+ marshalDocument ( object :Object ) : Element ;
6464}
6565
6666declare module Jsonix {
@@ -70,47 +70,47 @@ declare module Jsonix {
7070 *
7171 * @param {any[] } s (description)
7272 */
73- constructor ( s : any [ ] ) ;
73+ constructor ( s :any [ ] ) ;
7474
7575 /**
7676 * (description)
7777 *
7878 * @param {string } name (description)
7979 * @returns {TypeInfo } (description)
8080 */
81- getTypeInfoByName ( name : string ) : TypeInfo ;
81+ getTypeInfoByName ( name :string ) :TypeInfo ;
8282
8383 /**
8484 * (description)
8585 *
8686 * @param {string } typeName (description)
8787 * @returns {TypeInfo } (description)
8888 */
89- getTypeInfoByTypeName ( typeName : string ) : TypeInfo ;
89+ getTypeInfoByTypeName ( typeName :string ) :TypeInfo ;
9090
9191 /**
9292 * (description)
9393 *
9494 * @param {string } typeNameKey (description)
9595 * @returns {TypeInfo } (description)
9696 */
97- getTypeInfoByTypeNameKey ( typeNameKey : string ) : TypeInfo ;
97+ getTypeInfoByTypeNameKey ( typeNameKey :string ) :TypeInfo ;
9898
99- getElementInfo ( name : string , scope : string ) : any ;
99+ getElementInfo ( name :string , scope :string ) :any ;
100100
101- getSubstitutionMembers ( name : string ) : any ;
101+ getSubstitutionMembers ( name :string ) :any ;
102102
103- createMarshaller ( ) : Marshaller ;
103+ createMarshaller ( ) :Marshaller ;
104104
105- createUnmarshaller ( ) : Unmarshaller ;
105+ createUnmarshaller ( ) :Unmarshaller ;
106106
107107 //TODO: createUnmarshaller<T>(type: T): Unmarshaller<T>;
108108
109- getNamespaceURI ( prefix : string ) : any ;
109+ getNamespaceURI ( prefix :string ) :any ;
110110
111- getPrefix ( namespaceURI : string , defaultPrefix : string ) : any ;
111+ getPrefix ( namespaceURI :string , defaultPrefix :string ) :any ;
112112
113- builtinTypeInfos : {
113+ builtinTypeInfos :{
114114 Jsonix : {
115115 Schema : {
116116 XSD : {
@@ -170,7 +170,7 @@ declare module Jsonix {
170170
171171
172172 // private
173- elementInfos : ClassInfo [ ] ;
173+ elementInfos :ClassInfo [ ] ;
174174
175175 }
176176}
@@ -211,6 +211,23 @@ interface TypeInfo {
211211 baseTypeInfo : TypeInfo ,
212212}
213213
214+ /**
215+ * (description)
216+ *
217+ * @interface EnumLeafInfo
218+ * @extends {TypeInfo }
219+ */
220+ interface EnumLeafInfo extends TypeInfo {
221+ name : string ,
222+ baseTypeInfo : TypeInfo ,
223+ entries : { [ name : string ] : string } ,
224+ keys : { [ index : number ] : string } ,
225+ values : { [ index : number ] : string } ,
226+ built : boolean
227+
228+ }
229+
230+
214231/**
215232 * (description)
216233 *
0 commit comments