jsonix


jsonix properties - ogc-schemas .js aren't same


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?
Disclaimer: I'm the author of jsonix.
This is what's called compact naming. This is an option of the Jsonix Schema Compiler which generates shorter names in mappings, like n instead of name or dens instead of defaultElementNamespaceURI. The goal is clearly to make mappings smaller and since ogc-schemas are pretty large, they are compiled with compact naming by default.
If you want standard naming, fork and remove
<arg>-Xjsonix-compact</arg>
from all the pom.xmls.
Both compact and standard names work in runtime, I think standard names have higher priority.

Related Links

jsonix properties - ogc-schemas .js aren't same
Trying to understand why simple jsonix unmarshalling is failing
Unmarshalling SOS GetCapabilities via JSONIX yields only abstract offering data

Categories

HOME
libgdx
kendo-dropdown
enums
devexpress
hdfs
google-play-services
web2py
material-components
mosquitto
bittorrent
timber
stack-overflow
siesta
robolectric
susy-sass
string-formatting
bluemix-mobile-services
backtracking
backendless
high-availability
history.js
basic-authentication
unmarshalling
caesar-cipher
serversocket
markov-chains
cargo
telephonymanager
google-now
robust
sonarqube5.2
xcglogger
android-sharing
exc-bad-access
google-news
instafeedjs
mifos
cefpython
xcode6.4
dcount
nunit-console
nvda
msbuild-4.0
maven-release-plugin
powerpoint-2013
strpos
mercurial-extension
wif4.5
lovefield
in-app-billing
juniper-network-connect
highest
knife
hmisc
wso2ml
unidata
nssortdescriptor
android-audiomanager
kognitio-wx2
phonegap-facebook-plugin
hp-idol-ondemand
iodocs
berkeley-db-xml
category-theory
apache-shindig
boinc
objective-c-runtime
insertion
days
ofstream
proc-open
cyrillic
icenium
red-system
zend-pdf
wndproc
platform-independent
infopath-2007
botnet
grails-validation
servlet-container
tabbarcontroller
suggestbox
watchpoint

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App