org.LexGrid.custom.concepts
Class EntitiesUtil

java.lang.Object
  extended by org.LexGrid.custom.concepts.EntitiesUtil

public class EntitiesUtil
extends java.lang.Object

Common utility class to support concepts and related model objects.

Author:
Thomas M Johnson

Constructor Summary
EntitiesUtil()
           
 
Method Summary
static java.util.List<Presentation> getNonPreferredPresentation(Entity entity)
          Returns the synonym presentation object for a entity
static java.util.List<Property> resolveProperties(Entity entity, java.lang.String propertyName)
          Returns the list of property object for a Entity that matches the given propertyName.
static Property resolveProperty(Entity entity, java.lang.String propertyName)
          Returns the first matching property object for a concept that matches the given propertyName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntitiesUtil

public EntitiesUtil()
Method Detail

resolveProperty

public static Property resolveProperty(Entity entity,
                                       java.lang.String propertyName)
Returns the first matching property object for a concept that matches the given propertyName. Returns null if there is no match.

Parameters:
CodedEntry, - propertyName
Returns:
property

resolveProperties

public static java.util.List<Property> resolveProperties(Entity entity,
                                                         java.lang.String propertyName)
Returns the list of property object for a Entity that matches the given propertyName.

Parameters:
CodedEntry, - propertyName
Returns:
List of properties

getNonPreferredPresentation

public static java.util.List<Presentation> getNonPreferredPresentation(Entity entity)
Returns the synonym presentation object for a entity

Parameters:
CodedEntry -
Returns:
List of presentation

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.