public class WorkflowInputTypeRegistry extends java.lang.Object implements LOVProviderIf
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOV_PROVIDER_NAME |
Modifier and Type | Method and Description |
---|---|
void |
addDeclaration(WorkflowInputFieldTypeDeclaration d)
Programmers can make use of this method to declare new input types through this method
|
boolean |
containsMappable(java.lang.String fromType)
Check to see if the fromType is already registered as a mappable field or not
|
WorkflowInputFieldTypeDeclaration |
getDeclaration(java.lang.String type)
Returns the declaration object for the given workflow input field type
|
java.util.Map<java.lang.String,java.lang.String> |
getDeclarationTypeLabelMap()
Return a map of declaration type & label
|
java.util.Map<java.lang.String,WorkflowInputFieldTypeDeclaration> |
getDeclarationTypesMap()
Return a map of declaration type & WorkflowInputFieldTypeDeclaration
|
static WorkflowInputTypeRegistry |
getInstance()
Returns the singleton class object of this registry
|
FormLOVPair[] |
getLOVs(WizardSession session)
Method to get the FormLOVPair objects to be returned for this session
|
java.util.Set<java.lang.String> |
getMappable(java.lang.String fromType)
Returns a set of mappable fields for the given fromType
|
boolean |
isFieldTypeCompatiable(java.lang.String fromType,
java.lang.String toType)
Checks if the given fields are type compatible or not
If fromType equals to toType then it returns true
if toType is Generic Text then it returns true
It also checks if the fromType is mappable with the toType and returns true
|
boolean |
isMappable(java.lang.String fromType,
java.lang.String toType)
Convenient method to check if the fromType can be mapped with toType fields
|
boolean |
isWorkflowInputFieldExists(java.lang.String type)
Check to see if the given type is already registered or not
|
void |
removeDeclaration(java.lang.String wfInputType)
The wfInputType can be removed using this method
|
void |
removeMappable(java.lang.String fromType)
Utility method to remove the mapping of fromType
|
void |
setMappable(java.lang.String fromType,
java.lang.String toType)
The Utility method used to conveniently map different types of inputs
|
public static final java.lang.String LOV_PROVIDER_NAME
public static final WorkflowInputTypeRegistry getInstance()
public void addDeclaration(WorkflowInputFieldTypeDeclaration d)
d
- - the declaration of object of Workflow input field typepublic void setMappable(java.lang.String fromType, java.lang.String toType)
fromType
- - the fromTypetoType
- - the toTypepublic void removeMappable(java.lang.String fromType)
fromType
- - the fromTypepublic boolean isMappable(java.lang.String fromType, java.lang.String toType)
fromType
- - the fromType fieldtoType
- - the toType fieldpublic boolean containsMappable(java.lang.String fromType)
fromType
- - the fromTypepublic java.util.Set<java.lang.String> getMappable(java.lang.String fromType)
fromType
- - the fromTypepublic boolean isFieldTypeCompatiable(java.lang.String fromType, java.lang.String toType)
fromType
- - the fromTypetoType
- - the toTypepublic WorkflowInputFieldTypeDeclaration getDeclaration(java.lang.String type)
type
- - the workflowInputFieldTypepublic boolean isWorkflowInputFieldExists(java.lang.String type)
type
- - the WorkflowInputFieldpublic void removeDeclaration(java.lang.String wfInputType)
wfInputType
- - the type of workflowinputfield to be removedpublic FormLOVPair[] getLOVs(WizardSession session)
LOVProviderIf
getLOVs
in interface LOVProviderIf
session
- - the wizardSessionpublic java.util.Map<java.lang.String,java.lang.String> getDeclarationTypeLabelMap()
public java.util.Map<java.lang.String,WorkflowInputFieldTypeDeclaration> getDeclarationTypesMap()