fr.cnes.sitools.dataset.dto
Class DictionaryMappingDTO

java.lang.Object
  extended by fr.cnes.sitools.dataset.dto.DictionaryMappingDTO

public class DictionaryMappingDTO
extends java.lang.Object

DTO to represent a dictionary Mapping

Author:
m.gond

Constructor Summary
DictionaryMappingDTO()
          Default constructor
 
Method Summary
 boolean addMapping(ColumnConceptMappingDTO colConcept)
          Add a mapping
 java.lang.String getDictionaryId()
          Gets the dictionaryId value
 java.lang.String getDictionaryName()
          Gets the dictionaryName value
 java.util.List<java.lang.String> getListColumnAliasMapped(java.lang.String conceptName)
          Get the list of columnAlias mapped with the following concept name
 java.util.List<Concept> getListConceptMapped(java.lang.String columnAlias)
          Get the list of Concept mapped with the following columnAlias
 java.util.List<ColumnConceptMappingDTO> getMapping()
          Gets the mapping value
 java.util.List<ColumnConceptMappingDTO> getMappingFromConcept(java.lang.String conceptName)
          Returns all the ColumnConceptMappingDTO mapped to the specified ConceptName
 boolean isDefaultDico()
          Gets the defaultDico value
 void setDefaultDico(boolean defaultDico)
          Sets the value of defaultDico
 void setDictionaryId(java.lang.String dictionaryId)
          Sets the value of dictionaryId
 void setDictionaryName(java.lang.String dictionaryName)
          Sets the value of dictionaryName
 void setMapping(java.util.List<ColumnConceptMappingDTO> mapping)
          Sets the value of mapping
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryMappingDTO

public DictionaryMappingDTO()
Default constructor

Method Detail

getDictionaryId

public java.lang.String getDictionaryId()
Gets the dictionaryId value

Returns:
the dictionaryId

setDictionaryId

public void setDictionaryId(java.lang.String dictionaryId)
Sets the value of dictionaryId

Parameters:
dictionaryId - the dictionaryId to set

getDictionaryName

public java.lang.String getDictionaryName()
Gets the dictionaryName value

Returns:
the dictionaryName

setDictionaryName

public void setDictionaryName(java.lang.String dictionaryName)
Sets the value of dictionaryName

Parameters:
dictionaryName - the dictionaryName to set

getMapping

public java.util.List<ColumnConceptMappingDTO> getMapping()
Gets the mapping value

Returns:
the mapping

addMapping

public boolean addMapping(ColumnConceptMappingDTO colConcept)
Add a mapping

Parameters:
colConcept - the ColumnConceptMappingDTO to add
Returns:
true if this collection changed as a result of the call

setMapping

public void setMapping(java.util.List<ColumnConceptMappingDTO> mapping)
Sets the value of mapping

Parameters:
mapping - the mapping to set

setDefaultDico

public void setDefaultDico(boolean defaultDico)
Sets the value of defaultDico

Parameters:
defaultDico - the defaultDico to set

isDefaultDico

public boolean isDefaultDico()
Gets the defaultDico value

Returns:
the defaultDico

getListColumnAliasMapped

public java.util.List<java.lang.String> getListColumnAliasMapped(java.lang.String conceptName)
Get the list of columnAlias mapped with the following concept name

Parameters:
conceptName - the name of the concept
Returns:
the list of columnAlias mapped with the following concept name, return an empty list if there is no column mapped

getListConceptMapped

public java.util.List<Concept> getListConceptMapped(java.lang.String columnAlias)
Get the list of Concept mapped with the following columnAlias

Parameters:
columnAlias - the columnAlias of the column
Returns:
the list of columns mapped with the following columnAlias, return an empty list if there is no columnAlias mapped

getMappingFromConcept

public java.util.List<ColumnConceptMappingDTO> getMappingFromConcept(java.lang.String conceptName)
Returns all the ColumnConceptMappingDTO mapped to the specified ConceptName

Parameters:
conceptName - the ConceptName
Returns:
the list of ColumnConceptMappingDTO mapped to the specified ConceptName


Copyright © 2010-2013 CNES. All Rights Reserved.