gov.nih.nci.caarray.services.util.dataconverter.mapper.fieldmappers
Class VocabDataFieldMapper
java.lang.Object
gov.nih.nci.caarray.services.util.dataconverter.mapper.FieldMapper
gov.nih.nci.caarray.services.util.dataconverter.mapper.fieldmappers.VocabDataFieldMapper
public final class VocabDataFieldMapper
- extends FieldMapper
- Author:
- TranP
Method Summary |
static OntologyEntry |
getOntologyEntry(java.lang.Object bean,
java.lang.String fieldName,
java.util.List annotations)
|
static OntologyEntry |
getOntologyEntryByCategory(java.lang.String category,
java.util.List annotations)
Get from the specified list of OntologyEntry s the element
whose category matches the specified category. |
void |
map(java.lang.Object sourceObject,
java.lang.Object targetObject,
boolean overwrite)
Converts the value contained in the source field of the source object
specified by this converter to be the value for the target field of
the target object specified by this converter. |
static void |
removeOntologyEntry(java.lang.Object bean,
java.lang.String fieldName,
java.util.List annotations)
|
Methods inherited from class gov.nih.nci.caarray.services.util.dataconverter.mapper.FieldMapper |
createFieldMapper, getClassMapper, getFieldMapperInfo, getIndexOfIndexedProperty, getNestedProperty, getNestedPropertyParentType, getParameterTypeOfPropertySetter, getProperty, getSourceField, getTargetField, reverse, setNestedProperty, setProperty, setSourceField, setTargetField, toAccessibleFieldName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VocabDataFieldMapper
public VocabDataFieldMapper(ClassMapper classMapper,
SimpleField sourceField,
SimpleField targetField)
- Parameters:
classMapper
- sourceField
- targetField
- mappingType
-
map
public void map(java.lang.Object sourceObject,
java.lang.Object targetObject,
boolean overwrite)
- Description copied from class:
FieldMapper
- Converts the value contained in the source field of the source object
specified by this converter to be the value for the target field of
the target object specified by this converter.
- Overrides:
map
in class FieldMapper
removeOntologyEntry
public static void removeOntologyEntry(java.lang.Object bean,
java.lang.String fieldName,
java.util.List annotations)
getOntologyEntry
public static OntologyEntry getOntologyEntry(java.lang.Object bean,
java.lang.String fieldName,
java.util.List annotations)
getOntologyEntryByCategory
public static OntologyEntry getOntologyEntryByCategory(java.lang.String category,
java.util.List annotations)
- Get from the specified list of
OntologyEntry
s the element
whose category matches the specified category.
- Parameters:
category
- annotations
-
- Returns: