KBMMW 4.81.00 发布
生活随笔
收集整理的這篇文章主要介紹了
KBMMW 4.81.00 发布
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
這次更新的速度非常快。
4.81.00 May 9 2015Important notes (changes that may break existing code)======================================================* Changed TkbmMWOnFileAccess event to allow rewriting Path.TkbmMWOnFileAccess = procedure (Sender:TObject; var Path:string;var AccessPermissions:TkbmMWFileAccessPermissions) of object;* Made many more things case sensitive in the XML parser and handlersto adhere correctly to XML standards.Thus the attribute ID is different from the attribute id now!New stuff=========- Added JQueryEscaping:boolean property (default false) toTkbmMWJSONStreamer. It will double escape all backslashes (\) toadhere to jQuery non standards. Notice that double escaping is NOTJSON standards, but a defacto requirement when using jQuery as therecieving end.- Added optional AJQueryEscaping:boolean argument tokbmMWJSONQuoteString global function.- Added support for NaN and INF in kbmMWFloatToString,kbmMWStringToFloat and kbmMWTryStringToFloat.- Added new optional additional kbmMW_Element_Flags argument tokbmMW_Element attribute. Eg.TMyObject = class...[kbmMW_Element('somename',[mwefData])]MyField:integer;{kbmMW_Element('someothername')]MyOtherField:integer;end;This will marshal/unmarshal MyField as data of the TMyObject insteadof a sub element called somename.Eg. <TMyObject>20<someothername>30</someothername></TMyObject>See the new sample: DynamicXMLMarshalling.- Added new optional additional TypeStoreName and TypeValue argumentsto kbmMW_Root attribute which are to be used in combination with thenew kbmMW_ConditionalType attribute.TypeStoreName refers to a local string field in the object whichwill hold/be set to the type of the object whilemarshalling/unmarshalling.TypeValue is the value that will be set in that field.The new kbmMW_ConditionalType attribute takes a condition and astring value indicating the name of the type of the object if thecondition is evaluated to true. A condition can be a simple equalstatement or be a complex condition with AND and OR and multiplestatements.See the new sample: DynamicXMLMarshalling.Changes/minor additions=======================- Changed TkbmMWOnFileAccess event to allow rewriting Path.TkbmMWOnFileAccess = procedure (Sender:TObject; var Path:string;var AccessPermissions:TkbmMWFileAccessPermissions) of object;Notice that if you do have code using this event, you should cut outthe event code, save, then doubleclick the event handler again andpaste in your old code.Also notice that the path is always relative to the defined RootPathof the service.The RootPath is defined in the TkbmMWFileServiceDefinition returnedwhen registering the file service.- Changed TkbmMWCustomSAXXMLParser to inherit from TInterfacedObjectand removed custom referencecounting.This also affects TkbmMWDOMXML which descends fromTkbmMWCustomSAXXMLParser.- Made a number of properties available via the IkbmMWDOMXMLParserinterface:Root, Top,,IgnoreDuplicateIDs, AutoIndent, PreserveWhiteSpace,AutoLineFeed, StreamBOM, AutoDetectEncoding.- Changed TkbmMWDOMXMLNode to allow access to ID and Ref properties asattributes (id, ref).Changing the attribute id or ref will thus also affect theproperties id and ref.- Removed handling href attributes as ref attribute inTkbmMWDOMXMLNode. href is now an ordinary attribute, without specialhandling.- Made many more things case sensitive in the XML parser and handlersto adhere correctly to XML standards.Thus the attribute ID is different from the attribute id now!- Changed so XML GetAsInt, GetAsInt64, GetAsFloat, GetAsDuration,GetAsBoolean and GetAsDataTime automatically filter out allwhitespace characters (including cr/lf) before attempting tointerpret value.- Changed XML parsing so if PreserveWhiteSpace property is false, thenonly leading and trailing whitespace is filtered.Fixes=====- Fixed leak of TkbmMWHTTPURLRewrites object instance inTkbmMWHTTPServiceDefinition.- Fixed JSON marshalling of collection objects.- Fixed IOS Macapi.Foundation compilation issue in kbmMWGlobal.pas.- Fixed bug in AttribByNameIsNil property in kbmMWXML.pas.總結
以上是生活随笔為你收集整理的KBMMW 4.81.00 发布的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android配置----DDMS 连接
- 下一篇: LinQ to entities 不能识