0

The manual on jsonix properties at https://github.com/highsource/jsonix/wiki/Properties shows properties as being something like:

name: 'MyModule',
    typeInfos: [{
        type: 'classInfo',
        localName: 'InputType',
        propertyInfos: [{
            type: 'attribute',
            typeInfo: 'Boolean',
            name: 'checked'
        }]
    }],

But then (after npm install ogc-schemas) what I am seeing is:

    ln: 'TimeClockPropertyType',
    ps: [{
        n: 'timeClock',
        rq: true,
        en: 'TimeClock',
        ti: '.TimeClockType'
      },

With the abbreviated names.

Which should it be and why doesn't it matter if it doesn't?

4

1 回答 1

0

免责声明:我是jsonix的作者。

这就是所谓的紧凑命名。这是Jsonix Schema Compiler的一个选项,它在映射中生成较短的名称,例如代替或代替. 目标显然是使映射更小,并且由于ogc-schemas非常大,它们默认使用紧凑命名进行编译。nnamedensdefaultElementNamespaceURI

如果您想要标准命名,请分叉并删除

<arg>-Xjsonix-compact</arg>

从所有的pom.xmls。

紧凑名称和标准名称都在运行时工作,我认为标准名称具有更高的优先级。

于 2016-08-29T08:08:18.657 回答