Application Schema Metadata

This target can be used to gather information about application schemas (more specifically: the schemas that are selected for processing).

NOTE: at the moment the target only supports a limited set of metadata – reporting of additional useful metadata can be added in the future.

Configuration

Class

The class for the target implementation is de.interactive_instruments.ShapeChange.Target.Metadata.ApplicationSchemaMetadata

Encoding Rules

The following rules are supported by this target.

rule-asm-all-identify-profiles

Behavior

If this rule is enabled, the target identifies the names of all profiles to which schema elements belong (NOTE: only for the schemas that are selected for processing).

Parameters

none

rule-asm-all-identifyTypeUsage

(since 2.8.0)

This rule identifies which feature and object types directly or indirectly make use (as property value type) of one or more of the union or data types defined by target parameter typesForTypeUsageIdentification.

Parameters

The parameters supported by this target are described in the following sections.

defaultEncodingRule

Alias: none

Type: String

Default Value: none

Behavior:

The identifier of the default encoding rule governing the derivation of the replication schema.

Applies to Rule(s):

  • none – default behavior

typesForTypeUsageIdentification

Alias: none

Type: String

Default Value: none

Behavior:

Required parameter for rule-asm-all-identifyTypeUsage. Multiple (union or data) type names are separated by commas.

Applies to Rule(s):

outputDirectory

Alias: none

Type: String

Default Value: the current run directory

Behavior:

The path to the folder in which the output file (an XML file structured according to this schema) will be created.

Applies to Rule(s):

  • none – default behavior

Map Entries

At the moment, no specific map entries have been defined for this target.

Sample Configuration

<Target class="de.interactive_instruments.ShapeChange.Target.Metadata.ApplicationSchemaMetadata"
  mode="enabled">
  <targetParameter name="outputDirectory" value="testResults/schema_metadata"/>
  <targetParameter name="sortedOutput" value="true"/>
  <targetParameter name="defaultEncodingRule" value="metadata"/>
  <rules>
    <EncodingRule name="metadata">
      <rule name="rule-asm-all-identify-profiles"/>
    </EncodingRule>
  </rules>
</Target>
Top