Skip to content

Mapping Configuration

Alexey Valikov edited this page Apr 27, 2015 · 4 revisions

Synopsis

<jsonix:mapping
    package="org.hisrc.jsonix.demos.po"
    name="PO"
    schemaId="${mapping.targetNamespace}#"
    id="..."
    defaultElementNamespaceURI="..."
    defaultAttributeNamespaceURI="..."
    name="XLink_1_0">

    <jsonix:includes .../>
    <jsonix:excludes .../>
</jsonix:mapping>

Configuration attributes and elements

  • package - name of the target package, required. See Associating Configuration Elements with Schemas.
  • name - name of the mapping, optional. If omitted, will be generated based on the name of the target package. If target package is unnamed, the Mapping name will be used. Otherwise all . will be replaced with _. So for org.hisrc.jsonix.demos.po the result would be org_hisrc_jsonix_demos_po.
  • schemaId - id of the JSON Schema for this mapping, optional.
    Supports expressions ${module.schemaId}, ${module.name}, ${mapping.name}, ${mapping.targetNamespace}.
    If omitted, defaults to ${mapping.targetNamespace}#.
    See JSON Schema Generation.
  • id - unique id of the mapping, optional. If omitted, will be generated based on the name of the mapping.
  • defaultElementNamespaceURI - default element namespace URI for the mapping, optional. If omitted, will be calculated automatically as the most used element namespace URI in the mapping.
  • defaultAttributeNamespaceURI - default attribute namespace URI for the mapping, optional. If omitted, will be calculated automatically as the most used attribute namespace URI in the mapping.
  • includes - specifies, which items (elements, types, properties or dependencies of other mappings) should be included into the mapping. If omitted, all items (unless excluded) will be included. See Includes Configuration.
  • excludes - specifies, which items (elements, types, properties) should be excluded from this mapping. If omitted, no items will be excluded. See Excludes Configuration.
Clone this wiki locally