|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nci.cagrid.data.utilities.DomainModelUtils
public class DomainModelUtils
DomainModelUtils Utilities for walking and manipulating a DomainModel
| Constructor Summary | |
|---|---|
DomainModelUtils()
|
|
| Method Summary | |
|---|---|
static UMLClass[] |
getAllSuperclasses(DomainModel model,
java.lang.String className)
Gets all superclasses of the specified UMLCLass |
static UMLClass[] |
getAllSuperclasses(DomainModel model,
UMLClass umlClass)
Gets all superclasses of the specified UMLCLass |
static UMLClassReference |
getClassReference(DomainModel model,
java.lang.String className)
Gets the UMLClassReference for a class in a domain model |
static java.lang.String |
getQualifiedClassname(UMLClass clazz)
|
static UMLClass |
getReferencedUMLClass(DomainModel model,
UMLClassReference reference)
Return the UMLClass from the DomainModel's exposed UML Classes if the UMLClass with an id exists which is equal to the refid of the UMLClassReference. |
static UMLClass[] |
getUMLClassForConcept(DomainModel model,
java.lang.String conceptCode,
boolean primaryConceptOnly)
|
static java.util.Map<gov.nih.nci.cagrid.data.utilities.DomainModelUtils.CDE,gov.nih.nci.cagrid.data.utilities.DomainModelUtils.CDE> |
mapCommonDataElements(DomainModel domainModel1,
DomainModel domainModel2)
Finds common data elements between two domain models, useful for finding join points for DCQL queries. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DomainModelUtils()
| Method Detail |
|---|
public static UMLClass getReferencedUMLClass(DomainModel model,
UMLClassReference reference)
model - the DomainModel to look inreference - the UMLClassReference to the UMLClass to look for in the model
public static UMLClass[] getAllSuperclasses(DomainModel model,
UMLClass umlClass)
model - The domain model to search for superclassesumlClass - The class to retrieve superclasses of
public static UMLClass[] getAllSuperclasses(DomainModel model,
java.lang.String className)
model - The domain model to search for superclassesclassName - The name of the class to retrieve superclasses of
public static UMLClassReference getClassReference(DomainModel model,
java.lang.String className)
model - The domain modelclassName - The fully qualified name of the class
public static java.lang.String getQualifiedClassname(UMLClass clazz)
clazz -
public static UMLClass[] getUMLClassForConcept(DomainModel model,
java.lang.String conceptCode,
boolean primaryConceptOnly)
model - the DomainModel to examineconceptCode - the concept code to look for
public static java.util.Map<gov.nih.nci.cagrid.data.utilities.DomainModelUtils.CDE,gov.nih.nci.cagrid.data.utilities.DomainModelUtils.CDE> mapCommonDataElements(DomainModel domainModel1,
DomainModel domainModel2)
domainModel1 - the first domain modeldomainModel2 - the second domain model
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||