protected virtual C_ATTRIBUTE CloneAttribute(openehr.openehr.am.archetype.constraint_model.C_ATTRIBUTE o) { C_ATTRIBUTE result; if (o.cardinality() == null) { result = new C_SINGLE_ATTRIBUTE(); } else { C_MULTIPLE_ATTRIBUTE cloneMultiple = new C_MULTIPLE_ATTRIBUTE(); cloneMultiple.cardinality = CloneCardinality(o.cardinality()); result = cloneMultiple; } result.rm_attribute_name = o.rm_attribute_name().to_cil(); if (o.existence() != null) { result.existence = CloneIntervalOfInteger(o.existence()); } // 0..* children C_OBJECT (set in CloneTree) return(result); }
//public C_SINGLE_ATTRIBUTE MakeSingleAttribute(C_COMPLEX_OBJECT an_object, string name) //JAR: 30APR2007, AE-42 Support XML Schema 1.0.1 public C_SINGLE_ATTRIBUTE MakeSingleAttribute(C_COMPLEX_OBJECT an_object, string name, IntervalOfInteger existence) { C_SINGLE_ATTRIBUTE result = new C_SINGLE_ATTRIBUTE(); result.rm_attribute_name = name; result.existence = existence; //JAR: 30APR2007, AE-42 Support XML Schema 1.0.1 add_attribute(an_object, result); return(result); }
C_SINGLE_ATTRIBUTE VisitSingleAttributeConstraint(C_SINGLE_ATTRIBUTE attributeConstraint) { System.Diagnostics.Trace.Assert(attributeConstraint != null, "existingAttribute must not be null"); C_SINGLE_ATTRIBUTE result = new C_SINGLE_ATTRIBUTE(); CloneAttributeConstraint(attributeConstraint, result); return(result); }
//public C_SINGLE_ATTRIBUTE MakeSingleAttribute(C_COMPLEX_OBJECT an_object, string name) //JAR: 30APR2007, AE-42 Support XML Schema 1.0.1 public C_SINGLE_ATTRIBUTE MakeSingleAttribute(C_COMPLEX_OBJECT an_object, string name, IntervalOfInteger existence) { C_SINGLE_ATTRIBUTE result = new C_SINGLE_ATTRIBUTE(); result.rm_attribute_name = name; result.existence = existence; //JAR: 30APR2007, AE-42 Support XML Schema 1.0.1 add_attribute(an_object, result); return result; }
C_SINGLE_ATTRIBUTE VisitSingleAttributeConstraint(C_SINGLE_ATTRIBUTE attributeConstraint) { System.Diagnostics.Trace.Assert(attributeConstraint != null, "existingAttribute must not be null"); C_SINGLE_ATTRIBUTE result = new C_SINGLE_ATTRIBUTE(); CloneAttributeConstraint(attributeConstraint, result); return result; }
protected virtual C_ATTRIBUTE CloneAttribute(openehr.openehr.am.archetype.constraint_model.C_ATTRIBUTE o) { C_ATTRIBUTE result; if (o.cardinality() == null) result = new C_SINGLE_ATTRIBUTE(); else { C_MULTIPLE_ATTRIBUTE cloneMultiple = new C_MULTIPLE_ATTRIBUTE(); cloneMultiple.cardinality = CloneCardinality(o.cardinality()); result = cloneMultiple; } result.rm_attribute_name = o.rm_attribute_name().to_cil(); if (o.existence() != null) result.existence = CloneIntervalOfInteger(o.existence()); // 0..* children C_OBJECT (set in CloneTree) return result; }