serialization - deserialization between model and definition for Rules and Multiplicity
This commit is contained in:
parent
62557fdf58
commit
c12fd1f1be
|
@ -31,7 +31,29 @@ export const TestModel = {
|
||||||
"description": "",
|
"description": "",
|
||||||
"extendedDescription": "",
|
"extendedDescription": "",
|
||||||
"viewStyle": "checkBox",
|
"viewStyle": "checkBox",
|
||||||
"rule":[],
|
"rules":[
|
||||||
|
{
|
||||||
|
"ruleType":"fieldValue",
|
||||||
|
"target":"metadataStandarsA211",
|
||||||
|
"ruleStyle":"boolean",
|
||||||
|
"value":"true",
|
||||||
|
"valueType":"boolean"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ruleType":"fieldValue",
|
||||||
|
"target":"freeOfChargeGroupCommentA213",
|
||||||
|
"ruleStyle":"boolean",
|
||||||
|
"value":"true",
|
||||||
|
"valueType":"boolean"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ruleType":"fieldValue",
|
||||||
|
"target":"standardisedVocabulariesA212",
|
||||||
|
"ruleStyle":"boolean",
|
||||||
|
"value":"true",
|
||||||
|
"valueType":"boolean"
|
||||||
|
}
|
||||||
|
],
|
||||||
"multiplicity":{
|
"multiplicity":{
|
||||||
"min":0,
|
"min":0,
|
||||||
"max":1
|
"max":1
|
||||||
|
@ -76,7 +98,15 @@ export const TestModel = {
|
||||||
"description": "User can select from a list of metadata standards. If they cannot find the standard in the list provided then they should choose \"not listed\". Selecting this will result in a field in which the user can insert the URL to the description of the metadata scheme used. A \"comments\" box should exist to allow users to add comments. They may select more than one metadata standard. They may specify more than one URL when selecting \"not listed\". They are also presented with a field in which to specify the location of the metadata service. Users can select the \"no metadata\" button to specify no metadata will be used to describe the data.",
|
"description": "User can select from a list of metadata standards. If they cannot find the standard in the list provided then they should choose \"not listed\". Selecting this will result in a field in which the user can insert the URL to the description of the metadata scheme used. A \"comments\" box should exist to allow users to add comments. They may select more than one metadata standard. They may specify more than one URL when selecting \"not listed\". They are also presented with a field in which to specify the location of the metadata service. Users can select the \"no metadata\" button to specify no metadata will be used to describe the data.",
|
||||||
"extendedDescription": "FieldGroup Description",
|
"extendedDescription": "FieldGroup Description",
|
||||||
"viewStyle": "booleanDesicion",
|
"viewStyle": "booleanDesicion",
|
||||||
"rule":[],
|
"rules":[
|
||||||
|
{
|
||||||
|
"ruleType":"fieldValue",
|
||||||
|
"target":"noMetadata",
|
||||||
|
"ruleStyle":"boolean",
|
||||||
|
"value":"true",
|
||||||
|
"valueType":"boolean"
|
||||||
|
}
|
||||||
|
],
|
||||||
"multiplicity":{
|
"multiplicity":{
|
||||||
"min":0,
|
"min":0,
|
||||||
"max":1
|
"max":1
|
||||||
|
@ -94,7 +124,7 @@ export const TestModel = {
|
||||||
"description": "The data will be described by metadata that follows the metadata standards described in <url1>, <url2>, ? The data will be described by metadata that follows the metadata schema described in <not-listed-url1>, <not-listed-url2>. The metadata will be stored in the service located at <metadata-repo-url>",
|
"description": "The data will be described by metadata that follows the metadata standards described in <url1>, <url2>, ? The data will be described by metadata that follows the metadata schema described in <not-listed-url1>, <not-listed-url2>. The metadata will be stored in the service located at <metadata-repo-url>",
|
||||||
"extendedDescription": "",
|
"extendedDescription": "",
|
||||||
"viewStyle": "combobox",
|
"viewStyle": "combobox",
|
||||||
"rule":[],
|
"rules":[],
|
||||||
"multiplicity":{
|
"multiplicity":{
|
||||||
"min":0,
|
"min":0,
|
||||||
"max":1
|
"max":1
|
||||||
|
@ -111,7 +141,15 @@ export const TestModel = {
|
||||||
"description": "",
|
"description": "",
|
||||||
"extendedDescription": "",
|
"extendedDescription": "",
|
||||||
"viewStyle": "checkBox",
|
"viewStyle": "checkBox",
|
||||||
"rule":[],
|
"rules":[
|
||||||
|
{
|
||||||
|
"ruleType":"fieldValue",
|
||||||
|
"target":"",
|
||||||
|
"ruleStyle":"boolean",
|
||||||
|
"value":"",
|
||||||
|
"valueType":"boolean"
|
||||||
|
}
|
||||||
|
],
|
||||||
"multiplicity":{
|
"multiplicity":{
|
||||||
"min":0,
|
"min":0,
|
||||||
"max":1
|
"max":1
|
||||||
|
@ -128,7 +166,15 @@ export const TestModel = {
|
||||||
"description": "URL to the description of the metadata scheme used",
|
"description": "URL to the description of the metadata scheme used",
|
||||||
"extendedDescription": "",
|
"extendedDescription": "",
|
||||||
"viewStyle": "freetext",
|
"viewStyle": "freetext",
|
||||||
"rule":[],
|
"rules":[
|
||||||
|
{
|
||||||
|
"ruleType":"fieldValue",
|
||||||
|
"target":"",
|
||||||
|
"ruleStyle":"boolean",
|
||||||
|
"value":"",
|
||||||
|
"valueType":"boolean"
|
||||||
|
}
|
||||||
|
],
|
||||||
"multiplicity":{
|
"multiplicity":{
|
||||||
"min":0,
|
"min":0,
|
||||||
"max":1
|
"max":1
|
||||||
|
@ -145,7 +191,15 @@ export const TestModel = {
|
||||||
"description": "",
|
"description": "",
|
||||||
"extendedDescription": "",
|
"extendedDescription": "",
|
||||||
"viewStyle": "freetext",
|
"viewStyle": "freetext",
|
||||||
"rule":[],
|
"rules":[
|
||||||
|
{
|
||||||
|
"ruleType":"fieldValue",
|
||||||
|
"target":"",
|
||||||
|
"ruleStyle":"boolean",
|
||||||
|
"value":"",
|
||||||
|
"valueType":"boolean"
|
||||||
|
}
|
||||||
|
],
|
||||||
"multiplicity":{
|
"multiplicity":{
|
||||||
"min":0,
|
"min":0,
|
||||||
"max":1
|
"max":1
|
||||||
|
@ -162,7 +216,15 @@ export const TestModel = {
|
||||||
"description": "",
|
"description": "",
|
||||||
"extendedDescription": "",
|
"extendedDescription": "",
|
||||||
"viewStyle": "checkBox",
|
"viewStyle": "checkBox",
|
||||||
"rule":[],
|
"rules":[
|
||||||
|
{
|
||||||
|
"ruleType":"fieldValue",
|
||||||
|
"target":"",
|
||||||
|
"ruleStyle":"boolean",
|
||||||
|
"value":"",
|
||||||
|
"valueType":"boolean"
|
||||||
|
}
|
||||||
|
],
|
||||||
"multiplicity":{
|
"multiplicity":{
|
||||||
"min":0,
|
"min":0,
|
||||||
"max":1
|
"max":1
|
||||||
|
|
|
@ -11,6 +11,7 @@ import org.w3c.dom.NodeList;
|
||||||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
|
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
|
||||||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
|
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
|
||||||
|
|
||||||
|
import models.components.commons.Multiplicity;
|
||||||
import utilities.XmlSerializable;
|
import utilities.XmlSerializable;
|
||||||
import utilities.builders.XmlBuilder;
|
import utilities.builders.XmlBuilder;
|
||||||
|
|
||||||
|
@ -19,6 +20,7 @@ public class FieldSet implements DatabaseModelDefinition,XmlSerializable<FieldSe
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
private int ordinal;
|
private int ordinal;
|
||||||
|
private Multiplicity multiplicity;
|
||||||
|
|
||||||
private List<Field> fields;
|
private List<Field> fields;
|
||||||
|
|
||||||
|
@ -41,6 +43,12 @@ public class FieldSet implements DatabaseModelDefinition,XmlSerializable<FieldSe
|
||||||
this.fields = fields;
|
this.fields = fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Multiplicity getMultiplicity() {
|
||||||
|
return multiplicity;
|
||||||
|
}
|
||||||
|
public void setMultiplicity(Multiplicity multiplicity) {
|
||||||
|
this.multiplicity = multiplicity;
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public Element toXml(Document doc) {
|
public Element toXml(Document doc) {
|
||||||
|
|
||||||
|
@ -53,6 +61,11 @@ public class FieldSet implements DatabaseModelDefinition,XmlSerializable<FieldSe
|
||||||
fieldsElement.appendChild(field.toXml(doc));
|
fieldsElement.appendChild(field.toXml(doc));
|
||||||
}
|
}
|
||||||
rootElement.appendChild(fieldsElement);
|
rootElement.appendChild(fieldsElement);
|
||||||
|
Element multiplicity = doc.createElement("multiplicity");
|
||||||
|
multiplicity.setAttribute("min", ""+this.multiplicity.getMin());
|
||||||
|
multiplicity.setAttribute("max", ""+this.multiplicity.getMax());
|
||||||
|
rootElement.appendChild(multiplicity);
|
||||||
|
rootElement.appendChild(multiplicity);
|
||||||
return rootElement;
|
return rootElement;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
@ -71,6 +84,11 @@ public class FieldSet implements DatabaseModelDefinition,XmlSerializable<FieldSe
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.multiplicity = new Multiplicity();
|
||||||
|
Element multiplicity = (Element)element.getElementsByTagName("multiplicity").item(0);
|
||||||
|
this.multiplicity.setMin(Integer.parseInt(multiplicity.getAttribute("min")));
|
||||||
|
this.multiplicity.setMax(Integer.parseInt(multiplicity.getAttribute("max")));
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ import org.w3c.dom.Element;
|
||||||
|
|
||||||
import entities.xmlmodels.modeldefinition.DatabaseModelDefinition;
|
import entities.xmlmodels.modeldefinition.DatabaseModelDefinition;
|
||||||
import models.components.commons.ViewStyle;
|
import models.components.commons.ViewStyle;
|
||||||
|
import models.components.commons.Visibility;
|
||||||
import models.components.commons.datafield.FieldData;
|
import models.components.commons.datafield.FieldData;
|
||||||
import utilities.XmlSerializable;
|
import utilities.XmlSerializable;
|
||||||
import utilities.builders.ModelBuilder;
|
import utilities.builders.ModelBuilder;
|
||||||
|
@ -17,6 +18,7 @@ public class Field implements DatabaseViewStyleDefinition,XmlSerializable<Field>
|
||||||
private String description;
|
private String description;
|
||||||
private String extendedDescription;
|
private String extendedDescription;
|
||||||
private ViewStyle viewStyle;
|
private ViewStyle viewStyle;
|
||||||
|
private Visibility visible;
|
||||||
private FieldData data;
|
private FieldData data;
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
|
@ -67,6 +69,13 @@ public class Field implements DatabaseViewStyleDefinition,XmlSerializable<Field>
|
||||||
public void setData(FieldData data) {
|
public void setData(FieldData data) {
|
||||||
this.data = data;
|
this.data = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Visibility getVisible() {
|
||||||
|
return visible;
|
||||||
|
}
|
||||||
|
public void setVisible(Visibility visible) {
|
||||||
|
this.visible = visible;
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public Element toXml(Document doc) {
|
public Element toXml(Document doc) {
|
||||||
Element rootElement = doc.createElement("field");
|
Element rootElement = doc.createElement("field");
|
||||||
|
@ -84,6 +93,9 @@ public class Field implements DatabaseViewStyleDefinition,XmlSerializable<Field>
|
||||||
viewStyle.setAttribute("renderstyle", this.viewStyle.getRenderStyle());
|
viewStyle.setAttribute("renderstyle", this.viewStyle.getRenderStyle());
|
||||||
viewStyle.setAttribute("cssClass", this.viewStyle.getCssClass());
|
viewStyle.setAttribute("cssClass", this.viewStyle.getCssClass());
|
||||||
|
|
||||||
|
Element visibility = this.visible.toXml(doc);
|
||||||
|
|
||||||
|
rootElement.appendChild(visibility);
|
||||||
rootElement.appendChild(extendedDescription);
|
rootElement.appendChild(extendedDescription);
|
||||||
rootElement.appendChild(viewStyle);
|
rootElement.appendChild(viewStyle);
|
||||||
rootElement.appendChild(description);
|
rootElement.appendChild(description);
|
||||||
|
@ -107,6 +119,9 @@ public class Field implements DatabaseViewStyleDefinition,XmlSerializable<Field>
|
||||||
this.viewStyle.setRenderStyle(viewStyle.getAttribute("renderstyle"));
|
this.viewStyle.setRenderStyle(viewStyle.getAttribute("renderstyle"));
|
||||||
this.viewStyle.setCssClass(viewStyle.getAttribute("cssClass"));
|
this.viewStyle.setCssClass(viewStyle.getAttribute("cssClass"));
|
||||||
|
|
||||||
|
Element visibility = (Element)element.getElementsByTagName("visible").item(0);
|
||||||
|
this.visible = new Visibility().fromXml(visibility);
|
||||||
|
|
||||||
Element dataElement = (Element)element.getElementsByTagName("data").item(0);
|
Element dataElement = (Element)element.getElementsByTagName("data").item(0);
|
||||||
this.data = new ModelBuilder().toFieldData(null, this.viewStyle.getRenderStyle());
|
this.data = new ModelBuilder().toFieldData(null, this.viewStyle.getRenderStyle());
|
||||||
if(this.data!=null)this.data.fromXml(dataElement);
|
if(this.data!=null)this.data.fromXml(dataElement);
|
||||||
|
|
|
@ -22,6 +22,22 @@ public class FieldSet implements DatabaseViewStyleDefinition,XmlSerializable<Fie
|
||||||
|
|
||||||
public void setFields(List<Field> fields) {
|
public void setFields(List<Field> fields) {
|
||||||
this.fields = fields;
|
this.fields = fields;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getOrdinal() {
|
||||||
|
return ordinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrdinal(int ordinal) {
|
||||||
|
this.ordinal = ordinal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -0,0 +1,76 @@
|
||||||
|
package models.components.commons;
|
||||||
|
|
||||||
|
import org.w3c.dom.Document;
|
||||||
|
import org.w3c.dom.Element;
|
||||||
|
|
||||||
|
import utilities.XmlSerializable;
|
||||||
|
|
||||||
|
public class Rule implements XmlSerializable<Rule>{
|
||||||
|
private String ruleType;
|
||||||
|
private String target;
|
||||||
|
private String ruleStyle;
|
||||||
|
private String value;
|
||||||
|
private String valueType;
|
||||||
|
public String getRuleType() {
|
||||||
|
return ruleType;
|
||||||
|
}
|
||||||
|
public void setRuleType(String ruleType) {
|
||||||
|
this.ruleType = ruleType;
|
||||||
|
}
|
||||||
|
public String getTarget() {
|
||||||
|
return target;
|
||||||
|
}
|
||||||
|
public void setTarget(String target) {
|
||||||
|
this.target = target;
|
||||||
|
}
|
||||||
|
public String getRuleStyle() {
|
||||||
|
return ruleStyle;
|
||||||
|
}
|
||||||
|
public void setRuleStyle(String ruleStyle) {
|
||||||
|
this.ruleStyle = ruleStyle;
|
||||||
|
}
|
||||||
|
public String getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
public void setValue(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
public String getValueType() {
|
||||||
|
return valueType;
|
||||||
|
}
|
||||||
|
public void setValueType(String valueType) {
|
||||||
|
this.valueType = valueType;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Element toXml(Document doc) {
|
||||||
|
Element rule = doc.createElement("rule");
|
||||||
|
rule.setAttribute("type",this.ruleType);
|
||||||
|
rule.setAttribute("target", this.target);
|
||||||
|
rule.setAttribute("ruleStyle", this.ruleStyle);
|
||||||
|
|
||||||
|
Element value = doc.createElement("value");
|
||||||
|
value.setAttribute("type", this.valueType);
|
||||||
|
value.setTextContent(this.value);
|
||||||
|
|
||||||
|
rule.appendChild(value);
|
||||||
|
return rule;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public Rule fromXml(Element item) {
|
||||||
|
this.ruleType = item.getAttribute("type");
|
||||||
|
this.target = item.getAttribute("target");
|
||||||
|
this.ruleStyle = item.getAttribute("ruleStyle");
|
||||||
|
|
||||||
|
Element value = (Element)item.getElementsByTagName("value").item(0);
|
||||||
|
if(value!=null){
|
||||||
|
this.valueType = value.getAttribute("type");
|
||||||
|
this.value = value.getTextContent();
|
||||||
|
}
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,58 @@
|
||||||
|
package models.components.commons;
|
||||||
|
|
||||||
|
import java.util.LinkedList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.w3c.dom.Document;
|
||||||
|
import org.w3c.dom.Element;
|
||||||
|
import org.w3c.dom.Node;
|
||||||
|
import org.w3c.dom.NodeList;
|
||||||
|
|
||||||
|
import entities.xmlmodels.viewstyledefinition.Field;
|
||||||
|
import utilities.XmlSerializable;
|
||||||
|
|
||||||
|
public class Visibility implements XmlSerializable<Visibility>{
|
||||||
|
private List<Rule> rules;
|
||||||
|
private String style;
|
||||||
|
public List<Rule> getRules() {
|
||||||
|
return rules;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRules(List<Rule> rules) {
|
||||||
|
this.rules = rules;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStyle() {
|
||||||
|
return style;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStyle(String style) {
|
||||||
|
this.style = style;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Element toXml(Document doc) {
|
||||||
|
Element root = doc.createElement("visible");
|
||||||
|
root.setAttribute("style", this.style);
|
||||||
|
if(rules!=null&&!rules.isEmpty()){
|
||||||
|
for(Rule rule:rules){
|
||||||
|
root.appendChild(rule.toXml(doc));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return root;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Visibility fromXml(Element item) {
|
||||||
|
this.style = item.getAttribute("style");
|
||||||
|
this.rules = new LinkedList();
|
||||||
|
NodeList rulesElements = item.getChildNodes();
|
||||||
|
for (int temp = 0; temp < rulesElements.getLength(); temp++) {
|
||||||
|
Node ruleElement = rulesElements.item(temp);
|
||||||
|
if (ruleElement .getNodeType() == Node.ELEMENT_NODE) {
|
||||||
|
this.rules.add(new Rule().fromXml((Element)ruleElement));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
|
@ -8,6 +8,7 @@ import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
|
||||||
import models.components.commons.DefaultValue;
|
import models.components.commons.DefaultValue;
|
||||||
import models.components.commons.Multiplicity;
|
import models.components.commons.Multiplicity;
|
||||||
import models.components.commons.ViewStyle;
|
import models.components.commons.ViewStyle;
|
||||||
|
import models.components.commons.Visibility;
|
||||||
import utilities.ModelDefinition;
|
import utilities.ModelDefinition;
|
||||||
import utilities.ViewStyleDefinition;
|
import utilities.ViewStyleDefinition;
|
||||||
import utilities.builders.ModelBuilder;
|
import utilities.builders.ModelBuilder;
|
||||||
|
@ -26,7 +27,7 @@ public class Field implements ModelDefinition<entities.xmlmodels.modeldefinition
|
||||||
private DefaultValue defaultValue;
|
private DefaultValue defaultValue;
|
||||||
private Multiplicity multiplicity;
|
private Multiplicity multiplicity;
|
||||||
private Object data;
|
private Object data;
|
||||||
|
private Visibility visible;
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
|
@ -111,6 +112,14 @@ public class Field implements ModelDefinition<entities.xmlmodels.modeldefinition
|
||||||
public void setData(Object data) {
|
public void setData(Object data) {
|
||||||
this.data = data;
|
this.data = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Visibility getVisible() {
|
||||||
|
return visible;
|
||||||
|
}
|
||||||
|
public void setVisible(Visibility visible) {
|
||||||
|
this.visible = visible;
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public entities.xmlmodels.modeldefinition.Field toDatabaseDefinition(entities.xmlmodels.modeldefinition.Field field) {
|
public entities.xmlmodels.modeldefinition.Field toDatabaseDefinition(entities.xmlmodels.modeldefinition.Field field) {
|
||||||
field.setDatatype(this.datatype);
|
field.setDatatype(this.datatype);
|
||||||
|
@ -136,6 +145,7 @@ public class Field implements ModelDefinition<entities.xmlmodels.modeldefinition
|
||||||
field.setTitle(this.title);
|
field.setTitle(this.title);
|
||||||
field.setViewStyle(this.viewStyle);
|
field.setViewStyle(this.viewStyle);
|
||||||
field.setData(new ModelBuilder().toFieldData(data, this.viewStyle.getRenderStyle()));
|
field.setData(new ModelBuilder().toFieldData(data, this.viewStyle.getRenderStyle()));
|
||||||
|
field.setVisible(this.visible);
|
||||||
return field;
|
return field;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
@ -148,6 +158,7 @@ public class Field implements ModelDefinition<entities.xmlmodels.modeldefinition
|
||||||
this.title = item.getTitle();
|
this.title = item.getTitle();
|
||||||
this.viewStyle = item.getViewStyle();
|
this.viewStyle = item.getViewStyle();
|
||||||
this.data = item.getData();
|
this.data = item.getData();
|
||||||
|
this.visible = item.getVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
|
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
|
||||||
|
|
||||||
|
import models.components.commons.Multiplicity;
|
||||||
import utilities.ModelDefinition;
|
import utilities.ModelDefinition;
|
||||||
import utilities.ViewStyleDefinition;
|
import utilities.ViewStyleDefinition;
|
||||||
import utilities.builders.ModelBuilder;
|
import utilities.builders.ModelBuilder;
|
||||||
|
@ -12,7 +13,7 @@ import utilities.builders.ModelBuilder;
|
||||||
public class FieldSet implements ModelDefinition<entities.xmlmodels.modeldefinition.FieldSet>,ViewStyleDefinition<entities.xmlmodels.viewstyledefinition.FieldSet>{
|
public class FieldSet implements ModelDefinition<entities.xmlmodels.modeldefinition.FieldSet>,ViewStyleDefinition<entities.xmlmodels.viewstyledefinition.FieldSet>{
|
||||||
private String id;
|
private String id;
|
||||||
private int ordinal;
|
private int ordinal;
|
||||||
|
private Multiplicity multiplicity;
|
||||||
private List<Field> fields;
|
private List<Field> fields;
|
||||||
|
|
||||||
public List<Field> getFields() {
|
public List<Field> getFields() {
|
||||||
|
@ -39,12 +40,21 @@ public class FieldSet implements ModelDefinition<entities.xmlmodels.modeldefinit
|
||||||
this.ordinal = ordinal;
|
this.ordinal = ordinal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Multiplicity getMultiplicity() {
|
||||||
|
return multiplicity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMultiplicity(Multiplicity multiplicity) {
|
||||||
|
this.multiplicity = multiplicity;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public entities.xmlmodels.modeldefinition.FieldSet toDatabaseDefinition(entities.xmlmodels.modeldefinition.FieldSet fieldSet) {
|
public entities.xmlmodels.modeldefinition.FieldSet toDatabaseDefinition(entities.xmlmodels.modeldefinition.FieldSet fieldSet) {
|
||||||
fieldSet.setId(this.id);
|
fieldSet.setId(this.id);
|
||||||
fieldSet.setOrdinal(this.ordinal);
|
fieldSet.setOrdinal(this.ordinal);
|
||||||
List<entities.xmlmodels.modeldefinition.Field> modelfields = new ModelBuilder().toModelDefinition(this.fields, entities.xmlmodels.modeldefinition.Field.class);
|
List<entities.xmlmodels.modeldefinition.Field> modelfields = new ModelBuilder().toModelDefinition(this.fields, entities.xmlmodels.modeldefinition.Field.class);
|
||||||
fieldSet.setFields(modelfields);
|
fieldSet.setFields(modelfields);
|
||||||
|
fieldSet.setMultiplicity(this.multiplicity);
|
||||||
return fieldSet;
|
return fieldSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,18 +62,23 @@ public class FieldSet implements ModelDefinition<entities.xmlmodels.modeldefinit
|
||||||
public void fromDatabaseDefinition(entities.xmlmodels.modeldefinition.FieldSet item) {
|
public void fromDatabaseDefinition(entities.xmlmodels.modeldefinition.FieldSet item) {
|
||||||
this.id = item.getId();
|
this.id = item.getId();
|
||||||
this.ordinal = item.getOrdinal();
|
this.ordinal = item.getOrdinal();
|
||||||
|
this.multiplicity = item.getMultiplicity();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public entities.xmlmodels.viewstyledefinition.FieldSet toDatabaseDefinition(entities.xmlmodels.viewstyledefinition.FieldSet item) {
|
public entities.xmlmodels.viewstyledefinition.FieldSet toDatabaseDefinition(entities.xmlmodels.viewstyledefinition.FieldSet item) {
|
||||||
List<entities.xmlmodels.viewstyledefinition.Field> viewStylefields = new ModelBuilder().toViewStyleDefinition(this.fields, entities.xmlmodels.viewstyledefinition.Field.class);
|
List<entities.xmlmodels.viewstyledefinition.Field> viewStylefields = new ModelBuilder().toViewStyleDefinition(this.fields, entities.xmlmodels.viewstyledefinition.Field.class);
|
||||||
item.setFields(viewStylefields);
|
item.setFields(viewStylefields);
|
||||||
|
item.setId(this.id);
|
||||||
|
item.setOrdinal(this.ordinal);
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void fromDatabaseDefinition(entities.xmlmodels.viewstyledefinition.FieldSet item) {
|
public void fromDatabaseDefinition(entities.xmlmodels.viewstyledefinition.FieldSet item) {
|
||||||
this.fields = new ModelBuilder().fromViewStyleDefinition(item.getFields(), Field.class);
|
this.fields = new ModelBuilder().fromViewStyleDefinition(item.getFields(), Field.class);
|
||||||
|
this.id = item.getId();
|
||||||
|
this.ordinal = item.getOrdinal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<div *ngIf="this.visibilityRulesService.isElementVisible(pathName,field.id)" [formGroup]="form" class="form-group" [ngSwitch]="field.viewStyle">
|
<div *ngIf="this.visibilityRulesService.isElementVisible(pathName,field.id)" [formGroup]="form" class="form-group" [ngSwitch]="field.viewStyle.renderStyle">
|
||||||
<div [ngClass]="{true:'show', false:'hide'}[field.visible]">
|
<div [ngClass]="{true:'show', false:'hide'}[field.visible]">
|
||||||
|
|
||||||
<label>{{field.description}}</label>
|
<label>{{field.description}}</label>
|
||||||
|
|
|
@ -94,13 +94,38 @@ export const TestModel = {
|
||||||
"renderStyle": "checkBox",
|
"renderStyle": "checkBox",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"visible": {
|
||||||
"type":"any",
|
"rules": [
|
||||||
"value":""
|
{
|
||||||
|
"ruleType": "fieldValue",
|
||||||
|
"target": "metadataStandarsA211",
|
||||||
|
"ruleStyle": "boolean",
|
||||||
|
"value": "true",
|
||||||
|
"valueType": "boolean"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ruleType": "fieldValue",
|
||||||
|
"target": "freeOfChargeGroupCommentA213",
|
||||||
|
"ruleStyle": "boolean",
|
||||||
|
"value": "true",
|
||||||
|
"valueType": "boolean"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ruleType": "fieldValue",
|
||||||
|
"target": "standardisedVocabulariesA212",
|
||||||
|
"ruleStyle": "boolean",
|
||||||
|
"value": "true",
|
||||||
|
"valueType": "boolean"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"defaultValue": {
|
||||||
"min":"1",
|
"type": "any",
|
||||||
"max":"1"
|
"value": ""
|
||||||
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
|
|
||||||
|
@ -116,13 +141,16 @@ export const TestModel = {
|
||||||
"renderStyle": "radiobox",
|
"renderStyle": "radiobox",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"defaultValue": {
|
||||||
"type":"any",
|
"type": "any",
|
||||||
"value":""
|
"value": ""
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"visible": {
|
||||||
"min":"1",
|
"rules": []
|
||||||
"max":"1"
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
"options": [
|
"options": [
|
||||||
|
@ -132,7 +160,12 @@ export const TestModel = {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"useMetadataQ211fs",
|
||||||
|
"ordinal":1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -176,19 +209,36 @@ export const TestModel = {
|
||||||
"renderStyle": "booleanDecision",
|
"renderStyle": "booleanDecision",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"visible": {
|
||||||
"type":"any",
|
"rules": [
|
||||||
"value":""
|
{
|
||||||
|
"ruleType": "fieldValue",
|
||||||
|
"target": "noMetadata",
|
||||||
|
"ruleStyle": "boolean",
|
||||||
|
"value": "true",
|
||||||
|
"valueType": "boolean"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"defaultValue": {
|
||||||
"min":"1",
|
"type": "any",
|
||||||
"max":"1"
|
"value": ""
|
||||||
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"useMetadataQ211fs",
|
||||||
|
"ordinal":1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fields":
|
"fields":
|
||||||
|
@ -203,19 +253,29 @@ export const TestModel = {
|
||||||
"renderStyle": "combobox",
|
"renderStyle": "combobox",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"defaultValue": {
|
||||||
"type":"any",
|
"type": "any",
|
||||||
"value":""
|
"value": ""
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"visible": {
|
||||||
"min":"1",
|
"rules": []
|
||||||
"max":"1"
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
"type": "autocomplete",
|
"type": "autocomplete",
|
||||||
"url": "http://dionysus.di.uoa.gr:8080/dmp-backend/rest/external/datarepos?query=gree"
|
"url": "http://dionysus.di.uoa.gr:8080/dmp-backend/rest/external/datarepos?query=gree"
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"metadataStandarsA211fs",
|
||||||
|
"ordinal":1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fields":
|
"fields":
|
||||||
|
@ -230,19 +290,36 @@ export const TestModel = {
|
||||||
"renderStyle": "checkBox",
|
"renderStyle": "checkBox",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"visible": {
|
||||||
"type":"any",
|
"rules": [
|
||||||
"value":""
|
{
|
||||||
|
"ruleType": "fieldValue",
|
||||||
|
"target": "",
|
||||||
|
"ruleStyle": "boolean",
|
||||||
|
"value": "",
|
||||||
|
"valueType": "boolean"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"defaultValue": {
|
||||||
"min":"1",
|
"type": "any",
|
||||||
"max":"1"
|
"value": ""
|
||||||
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"notlistedA211fs",
|
||||||
|
"ordinal":1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fields":
|
"fields":
|
||||||
|
@ -257,18 +334,28 @@ export const TestModel = {
|
||||||
"renderStyle": "freetext",
|
"renderStyle": "freetext",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"visible": {
|
||||||
"type":"any",
|
"rules": []
|
||||||
"value":""
|
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"defaultValue": {
|
||||||
"min":"1",
|
"type": "any",
|
||||||
"max":"1"
|
"value": ""
|
||||||
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"notlistedUrlA211fs",
|
||||||
|
"ordinal":1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fields":
|
"fields":
|
||||||
|
@ -283,18 +370,28 @@ export const TestModel = {
|
||||||
"renderStyle": "freetext",
|
"renderStyle": "freetext",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"defaultValue": {
|
||||||
"type":"any",
|
"type": "any",
|
||||||
"value":""
|
"value": ""
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"visible": {
|
||||||
"min":"1",
|
"rules": []
|
||||||
"max":"1"
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"notlistedCommentA211fs",
|
||||||
|
"ordinal":1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fields":
|
"fields":
|
||||||
|
@ -309,19 +406,28 @@ export const TestModel = {
|
||||||
"renderStyle": "checkBox",
|
"renderStyle": "checkBox",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"visible": {
|
||||||
"type":"any",
|
"rules": []
|
||||||
"value":""
|
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"defaultValue": {
|
||||||
"min":"1",
|
"type": "any",
|
||||||
"max":"1"
|
"value": ""
|
||||||
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"noMetadatafs",
|
||||||
|
"ordinal":1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -346,18 +452,28 @@ export const TestModel = {
|
||||||
"renderStyle": "booleanDesicion",
|
"renderStyle": "booleanDesicion",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"visible": {
|
||||||
"type":"any",
|
"rules": []
|
||||||
"value":""
|
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"defaultValue": {
|
||||||
"min":"1",
|
"type": "any",
|
||||||
"max":"1"
|
"value": ""
|
||||||
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"nuseVocabulariesQ212fs",
|
||||||
|
"ordinal":1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -371,13 +487,16 @@ export const TestModel = {
|
||||||
"renderStyle": "combobox",
|
"renderStyle": "combobox",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"visible": {
|
||||||
"type":"any",
|
"rules": []
|
||||||
"value":""
|
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"defaultValue": {
|
||||||
"min":"1",
|
"type": "any",
|
||||||
"max":"1"
|
"value": ""
|
||||||
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
"type": "wordlist",
|
"type": "wordlist",
|
||||||
|
@ -387,7 +506,14 @@ export const TestModel = {
|
||||||
{ "label": "Panagiotis", "value": "mpotis" }
|
{ "label": "Panagiotis", "value": "mpotis" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"standardisedVocabulariesA212fs",
|
||||||
|
"ordinal":1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -401,18 +527,28 @@ export const TestModel = {
|
||||||
"renderStyle": "checkBox",
|
"renderStyle": "checkBox",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"visible": {
|
||||||
"type":"any",
|
"rules": []
|
||||||
"value":""
|
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"defaultValue": {
|
||||||
"min":"1",
|
"type": "any",
|
||||||
"max":"1"
|
"value": ""
|
||||||
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"notlistedVocabularyA212fs",
|
||||||
|
"ordinal":1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -426,18 +562,28 @@ export const TestModel = {
|
||||||
"renderStyle": "freetext",
|
"renderStyle": "freetext",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"visible": {
|
||||||
"type":"any",
|
"rules": []
|
||||||
"value":""
|
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"defaultValue": {
|
||||||
"min":"1",
|
"type": "any",
|
||||||
"max":"1"
|
"value": ""
|
||||||
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"notlistedVocUrlA212fs",
|
||||||
|
"ordinal":1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -451,18 +597,28 @@ export const TestModel = {
|
||||||
"renderStyle": "freetext",
|
"renderStyle": "freetext",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"defaultValue": {
|
||||||
"type":"any",
|
"type": "any",
|
||||||
"value":""
|
"value": ""
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"visible": {
|
||||||
"min":"1",
|
"rules": []
|
||||||
"max":"1"
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"notlistedVocCommentA212fs",
|
||||||
|
"ordinal":1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -472,23 +628,32 @@ export const TestModel = {
|
||||||
"title": "The metadata will not make use of any vocabulary",
|
"title": "The metadata will not make use of any vocabulary",
|
||||||
"description": "",
|
"description": "",
|
||||||
"extendedDescription": "",
|
"extendedDescription": "",
|
||||||
"viewStyle": {
|
"viewStyle": {
|
||||||
"renderStyle": "checkBox",
|
"renderStyle": "checkBox",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"defaultValue": {
|
||||||
"type":"any",
|
"type": "any",
|
||||||
"value":""
|
"value": ""
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"visible": {
|
||||||
"min":"1",
|
"rules": []
|
||||||
"max":"1"
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"noMetadataVocabularyA212fs",
|
||||||
|
"ordinal":1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -513,18 +678,28 @@ export const TestModel = {
|
||||||
"renderStyle": "booleanDesicion",
|
"renderStyle": "booleanDesicion",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"visible": {
|
||||||
"type":"any",
|
"rules": []
|
||||||
"value":""
|
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"defaultValue": {
|
||||||
"min":"1",
|
"type": "any",
|
||||||
"max":"1"
|
"value": ""
|
||||||
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"freeOfChargeGroupQ213fs",
|
||||||
|
"ordinal":1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -538,19 +713,28 @@ export const TestModel = {
|
||||||
"renderStyle": "freetext",
|
"renderStyle": "freetext",
|
||||||
"cssClass": ""
|
"cssClass": ""
|
||||||
},
|
},
|
||||||
"defaultValue":{
|
"visible": {
|
||||||
"type":"any",
|
"rules": []
|
||||||
"value":""
|
|
||||||
},
|
},
|
||||||
"multiplicity":{
|
"defaultValue": {
|
||||||
"min":"1",
|
"type": "any",
|
||||||
"max":"1"
|
"value": ""
|
||||||
|
},
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"multiplicity": {
|
||||||
|
"min": "1",
|
||||||
|
"max": "1"
|
||||||
|
},
|
||||||
|
"id":"freeOfChargeGroupCommentA213fs",
|
||||||
|
"ordinal":1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue