Exemplo n.º 1
0
 // assert CAttribute has expected values
 public void assertCAttribute(org.openehr.am.archetype.constraintmodel.CAttribute attr, String rmAttributeName,
                              org.openehr.am.archetype.constraintmodel.CAttribute.Existence existence,
                              org.openehr.am.archetype.constraintmodel.Cardinality cardinality, int children)
 {
     Assert.AreEqual(rmAttributeName, attr.getRmAttributeName(), "rmAttributeName");
     Assert.AreEqual(existence, attr.getExistence(), "existence");
     if (attr is org.openehr.am.archetype.constraintmodel.CMultipleAttribute)
     {
         org.openehr.am.archetype.constraintmodel.CMultipleAttribute mattr = (org.openehr.am.archetype.constraintmodel.CMultipleAttribute)attr;
         Assert.AreEqual(cardinality, mattr.getCardinality(), "cardinality");
     }
     Assert.AreEqual(children, attr.getChildren().size(), "children.size");
 }
Exemplo n.º 2
0
 private java.util.List getConstraints(int index)
 {
     org.openehr.am.archetype.constraintmodel.CAttribute ca = (org.openehr.am.archetype.constraintmodel.CAttribute)attributeList.get(index);
     return(((org.openehr.am.archetype.constraintmodel.CComplexObject)ca.getChildren().get(0)).getAttributes());
 }
Exemplo n.º 3
0
 // assert CAttribute has expected values
 public void assertCAttribute(org.openehr.am.archetype.constraintmodel.CAttribute attr, String rmAttributeName,
                              int children)
 {
     assertCAttribute(attr, rmAttributeName, org.openehr.am.archetype.constraintmodel.CAttribute.Existence.REQUIRED,
                      null, children);
 }