public class FormField
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
FormField() |
FormField(java.lang.String name,
long key,
java.lang.String label,
java.lang.String type,
java.lang.String defaultValue,
boolean isEncrypted)
This constructor represents an entry that in SDC table.
|
FormField(java.lang.String name,
java.lang.String label,
java.lang.String type,
java.lang.String defaultValue,
boolean isEncrypted)
This constructor represents an entry that needs to be added in SDC table.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String paramName,
java.lang.Object paramVal)
This method adds a property for a form field
|
java.lang.String |
getDefaultValue()
This method gets the type of the form field (SDC_DEFAULT_VALUE).
|
long |
getFldKey()
This method gets the primary key of the form field (SDC_KEY).
|
java.lang.String |
getLabel()
This method gets the label of the form field (SDC_LABEL).
|
long |
getLength()
This method gets the length of the form field.
|
java.lang.String |
getName()
This method gets the name of the form field (SDC_NAME)
|
java.util.HashMap |
getProperties()
This method gets the form field properties for a form field (SDP entries for SDC)
|
java.lang.Object |
getProperty(java.lang.String paramName)
This method gets property for a form field
|
java.lang.String |
getType()
This method gets the type of the form field (SDC_FIELD_TYPE).
|
java.lang.String |
getVariantType()
This method gets the variant type for the form field.
|
boolean |
isEncrypted()
This method returns if the form field is encrypted.
|
void |
setDefaultValue(java.lang.String defaultValue)
This method sets the type of the form field (SDC_DEFAULT_VALUE).
|
void |
setEncrypted(boolean encryptedFlag)
This method sets if the form field is encrypted.
|
void |
setFldKey(long key)
This method sets the primary key of the form field (SDC_KEY).
|
void |
setLabel(java.lang.String label)
This method sets the label of the form field (SDC_LABEL).
|
void |
setLength(long length)
This method sets the length of the form field.
|
void |
setName(java.lang.String name)
This method sets the name of the form field (SDC_NAME)
|
void |
setProperties(java.util.HashMap properties)
This method sets the form field properties for a form field (SDP entries for SDC)
|
void |
setType(java.lang.String type)
This method sets the type of the form field (SDC_FIELD_TYPE).
|
void |
setVariantType(java.lang.String variantType)
This method sets the variant type for the form field.
|
public static final long serialVersionUID
public FormField()
public FormField(java.lang.String name, java.lang.String label, java.lang.String type, java.lang.String defaultValue, boolean isEncrypted)
name
- form field name (SDC_NAME)label
- form field label (SDC_LABEL)type
- form field type (SDC_FIELD_TYPE)defaultValue
- the default value of the form field. (SDC_DEFAULT_VALUE)isEncrypted
- if the value for the form field is encrypted (SDC_ENCRYPTED).public FormField(java.lang.String name, long key, java.lang.String label, java.lang.String type, java.lang.String defaultValue, boolean isEncrypted)
name
- form field name (SDC_NAME)key
- the primary key of the form field (SDC_KEY)label
- form field label (SDC_LABEL)type
- form field type (SDC_FIELD_TYPE)defaultValue
- the default value of the form field. (SDC_DEFAULT_VALUE)isEncrypted
- if the value for the form field is encrypted (SDC_ENCRYPTED).public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the form field (SDC_NAME)public long getFldKey()
public void setFldKey(long key)
key
- the primary key of the form field (SDC_KEY).public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- the label of the form field (SDC_LABEL).public java.lang.String getType()
public void setType(java.lang.String type)
type
- the type of the form field (SDC_FIELD_TYPE).public java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
defaultValue
- the type of the form field (SDC_DEFAULT_VALUE).public java.util.HashMap getProperties()
public void setProperties(java.util.HashMap properties)
properties
- the form field properties for a form field (SDP entries for SDC)public void addProperty(java.lang.String paramName, java.lang.Object paramVal)
paramName:Entitlement
- Valid To
Visible Field
Required
Lookup Column Name
ITResource
AccountName
Lookup Code
Entitlement
Lookup Query
Entitlement Valid From
Visible FieldparamVal
- true/falsepublic java.lang.Object getProperty(java.lang.String paramName)
paramName
- the name of the propertpublic boolean isEncrypted()
public void setEncrypted(boolean encryptedFlag)
encryptedFlag
- true if the form field is set to be encrypted.public java.lang.String getVariantType()
public void setVariantType(java.lang.String variantType)
variantType
- the variant type can be "Date", "short", "long", "Timestamp", "String", "int", "boolean"public long getLength()
public void setLength(long length)
length
- the length of the form field.