org.lexgrid.loader.data
Class DataUtils

java.lang.Object
  extended by org.lexgrid.loader.data.DataUtils

public class DataUtils
extends java.lang.Object

The Class DataUtils.

Author:
Kevin Peterson

Constructor Summary
DataUtils()
           
 
Method Summary
static java.lang.String adjustNonNullValue(java.lang.String value)
           
static
<T> AssociationQualification
createAssociationQualifier(QualifierResolver<T> resolver, T item)
           
static
<T> PropertyQualifier
createPropertyQualifier(PropertyQualifierResolver<T> resolver, T item)
           
static
<T> Source
createSource(SourceResolver<T> resolver, T item)
           
static
<T extends Property>
T
deepCloneProperty(T property)
           
static
<T> T
deepCopy(T value)
          Makes a deep copy of an Object -- assumes the Object to be copied has a Constructor that accepts a String Example: String stringCopy = new String(String originalString);.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataUtils

public DataUtils()
Method Detail

deepCloneProperty

public static <T extends Property> T deepCloneProperty(T property)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

deepCopy

public static <T> T deepCopy(T value)
                  throws java.lang.Exception
Makes a deep copy of an Object -- assumes the Object to be copied has a Constructor that accepts a String Example: String stringCopy = new String(String originalString);.

Parameters:
value - the value
Returns:
the T
Throws:
java.lang.Exception - the exception

adjustNonNullValue

public static java.lang.String adjustNonNullValue(java.lang.String value)

createPropertyQualifier

public static <T> PropertyQualifier createPropertyQualifier(PropertyQualifierResolver<T> resolver,
                                                            T item)

createSource

public static <T> Source createSource(SourceResolver<T> resolver,
                                      T item)

createAssociationQualifier

public static <T> AssociationQualification createAssociationQualifier(QualifierResolver<T> resolver,
                                                                      T item)

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.