从 xsd 模式创建 Jsonix (2.x) 映射文件时,它会捕获枚举和所有可接受的值,例如
{
type: 'enumInfo',
localName: 'TrackAdvanceNotificationStatusType',
baseTypeInfo: 'String',
values: ['BACK_ON_TRACK', 'FAIL']
}
有什么方法可以方便地从我的 javascript 代码中利用这些枚举值,还是它们仅供 Jsonix 内部使用?