@@ -971,21 +971,26 @@ e++){d[this.name].push(f[e])
971971} } } , CLASS_NAME :"Jsonix.Model.PropertyInfo" } ) ;
972972Jsonix . Model . AnyAttributePropertyInfo = Jsonix . Class ( Jsonix . Model . PropertyInfo , { initialize :function ( b ) { Jsonix . Util . Ensure . ensureObject ( b ) ;
973973Jsonix . Model . PropertyInfo . prototype . initialize . apply ( this , [ b ] )
974- } , unmarshal :function ( m , p , k ) { var n = p . getAttributeCount ( ) ;
974+ } , unmarshal :function ( m , p , l ) { var n = p . getAttributeCount ( ) ;
975975if ( n === 0 ) { return null
976976} else { var j = { } ;
977977for ( var o = 0 ;
978978o < n ;
979- o ++ ) { var i = p . getAttributeNameKey ( o ) ;
980- var l = p . getAttributeValue ( o ) ;
981- if ( Jsonix . Util . Type . isString ( l ) ) { j [ i ] = l
979+ o ++ ) { var k = p . getAttributeValue ( o ) ;
980+ if ( Jsonix . Util . Type . isString ( k ) ) { var i = this . convertFromAttributeName ( p . getAttributeName ( o ) , m , p , l ) ;
981+ j [ i ] = k
982982} } return j
983- } } , marshal :function ( i , l , h , j ) { if ( ! Jsonix . Util . Type . isObject ( i ) ) { return
984- } for ( var g in i ) { if ( i . hasOwnProperty ( g ) ) { var k = i [ g ] ;
985- if ( Jsonix . Util . Type . isString ( k ) ) { h . writeAttribute ( Jsonix . XML . QName . fromString ( g ) , k )
986- } } } } , doBuild :function ( c , d ) { } , buildStructure :function ( c , d ) { Jsonix . Util . Ensure . ensureObject ( d ) ;
983+ } } , marshal :function ( j , l , n , k ) { if ( ! Jsonix . Util . Type . isObject ( j ) ) { return
984+ } for ( var h in j ) { if ( j . hasOwnProperty ( h ) ) { var i = j [ h ] ;
985+ if ( Jsonix . Util . Type . isString ( i ) ) { var m = this . convertToAttributeName ( h , l , n , k ) ;
986+ n . writeAttribute ( m , i )
987+ } } } } , convertFromAttributeName :function ( e , h , f , g ) { return e . key
988+ } , convertToAttributeName :function ( e , h , f , g ) { return Jsonix . XML . QName . fromObjectOrString ( e , h )
989+ } , doBuild :function ( c , d ) { } , buildStructure :function ( c , d ) { Jsonix . Util . Ensure . ensureObject ( d ) ;
987990d . anyAttribute = this
988991} , CLASS_NAME :"Jsonix.Model.AnyAttributePropertyInfo" } ) ;
992+ Jsonix . Model . AnyAttributePropertyInfo . Simplified = Jsonix . Class ( Jsonix . Model . AnyAttributePropertyInfo , { convertFromAttributeName :function ( e , h , f , g ) { return e . toCanonicalString ( h )
993+ } } ) ;
989994Jsonix . Model . SingleTypePropertyInfo = Jsonix . Class ( Jsonix . Model . PropertyInfo , { typeInfo :"String" , initialize :function ( d ) { Jsonix . Util . Ensure . ensureObject ( d ) ;
990995Jsonix . Model . PropertyInfo . prototype . initialize . apply ( this , [ d ] ) ;
991996var c = d . typeInfo || d . ti || "String" ;
@@ -1435,7 +1440,7 @@ Jsonix.Model.Module.prototype.typeInfoCreators={classInfo:Jsonix.Model.Module.pr
14351440Jsonix . Mapping . Style . Standard = Jsonix . Class ( Jsonix . Mapping . Style , { marshaller :Jsonix . Binding . Marshaller , unmarshaller :Jsonix . Binding . Unmarshaller , module :Jsonix . Model . Module , elementInfo :Jsonix . Model . ElementInfo , classInfo :Jsonix . Model . ClassInfo , enumLeafInfo :Jsonix . Model . EnumLeafInfo , anyAttributePropertyInfo :Jsonix . Model . AnyAttributePropertyInfo , anyElementPropertyInfo :Jsonix . Model . AnyElementPropertyInfo , attributePropertyInfo :Jsonix . Model . AttributePropertyInfo , elementMapPropertyInfo :Jsonix . Model . ElementMapPropertyInfo , elementPropertyInfo :Jsonix . Model . ElementPropertyInfo , elementsPropertyInfo :Jsonix . Model . ElementsPropertyInfo , elementRefPropertyInfo :Jsonix . Model . ElementRefPropertyInfo , elementRefsPropertyInfo :Jsonix . Model . ElementRefsPropertyInfo , valuePropertyInfo :Jsonix . Model . ValuePropertyInfo , initialize :function ( ) { Jsonix . Mapping . Style . prototype . initialize . apply ( this )
14361441} , CLASS_NAME :"Jsonix.Mapping.Style.Standard" } ) ;
14371442Jsonix . Mapping . Style . STYLES . standard = new Jsonix . Mapping . Style . Standard ( ) ;
1438- Jsonix . Mapping . Style . Simplified = Jsonix . Class ( Jsonix . Mapping . Style , { marshaller :Jsonix . Binding . Marshaller . Simplified , unmarshaller :Jsonix . Binding . Unmarshaller . Simplified , module :Jsonix . Model . Module , elementInfo :Jsonix . Model . ElementInfo , classInfo :Jsonix . Model . ClassInfo , enumLeafInfo :Jsonix . Model . EnumLeafInfo , anyAttributePropertyInfo :Jsonix . Model . AnyAttributePropertyInfo , anyElementPropertyInfo :Jsonix . Model . AnyElementPropertyInfo . Simplified , attributePropertyInfo :Jsonix . Model . AttributePropertyInfo , elementMapPropertyInfo :Jsonix . Model . ElementMapPropertyInfo , elementPropertyInfo :Jsonix . Model . ElementPropertyInfo , elementsPropertyInfo :Jsonix . Model . ElementsPropertyInfo , elementRefPropertyInfo :Jsonix . Model . ElementRefPropertyInfo . Simplified , elementRefsPropertyInfo :Jsonix . Model . ElementRefsPropertyInfo . Simplified , valuePropertyInfo :Jsonix . Model . ValuePropertyInfo , initialize :function ( ) { Jsonix . Mapping . Style . prototype . initialize . apply ( this )
1443+ Jsonix . Mapping . Style . Simplified = Jsonix . Class ( Jsonix . Mapping . Style , { marshaller :Jsonix . Binding . Marshaller . Simplified , unmarshaller :Jsonix . Binding . Unmarshaller . Simplified , module :Jsonix . Model . Module , elementInfo :Jsonix . Model . ElementInfo , classInfo :Jsonix . Model . ClassInfo , enumLeafInfo :Jsonix . Model . EnumLeafInfo , anyAttributePropertyInfo :Jsonix . Model . AnyAttributePropertyInfo . Simplified , anyElementPropertyInfo :Jsonix . Model . AnyElementPropertyInfo . Simplified , attributePropertyInfo :Jsonix . Model . AttributePropertyInfo , elementMapPropertyInfo :Jsonix . Model . ElementMapPropertyInfo , elementPropertyInfo :Jsonix . Model . ElementPropertyInfo , elementsPropertyInfo :Jsonix . Model . ElementsPropertyInfo , elementRefPropertyInfo :Jsonix . Model . ElementRefPropertyInfo . Simplified , elementRefsPropertyInfo :Jsonix . Model . ElementRefsPropertyInfo . Simplified , valuePropertyInfo :Jsonix . Model . ValuePropertyInfo , initialize :function ( ) { Jsonix . Mapping . Style . prototype . initialize . apply ( this )
14391444} , CLASS_NAME :"Jsonix.Mapping.Style.Simplified" } ) ;
14401445Jsonix . Mapping . Style . STYLES . simplified = new Jsonix . Mapping . Style . Simplified ( ) ;
14411446Jsonix . Schema . XSD = { } ;
0 commit comments