|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.edm.services.configuration.FieldConfig
for one search field displayed on UI.
Field Summary | |
static java.lang.String |
GUI_TYPE_MENULIST
constant |
static java.lang.String |
GUI_TYPE_TEXTBOX
constant |
Constructor Summary | |
FieldConfig(java.lang.String objRef,
java.lang.String name,
java.lang.String displayName,
java.lang.String guiType,
int maxLength)
Construct a FieldConfig object with all required properties. |
|
FieldConfig(java.lang.String objRef,
java.lang.String name,
java.lang.String displayName,
java.lang.String guiType,
int maxLength,
int valueType)
Construct a FieldConfig object with all required properties. |
|
FieldConfig(java.lang.String objRef,
java.lang.String name,
java.lang.String displayName,
java.lang.String guiType,
int maxLength,
java.lang.String gvalueList)
Construct a FieldConfig object with all required properties. |
|
FieldConfig(java.lang.String rootObj,
java.lang.String objRef,
java.lang.String name,
java.lang.String displayName,
int maxSize,
java.lang.String guiType,
int maxLength)
Construct a FieldConfig object with all required properties |
|
FieldConfig(java.lang.String rootObj,
java.lang.String objRef,
java.lang.String name,
java.lang.String displayName,
int maxSize,
java.lang.String guiType,
int maxLength,
int valueType)
Construct a FieldConfig object with all required properties |
|
FieldConfig(java.lang.String rootObj,
java.lang.String objRef,
java.lang.String name,
java.lang.String displayName,
int maxSize,
java.lang.String guiType,
int maxLength,
java.lang.String gvalueList)
Construct a FieldConfig object with all required properties |
|
FieldConfig(java.lang.String rootObj,
java.lang.String objRef,
java.lang.String name,
java.lang.String displayName,
java.lang.String guiType,
int maxLength)
Construct a FieldConfig object with all required properties. |
|
FieldConfig(java.lang.String rootObj,
java.lang.String objRef,
java.lang.String name,
java.lang.String displayName,
java.lang.String guiType,
int maxLength,
int valueType)
Construct a FieldConfig object with all required properties |
|
FieldConfig(java.lang.String rootObj,
java.lang.String objRef,
java.lang.String name,
java.lang.String displayName,
java.lang.String guiType,
int maxLength,
java.lang.String gvalueList)
Construct a FieldConfig object with all required properties. |
Method Summary | |
int |
compareTo(java.lang.Object obj)
|
java.lang.Object |
copy()
|
java.lang.String |
demask(java.lang.String value)
apply the value mask |
java.lang.String |
getConstraintBy()
Gets the constraintBy attribute of the FieldConfig object |
java.lang.String |
getDisplayName()
|
int |
getDisplayOrder()
Gets the displayOrder attribute of the FieldConfig object |
java.lang.String |
getFullFieldName()
Retrieves the full name of an field |
java.lang.String |
getFullName()
RANGE_SEARCH: Full name that is used in the generated html to identify this field. |
java.lang.String |
getGuiType()
Gets the guiType attribute of the FieldConfig object |
static int |
getIndex(java.lang.String fullName)
RANGE_SEARCH: Determine the index of a field full name. |
java.lang.String |
getInputMask()
|
int |
getMaxLength()
Gets the maxLength attribute of the FieldConfig object |
int |
getMaxSize()
Gets the maxSize attribute of the FieldConfig object |
java.lang.String |
getName()
|
java.lang.String |
getObjRef()
|
int |
getPossibleValueCount()
|
PullDownListItem[] |
getPossibleValues()
|
java.util.List |
getPossibleValuesList()
|
java.lang.String |
getRootObj()
|
java.util.ArrayList |
getSelectOptions()
This getter method returns the array list of select items which will be used to populate the select options in JSF framework. |
java.lang.String |
getUserCode()
Gets the userCode attribute of the FieldConfig object |
java.lang.String |
getValueList()
get the value list |
java.lang.String |
getValueMask()
|
int |
getValueType()
|
boolean |
isExtraField()
Gets the extraField attribute of the FieldConfig object |
boolean |
isKeyType()
Gets the keyType attribute of the FieldConfig object |
boolean |
isOneOfTheseRequired()
Gets the oneOftheseRequired attribute of the FieldConfig object |
boolean |
isRange()
getter method for the range field |
boolean |
isRequired()
Gets the required attribute of the FieldConfig object |
boolean |
isSensitive()
Gets the sensitive attribute of the FieldConfig object |
boolean |
isUpdateable()
Gets the updateable attribute of the FieldConfig object |
static void |
main(java.lang.String[] args)
|
java.lang.String |
mask(java.lang.String value)
apply the input mask |
void |
setConstraintBy(java.lang.String val)
Sets the constraintBy attribute of the FieldConfig object |
void |
setDisplayOrder(int val)
Sets the displayOrder attribute of the FieldConfig object |
void |
setExtraField(boolean val)
Sets the extraField attribute of the FieldConfig object |
void |
setInputMask(java.lang.String inputMask)
set the input mask |
void |
setKeyType(boolean val)
Sets the keyType attribute of the FieldConfig object |
void |
setMaxLength(int length)
Sets the maxLength attribute of the FieldConfig object |
void |
setMaxSize(int size)
Sets the maxSize attribute of the FieldConfig object |
void |
setOneOfTheseRequired(boolean val)
Sets the oneOfTheseRequired attribute of the FieldConfig object |
void |
setRange(boolean range)
|
void |
setRequired(boolean val)
Sets the required attribute of the FieldConfig object |
void |
setRootObject(java.lang.String val)
|
void |
setSelectOptions(java.util.ArrayList selectOptions)
Setter method for the array of list items. |
void |
setSensitive(boolean val)
Sets the sensitive attribute of the FieldConfig object |
void |
setUpdateable(boolean val)
Sets the updateable attribute of the FieldConfig object |
void |
setUsage(java.lang.String usage)
RANGE_SEARCH: set the usage code for this field (how will the field be used) If not set, then usage will be null. |
void |
setUserCode(java.lang.String val)
Sets the userCode attribute of the FieldConfig object |
void |
setValueList(java.lang.String valueList)
set the value list |
void |
setValueMask(java.lang.String valueMask)
set the value mask |
static java.lang.String |
toEpathStyleString(java.lang.String fullName)
convert a field full name back to a ePath style string |
java.lang.String |
toString()
Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
compareTo |
Field Detail |
public static final java.lang.String GUI_TYPE_MENULIST
public static final java.lang.String GUI_TYPE_TEXTBOX
Constructor Detail |
public FieldConfig(java.lang.String objRef, java.lang.String name, java.lang.String displayName, java.lang.String guiType, int maxLength)
objRef
- object to which this field belongsname
- name of the fielddisplayName
- display name of the fieldguiType
- gui type of the fieldmaxLength
- max length of the fieldpublic FieldConfig(java.lang.String objRef, java.lang.String name, java.lang.String displayName, java.lang.String guiType, int maxLength, int valueType)
objRef
- obj ref of the fieldname
- name of the fielddisplayName
- display name of the fieldguiType
- gui type of the fieldmaxLength
- max length of the fieldvalueType
- value type of the fieldpublic FieldConfig(java.lang.String objRef, java.lang.String name, java.lang.String displayName, java.lang.String guiType, int maxLength, java.lang.String gvalueList)
objRef
- obj ref of the fieldname
- name of the fielddisplayName
- dislay name of the fieldguiType
- gui type of the fieldmaxLength
- max length of the fieldgvalueList
- value list of the fieldpublic FieldConfig(java.lang.String rootObj, java.lang.String objRef, java.lang.String name, java.lang.String displayName, int maxSize, java.lang.String guiType, int maxLength)
rootObj
- root object to which this field belongsobjRef
- object to which this field belongsname
- name of the fielddisplayName
- display name of the fieldmaxSize
- max size of the database columnguiType
- gui type of the fieldmaxLength
- max length of the fieldpublic FieldConfig(java.lang.String rootObj, java.lang.String objRef, java.lang.String name, java.lang.String displayName, int maxSize, java.lang.String guiType, int maxLength, int valueType)
rootObj
- root object to which this field belongsobjRef
- obj ref of the fieldname
- name of the fielddisplayName
- display name of the fieldmaxSize
- max size of the database columnguiType
- gui type of the fieldmaxLength
- max length of the fieldvalueType
- value type of the fieldpublic FieldConfig(java.lang.String rootObj, java.lang.String objRef, java.lang.String name, java.lang.String displayName, int maxSize, java.lang.String guiType, int maxLength, java.lang.String gvalueList)
rootObj
- root object to which this field belongsobjRef
- obj ref of the fieldname
- name of the fielddisplayName
- dislay name of the fieldmaxSize
- max size of the database columnguiType
- gui type of the fieldmaxLength
- max length of the fieldgvalueList
- value list of the fieldpublic FieldConfig(java.lang.String rootObj, java.lang.String objRef, java.lang.String name, java.lang.String displayName, java.lang.String guiType, int maxLength)
rootObj
- root object to which this field belongsobjRef
- object to which this field belongsname
- name of the fielddisplayName
- display name of the fieldguiType
- gui type of the fieldmaxLength
- max length of the fieldpublic FieldConfig(java.lang.String rootObj, java.lang.String objRef, java.lang.String name, java.lang.String displayName, java.lang.String guiType, int maxLength, int valueType)
rootObj
- root object to which this field belongsobjRef
- obj ref of the fieldname
- name of the fielddisplayName
- display name of the fieldguiType
- gui type of the fieldmaxLength
- max length of the fieldvalueType
- value type of the fieldpublic FieldConfig(java.lang.String rootObj, java.lang.String objRef, java.lang.String name, java.lang.String displayName, java.lang.String guiType, int maxLength, java.lang.String gvalueList)
rootObj
- root object to which this field belongsobjRef
- obj ref of the fieldname
- name of the fielddisplayName
- dislay name of the fieldguiType
- gui type of the fieldmaxLength
- max length of the fieldgvalueList
- value list of the fieldMethod Detail |
public int compareTo(java.lang.Object obj)
obj
- the other obj
public java.lang.Object copy()
public java.lang.String demask(java.lang.String value)
value
- the value from GUI
public java.lang.String getConstraintBy()
public java.lang.String getDisplayName()
public int getDisplayOrder()
public java.lang.String getFullFieldName()
public java.lang.String getFullName()
public java.lang.String getGuiType()
public static int getIndex(java.lang.String fullName)
fullName
- full name
public java.lang.String getInputMask()
public int getMaxLength()
public int getMaxSize()
public java.lang.String getName()
public java.lang.String getObjRef()
public int getPossibleValueCount()
public PullDownListItem[] getPossibleValues() throws java.lang.Exception
java.lang.Exception
public java.util.List getPossibleValuesList() throws java.lang.Exception
java.lang.Exception
public java.lang.String getRootObj()
public java.util.ArrayList getSelectOptions() throws java.lang.Exception
java.lang.Exception
public java.lang.String getUserCode()
public java.lang.String getValueList()
public java.lang.String getValueMask()
public int getValueType()
public boolean isExtraField()
public boolean isKeyType()
public boolean isOneOfTheseRequired()
public boolean isRange()
public boolean isRequired()
public boolean isSensitive()
public boolean isUpdateable()
public static void main(java.lang.String[] args)
public java.lang.String mask(java.lang.String value)
value
- the value saved in database
public void setConstraintBy(java.lang.String val)
val
- the constraint by valuepublic void setDisplayOrder(int val)
val
- the display order to be set topublic void setExtraField(boolean val)
val
- the init valuepublic void setInputMask(java.lang.String inputMask)
inputMask
- the maskpublic void setKeyType(boolean val)
val
- the init valuepublic void setMaxLength(int length)
public void setMaxSize(int size)
size
- new max sizepublic void setOneOfTheseRequired(boolean val)
val
- the oneOfTheseRequired valuepublic void setRange(boolean range)
public void setRequired(boolean val)
val
- the required valuepublic void setRootObject(java.lang.String val)
public void setSelectOptions(java.util.ArrayList selectOptions)
selectOptions
- public void setSensitive(boolean val)
val
- the init valuepublic void setUpdateable(boolean val)
val
- the updateable valuepublic void setUsage(java.lang.String usage)
usage
- usagepublic void setUserCode(java.lang.String val)
val
- the user code valuepublic void setValueList(java.lang.String valueList)
valueList
- the listpublic void setValueMask(java.lang.String valueMask)
valueMask
- the maskpublic static java.lang.String toEpathStyleString(java.lang.String fullName)
fullName
- full name
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.