forked from halestudio/hale
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: functions not working for elements with value and attribute
For a formatting string or a regex the string "eu.esdihumboldt.hale.common.instance.orient.storage.DatabaseHandle$InstanceHandle@1008ac5f" it's now represented with the value of the source. ING-4156
- Loading branch information
1 parent
5e88ffe
commit 2493822
Showing
12 changed files
with
125 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
cst/plugins/eu.esdihumboldt.cst.test/testdata/formatting_string_instance/mapping.halex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<hale-project version="5.2.0.qualifier"> | ||
<name>mapping</name> | ||
<author>EmanuelaEpure</author> | ||
<created>2024-02-29T15:13:01.528+01:00</created> | ||
<modified>2024-02-29T15:18:03.421+01:00</modified> | ||
<save-config action-id="project.save" provider-id="eu.esdihumboldt.hale.io.project.hale25.xml.writer"> | ||
<setting name="charset">UTF-8</setting> | ||
<setting name="projectFiles.separate">false</setting> | ||
<setting name="contentType">eu.esdihumboldt.hale.io.project.hale25.xml</setting> | ||
<setting name="target">file:/C:/Users/EmanuelaEpure/Documents/GitHub/hale-studio-5_0/hale/cst/plugins/eu.esdihumboldt.cst.test/testdata/formatting_string_instance/mapping.halex</setting> | ||
</save-config> | ||
<resource action-id="eu.esdihumboldt.hale.io.schema.read.source" provider-id="eu.esdihumboldt.hale.io.schemabuilder"> | ||
<setting name="charset">UTF-8</setting> | ||
<setting name="resourceId">87062879-c0a0-43d2-9af3-1444a2c321db</setting> | ||
<setting name="source">file:/C:/Users/EmanuelaEpure/Documents/GitHub/hale-studio-5_0/hale/cst/plugins/eu.esdihumboldt.cst.test/testdata/formatting_string_instance/source-schema.groovy</setting> | ||
<setting name="contentType">eu.esdihumboldt.hale.io.schemabuilder</setting> | ||
</resource> | ||
<resource action-id="eu.esdihumboldt.hale.io.schema.read.target" provider-id="eu.esdihumboldt.hale.io.schemabuilder"> | ||
<setting name="charset">UTF-8</setting> | ||
<setting name="resourceId">fef220d5-4f13-4c63-abbd-6dbeb57dc079</setting> | ||
<setting name="source">file:/C:/Users/EmanuelaEpure/Documents/GitHub/hale-studio-5_0/hale/cst/plugins/eu.esdihumboldt.cst.test/testdata/formatting_string_instance/target-schema.groovy</setting> | ||
<setting name="contentType">eu.esdihumboldt.hale.io.schemabuilder</setting> | ||
</resource> | ||
<resource action-id="eu.esdihumboldt.hale.io.instance.read.source" provider-id="eu.esdihumboldt.hale.io.instancebuilder"> | ||
<setting name="charset">UTF-8</setting> | ||
<setting name="resourceId">42a12734-31f8-4e40-b75a-b46652ba8b17</setting> | ||
<setting name="source">file:/C:/Users/EmanuelaEpure/Documents/GitHub/hale-studio-5_0/hale/cst/plugins/eu.esdihumboldt.cst.test/testdata/formatting_string_instance/source-instances.groovy</setting> | ||
<setting name="contentType">eu.esdihumboldt.hale.io.instancebuilder</setting> | ||
</resource> | ||
<file name="alignment.xml" location="mapping.halex.alignment.xml"/> | ||
<file name="styles.sld" location="mapping.halex.styles.sld"/> | ||
</hale-project> |
32 changes: 32 additions & 0 deletions
32
.../eu.esdihumboldt.cst.test/testdata/formatting_string_instance/mapping.halex.alignment.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<alignment xmlns="http://www.esdi-humboldt.eu/hale/alignment"> | ||
<cell relation="eu.esdihumboldt.hale.align.retype" id="C65e3f9d0-a6e3-4361-9271-7809dc90184b" priority="normal"> | ||
<source> | ||
<class> | ||
<type name="A" ns="source"/> | ||
</class> | ||
</source> | ||
<target> | ||
<class> | ||
<type name="T" ns="target"/> | ||
</class> | ||
</target> | ||
<parameter value="false" name="ignoreNamespaces"/> | ||
<parameter value="false" name="structuralRename"/> | ||
</cell> | ||
<cell relation="eu.esdihumboldt.hale.align.formattedstring" id="Ccae1fa23-5d3e-41a4-b707-db5593e95cc0" priority="normal"> | ||
<source name="var"> | ||
<property> | ||
<type name="A" ns="source"/> | ||
<child name="a" ns="source"/> | ||
</property> | ||
</source> | ||
<target> | ||
<property> | ||
<type name="T" ns="target"/> | ||
<child name="a" ns="target"/> | ||
</property> | ||
</target> | ||
<parameter value="pref_{a}" name="pattern"/> | ||
</cell> | ||
</alignment> |
3 changes: 3 additions & 0 deletions
3
...ins/eu.esdihumboldt.cst.test/testdata/formatting_string_instance/mapping.halex.styles.sld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><sld:UserStyle xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"> | ||
<sld:Name>Default Styler</sld:Name> | ||
</sld:UserStyle> |
13 changes: 13 additions & 0 deletions
13
...gins/eu.esdihumboldt.cst.test/testdata/formatting_string_instance/source-instances.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
createCollection { | ||
|
||
/* | ||
* Sets of instances that are joined | ||
*/ | ||
|
||
A { | ||
a('a1') { | ||
a1('a_a1') | ||
a2('a_a2') | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...plugins/eu.esdihumboldt.cst.test/testdata/formatting_string_instance/source-schema.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
schema('source') { | ||
A { | ||
a(String) { | ||
a1(cardinality: '?') | ||
a2(cardinality: '?') | ||
} | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...gins/eu.esdihumboldt.cst.test/testdata/formatting_string_instance/target-instances.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
createCollection { | ||
T { | ||
a('pref_a1') | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...plugins/eu.esdihumboldt.cst.test/testdata/formatting_string_instance/target-schema.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
schema('target') { | ||
T { | ||
a() | ||
} | ||
} |