@@ -3326,78 +3326,6 @@ Jsonix.Schema.XSD.AnyType = Jsonix.Class(Jsonix.Model.ClassInfo, {
3326
3326
} ]
3327
3327
} ) ;
3328
3328
} ,
3329
- /* unmarshal : function(context, input, scope) {
3330
- var result = [];
3331
- // Process the attributes
3332
- var attributeCount = input.getAttributeCount();
3333
- if (attributeCount > 0) {
3334
- for ( var index = 0; index < attributeCount; index++) {
3335
- var attributeNameKey = input.getAttributeNameKey(index);
3336
- var attributeValue = input.getAttributeValue(index);
3337
- if (Jsonix.Util.Type.isString(attributeValue)) {
3338
- var attributeItem = {};
3339
- attributeItem['@' + attributeNameKey] = attributeValue;
3340
- result.push(attributeItem);
3341
- }
3342
- }
3343
- }
3344
- var et = input.next();
3345
- while (et !== Jsonix.XML.Input.END_ELEMENT)
3346
- {
3347
- if (et === Jsonix.XML.Input.START_ELEMENT)
3348
- {
3349
- // Unmarshal element
3350
- result.push(this.unmarshalElement(context, input, scope));
3351
- }
3352
- else if (et === Jsonix.XML.Input.CHARACTERS || et === Jsonix.XML.Input.CDATA || et === Jsonix.XML.Input.ENTITY_REFERENCE)
3353
- {
3354
- result.push(input.getText());
3355
-
3356
- }
3357
- else if (et === Jsonix.XML.Input.SPACE)
3358
- {
3359
- // Skip space
3360
- }
3361
- else if (et === Jsonix.XML.Input.COMMENT || et === Jsonix.XML.Input.PROCESSING_INSTRUCTION)
3362
- {
3363
- // Skip comments and processing instructions
3364
- } else {
3365
- // TODO better exception
3366
- throw new Error("Illegal state: unexpected event type [" + et + "].");
3367
- }
3368
- et = input.next();
3369
- }
3370
- return result;
3371
- },
3372
- unmarshalElement : function(context, input, scope) {
3373
- var name = input.getName();
3374
- var value;
3375
- if (Jsonix.Util.Type.exists(context.getElementInfo(name, scope))) {
3376
- // TODO optimize
3377
- var elementDeclaration = context.getElementInfo(name, scope);
3378
- var typeInfo = elementDeclaration.typeInfo;
3379
- var adapter = Jsonix.Model.Adapter.getAdapter(elementDeclaration);
3380
- value = {
3381
- name : name,
3382
- value : adapter.unmarshal(typeInfo, context, input, scope)
3383
- };
3384
- } else {
3385
- value = input.getElement();
3386
- }
3387
- return value;
3388
- },
3389
- marshal : function(value, context, output, scope) {
3390
- console.log("context");
3391
- console.log(context);
3392
- console.log("value");
3393
- console.log(value);
3394
- console.log("output");
3395
- console.log(output);
3396
- throw new Error("Abstract method [marshal].");
3397
- },
3398
- isInstance : function(value, context, scope) {
3399
- throw new Error('Abstract method [isInstance].');
3400
- },*/
3401
3329
CLASS_NAME : 'Jsonix.Schema.XSD.AnyType'
3402
3330
} ) ;
3403
3331
Jsonix . Schema . XSD . AnyType . INSTANCE = new Jsonix . Schema . XSD . AnyType ( ) ;
@@ -5110,7 +5038,7 @@ Jsonix.Context = Jsonix
5110
5038
Jsonix . Schema . XSD . NormalizedString . INSTANCE ,
5111
5039
Jsonix . Schema . XSD . Number . INSTANCE ,
5112
5040
Jsonix . Schema . XSD . PositiveInteger . INSTANCE ,
5113
- Jsonix . Schema . XSD . QName . INSTANCE ,
5041
+ // Jsonix.Schema.XSD.QName.INSTANCE,
5114
5042
Jsonix . Schema . XSD . Short . INSTANCE ,
5115
5043
Jsonix . Schema . XSD . String . INSTANCE ,
5116
5044
Jsonix . Schema . XSD . Strings . INSTANCE ,
0 commit comments