fr.paris.lutece.plugins.workflow.modules.mappings.business
Class AbstractCodeMapping

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.modules.mappings.business.AbstractCodeMapping
All Implemented Interfaces:
ICodeMapping
Direct Known Subclasses:
ActionCodeMapping, SimpleCodeMapping

public abstract class AbstractCodeMapping
extends java.lang.Object
implements ICodeMapping

AbstractCodeMapping


Constructor Summary
AbstractCodeMapping()
           
 
Method Summary
 java.lang.String getCode()
          Get the code
 int getIdCode()
          Get the id code
 java.lang.String getLabelCode()
          Get the label 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 strCodeToMap)
          Set the code
 void setIdCode(int nIdCode)
          Set the id code
 void setLabelCode(java.lang.String strLabelCode)
          Set the label code
 void setMappingType(IMappingType mappingType)
          Set the mapping type
 void setReferenceCode(java.lang.String strRefenreceCode)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.plugins.workflow.modules.mappings.business.ICodeMapping
getLabelReferenceCode
 

Constructor Detail

AbstractCodeMapping

public AbstractCodeMapping()
Method Detail

setIdCode

public void setIdCode(int nIdCode)
Set the id code

Specified by:
setIdCode in interface ICodeMapping
Parameters:
nIdCode - the id code

getIdCode

public int getIdCode()
Get the id code

Specified by:
getIdCode in interface ICodeMapping
Returns:
the id code

getCode

public java.lang.String getCode()
Get the code

Specified by:
getCode in interface ICodeMapping
Returns:
the code

setCode

public void setCode(java.lang.String strCodeToMap)
Set the code

Specified by:
setCode in interface ICodeMapping
Parameters:
strCodeToMap - the code

getReferenceCode

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

Specified by:
getReferenceCode in interface ICodeMapping
Returns:
the reference code

setReferenceCode

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

Specified by:
setReferenceCode in interface ICodeMapping
Parameters:
strRefenreceCode - the reference code

getLabelCode

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

Specified by:
getLabelCode in interface ICodeMapping
Returns:
the label code

setLabelCode

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

Specified by:
setLabelCode in interface ICodeMapping
Parameters:
strLabelCode - the label code

setMappingType

public void setMappingType(IMappingType mappingType)
Set the mapping type

Specified by:
setMappingType in interface ICodeMapping
Parameters:
mappingType - the mapping type

getMappingType

public IMappingType getMappingType()
Get the mapping type

Specified by:
getMappingType in interface ICodeMapping
Returns:
the mapping type

setStrict

public 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 (ICodeMapping.isStrict() == true)

Specified by:
setStrict in interface ICodeMapping
Parameters:
bIsStrict - true if the code mapping is in strict mode, false otherwise

isStrict

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

Specified by:
isStrict in interface ICodeMapping
Returns:
true if the code mapping is in strict mode, false otherwise


Copyright © 2012 Mairie de Paris. All Rights Reserved.