|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.database.Field | +--planetj.database.field.StringOrNumberField | +--planetj.database.field.PhoneNumberField
Represents a PhoneNumber. Programmers can assign either String/Char/VarChar or Decimal Fields to a PhoneNumberField. Creation date: (2/28/2002 3:27:12 PM)
Nested Class Summary |
Nested classes inherited from class planetj.database.Field |
Field.FieldLocation |
Field Summary |
Fields inherited from interface planetj.dataengine.security.IGuarded |
TYPE_ID_UNKNOWN, TYPE_NAME_FIELD, TYPE_NAME_SQLOPERATION, TYPE_SECURED_BY_LEVEL, TYPE_SECURED_BY_OPERATION, TYPE_UNSECURED |
Constructor Summary | |
PhoneNumberField()
|
Method Summary | |
String |
getDisplayValue()
Returns the display value of this Field as phone number string. |
String |
getExternalValidationKey()
Get the key that may be used to uniquely identify Field subclasses for external validation. |
String |
getValidValuesString()
This method should be overriden by subclasses that want to display possible or valid values to a user Example PhoneNumber would return "Example: (123) 456-7890, 1234567890, 123-456-7890" Creation date: (4/5/2002 2:52:46 PM) |
boolean |
getValueAsBoolean()
Subclasses must override this to detirmine what their boolean value is. |
static short |
guessFieldClassProbability(FieldDescriptorRow pFDRow,
RowCollection pSampleData)
Subclasses will override to take an educated guess at what the Field Class will be for this FD Row. |
boolean |
isValidLength(ExecutingContext ec)
Validate this Field based on its max length attribute. |
boolean |
isValidValue(ExecutingContext ec)
Validate this Field value. |
Methods inherited from class planetj.database.field.StringOrNumberField |
createObject, getCopiedValue, getDefaultDatabaseValue, getSQLValue, isValueEqual, isValueGreaterThan, isValueLessThan, setValue |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PhoneNumberField()
Method Detail |
public String getDisplayValue()
getDisplayValue
in class Field
public String getExternalValidationKey()
getExternalValidationKey
in class Field
public String getValidValuesString()
getValidValuesString
in class Field
public boolean getValueAsBoolean()
getValueAsBoolean
in class Field
public static short guessFieldClassProbability(FieldDescriptorRow pFDRow, RowCollection pSampleData)
public boolean isValidLength(ExecutingContext ec)
isValidLength
in class Field
ec
- The current executing context, which may be null
public boolean isValidValue(ExecutingContext ec)
isValidValue
in class Field
ec
- The executing context, which may be null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |