Commit Graph

167 Commits

Author SHA1 Message Date
4bea59601f Fix ws_helper's generator.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4246 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-04 12:40:08 +00:00
abaae03afa defaultElementForm, defaultAttributeForm : Runtime WSDL/XSD generation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4233 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-31 13:16:03 +00:00
5622ce75fd defaultElementForm, defaultAttributeForm : XSD generation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4231 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-30 19:15:27 +00:00
d5f0b8a092 element/attribute form : specify options at registration optimization(to avoid double serializer initializations).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4230 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-30 19:11:41 +00:00
20a4f70c7f (XSD's) ElementFormDefault and AttributeFormDefault, group and attributeGroup, parsing and runtime handling.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4209 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-15 16:02:12 +00:00
cdcc835400 Fixws_helper code generation : Qualified interface name in proxy code(Thanks mcarro)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4066 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-25 17:27:45 +00:00
dedfe4b7ee ws_helper code generation : "-gSS" (resp. "-gSU") to map XSD' "string" to Object Pascal "String" (resp. "UnicodeString").
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3940 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-02-09 18:38:02 +00:00
7d8ea2ba7b XSD parser : Better forwarded types parsing.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3938 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-02-08 22:14:55 +00:00
201891920d Change PtrInt to in generated code.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3917 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-01-31 12:27:49 +00:00
b5cd38509b Remove redundant casts, PtrInt -> Integer, IInterface in classes definitions (Thanks Juha) 1
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3892 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-01-19 09:34:01 +00:00
4cd756e318 Interface File Generator => use qualified type name (unit.type) to disambiguate name collision.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3888 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-01-18 00:09:46 +00:00
52cb1f0bf5 Fix Binder's code generation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3874 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-01-07 14:14:04 +00:00
a9a772e219 Fix "record" marshalling, Better Proxy/Binder generated code
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3861 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-01-03 13:33:43 +00:00
00128bbf70 Be case insensitive while parsing Pascal Code, log warning on XDS generation, fix AV (TPasUnresolvedTypeRef handling)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3823 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-04 13:11:07 +00:00
e195112d8b IDE ImportDlg's option to include files now works (Thanks Juha Maninnen) :
* Flag ofRevert is not needed. File is not added to project if already there.
  * Invalidate file cache after generating a Pascal file.
 Prevents error when opening it. Works also with older Lazarus versions.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3200 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-19 10:14:01 +00:00
af326242a5 xsd_generator : Move duplicated code to a function (Thanks Juha Maninnen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3177 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 15:16:14 +00:00
31bbc5c053 XSD generator: prevent a Nil object reference (=>AV) (Thanks Juha Maninnen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3176 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 15:11:10 +00:00
1ca4e37446 Parser : map xsd:string to UnicodeString.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3055 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-17 17:25:51 +00:00
3c995d69dd Delphi compatibility fix.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3054 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-17 17:24:38 +00:00
aa29744538 Parser : map xsd:decimal to Currency.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3052 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-17 14:58:42 +00:00
041a6b2a36 License change : All the code in WST is now using the FPC' RTL license (modified LGPL see COPYING.modifiedLGPL)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2997 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-03 16:34:30 +00:00
a0ef2a66bf XSD schema import support : GUI handling, store relative fie name
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2993 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-03 15:27:53 +00:00
0bff229235 Fix schema "import" generation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2986 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-02 01:49:33 +00:00
019e7b604f IDE auto generated changes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2984 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-01 17:00:35 +00:00
4edd9df7fa Better XSD/WSDL generation : "import" nodes are correctly generated.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2983 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-01 16:58:45 +00:00
402f527cbb Remove not used variables, fix uninitialized variables.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2970 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-25 19:05:55 +00:00
2ba7ee7cd2 Add support for External Schema referencing.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2947 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-18 13:36:57 +00:00
3222dc18bc FPC-2.6.2 compatibility fix
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2842 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-11-19 15:25:37 +00:00
29fbe0a4b9 Generator :
* unit without types should not have a "type" section
  * alias definitions should occurs according to their dependency on each other

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2841 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-11-19 14:37:07 +00:00
0a2294b0d7 * Remove duplicated class' properties(Complex type restriction case)
* Add the "_" prefix or the "_Type" suffix only when necessary
* Search module by namespace if a namespace is provided (FindModule)
* Parse schema's imported documents

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2840 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-11-19 11:04:25 +00:00
c56afc479f Auto unit renaming
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2817 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-10-30 14:38:32 +00:00
58f603bdbe Correct base type searching : if not found then create a unresolved item.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2777 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-08-27 16:39:08 +00:00
ab893594d7 Handle top level(global) declared attribute and references
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2695 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-03-05 15:48:26 +00:00
467d62d6d7 "HAS_EXP_TREE" define to handle fcl-passrc expressions
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2586 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-10-29 19:31:17 +00:00
cd54972062 Use TFPList in fpc 2.6.1 now
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2579 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-10-22 14:44:59 +00:00
7d73bd43ac Use TFPList in fpc 2.6.1 now
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2574 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-10-22 13:37:15 +00:00
13d25e5e00 Do not generate 2 type hints
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2573 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-10-22 13:31:03 +00:00
76d8fd4b55 Use TList2
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2572 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-10-22 13:26:09 +00:00
80b84e6c7d Handle untyped properties
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2507 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-09-06 12:31:10 +00:00
0cb1b33ac4 Use "LocalName" and "NamespaceURI" to handle in-line name-space
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2488 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-08-13 20:40:08 +00:00
6bbca25247 fcl-passrc now uses TFPList instead of TList.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2162 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-11-26 17:54:55 +00:00
e4e3f34376 "CaseSensitive" fixes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2144 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-11-15 19:11:17 +00:00
8b1e3a960e Parser's "CaseSensitive" implementation fix.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1963 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-09-16 00:56:48 +00:00
fc1c449cd2 xsd's "choice" construct parsing + tests
parser is case sensitive  b default now, + tests

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1942 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-09-14 02:31:02 +00:00
788d3ba426 Issue a error message instead of crashing if no "targetNamespace" is provided.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1934 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-09-10 22:29:42 +00:00
e9067503ae Parser's "CaseSensitive" implementation. To got the parser Case-Sensitive, provide the "-cS" argument at command line when using ws_helper.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1931 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-09-10 03:44:54 +00:00
2ed47823d7 update date to 2011
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1857 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-08-29 03:02:43 +00:00
ac7aeb38c8 XSD's "include" handling, better "uses" generation for schema files translalted to pascal, better generated file names, handling of "import" and "include" in sub-directories, Handling of TComplexEnumContentRemotable
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1856 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-08-29 02:59:57 +00:00
848a2159be Correct test for string-based type (optional)properties (for storage)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1483 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-02-02 15:37:47 +00:00
4d54efd4e7 Typo correction(WriteDocumetation > WriteDocumentation).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1384 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-11-26 09:50:16 +00:00