se.cambio.cds.controller.guide
Class ElementInstanceCollectionUtil

Package class diagram package ElementInstanceCollectionUtil
java.lang.Object
  extended by se.cambio.cds.controller.guide.ElementInstanceCollectionUtil

public class ElementInstanceCollectionUtil
extends Object


Constructor Summary
ElementInstanceCollectionUtil()
           
 
Method Summary
static boolean containsAll(ArchetypeReference ar1, ArchetypeReference ar2)
           
static ArchetypeReference getEmptyArchetypeReference(Set<ArchetypeReference> archetypeReferences)
           
static boolean isEmpty(ArchetypeReference ar)
           
static boolean matchAndFill(GeneratedArchetypeReference ar1, ArchetypeReference ar2, Guide guide)
          Looks if the second reference matches the first one, if empty references are found, they will be copied into the second one (only if the rest is matched).
static boolean matches(org.openehr.rm.datatypes.basic.DataValue dv1, org.openehr.rm.datatypes.basic.DataValue dv2, OperatorKind operatorKind, Guide guide)
           
static boolean matches(GeneratedArchetypeReference ar1, ArchetypeReference ar2, Guide guide)
           
static org.openehr.rm.datatypes.basic.DataValue resolvePredicate(org.openehr.rm.datatypes.basic.DataValue dv, OperatorKind op, Guide guide)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementInstanceCollectionUtil

public ElementInstanceCollectionUtil()
Method Detail

isEmpty

public static boolean isEmpty(ArchetypeReference ar)

getEmptyArchetypeReference

public static ArchetypeReference getEmptyArchetypeReference(Set<ArchetypeReference> archetypeReferences)

containsAll

public static boolean containsAll(ArchetypeReference ar1,
                                  ArchetypeReference ar2)

matchAndFill

public static boolean matchAndFill(GeneratedArchetypeReference ar1,
                                   ArchetypeReference ar2,
                                   Guide guide)
Looks if the second reference matches the first one, if empty references are found, they will be copied into the second one (only if the rest is matched).

Parameters:
ar1 -
ar2 -
guide -
Returns:
true if ar1 matches ar2

matches

public static boolean matches(GeneratedArchetypeReference ar1,
                              ArchetypeReference ar2,
                              Guide guide)

matches

public static boolean matches(org.openehr.rm.datatypes.basic.DataValue dv1,
                              org.openehr.rm.datatypes.basic.DataValue dv2,
                              OperatorKind operatorKind,
                              Guide guide)

resolvePredicate

public static org.openehr.rm.datatypes.basic.DataValue resolvePredicate(org.openehr.rm.datatypes.basic.DataValue dv,
                                                                        OperatorKind op,
                                                                        Guide guide)


Copyright © 2013 Cambio. All Rights Reserved.