fr.paris.lutece.plugins.workflow.modules.mappings.business
Interface ICodeMapping

All Known Implementing Classes:
AbstractCodeMapping, ActionCodeMapping, SimpleCodeMapping

public interface ICodeMapping

This interface represents the code mapping between a code and its refence code.


Method Summary
 java.lang.String getCode()
          Get the code
 int getIdCode()
          Get the id code
 java.lang.String getLabelCode()
          Get the label code
 java.lang.String getLabelReferenceCode(java.util.Locale locale)
          Get the labem reference code
 IMappingType getMappingType()
          Get the mapping type
 java.lang.String getReferenceCode()
          Get the reference code
 boolean isStrict()
          Check if the code mapping is in strict mode.
 void setCode(java.lang.String strCode)
          Set the code
 void setIdCode(int nIdCode)
          Set the id code
 void setLabelCode(java.lang.String strLabel)
          Set the label code
 void setMappingType(IMappingType mappingType)
          Set the mapping type
 void setReferenceCode(java.lang.String strReferenceCode)
          Set the reference code
 void setStrict(boolean bIsStrict)
          In strict mode, the reference code must be UNIQUE along with the code and the mapping type key.
 

Method Detail

getIdCode

int getIdCode()
Get the id code

Returns:
the id code

setIdCode

void setIdCode(int nIdCode)
Set the id code

Parameters:
nIdCode - the id code

getCode

java.lang.String getCode()
Get the code

Returns:
the code

setCode

void setCode(java.lang.String strCode)
Set the code

Parameters:
strCode - the code

getLabelCode

java.lang.String getLabelCode()
Get the label code

Returns:
the label code

setLabelCode

void setLabelCode(java.lang.String strLabel)
Set the label code

Parameters:
strLabel - the label code

getReferenceCode

java.lang.String getReferenceCode()
Get the reference code

Returns:
the reference code

setReferenceCode

void setReferenceCode(java.lang.String strReferenceCode)
Set the reference code

Parameters:
strReferenceCode - the reference code

getLabelReferenceCode

java.lang.String getLabelReferenceCode(java.util.Locale locale)
Get the labem reference code

Parameters:
locale - the Locale
Returns:
the label reference code

getMappingType

IMappingType getMappingType()
Get the mapping type

Returns:
the mapping type

setMappingType

void setMappingType(IMappingType mappingType)
Set the mapping type

Parameters:
mappingType - the mapping type

isStrict

boolean isStrict()
Check if the code mapping is in strict mode.

Returns:
true if the code mapping is in strict mode, false otherwise

setStrict

void setStrict(boolean bIsStrict)
In strict mode, the reference code must be UNIQUE along with the code and the mapping type key. In other words, when creating/modifying a code mapping, the strict mode will ensure that the code is UNIQUE.
The mode is strict by default (isStrict() == true)

Parameters:
bIsStrict - true if the code mapping is in strict mode, false otherwise


Copyright © 2012 Mairie de Paris. All Rights Reserved.