filters.BaseFilter | +--filters.IDValidationFilter
Method Summary | |
public boolean |
getAllowEmpty()
Returns true if empty string values are allowed. |
public boolean |
getAllowIntegerLists()
Returns true if integer lists are allowed. |
public boolean |
getAllowLists()
Returns true if comma seperated lists of ids are allowed. |
public array |
getConfigurables()
Returns a list of configurable properties |
public string |
getDescription()
|
public numeric |
getMaximumDigits()
Returns max number of digits allowed for ints. |
public numeric |
getMaximumStringLength()
Returns maximum string length of an id. |
public string |
getName()
|
public string |
getThreatCategory()
Returns validation |
public numeric |
inspectRequest()
|
public numeric |
inspectVariable([variableName scope], [any varName], [any value])
|
public boolean |
isNegativeIntegersAllowed()
Returns true if negative integers are allowed |
public boolean |
isNumericAllowed()
Returns true if Numeric Values are allowed. |
public boolean |
isUUIDAllowed()
Returns true if UUID's are allowed. |
public void |
setAllowEmpty([boolean allow="true"])
When passed true (the default) allows empty strings to pass the id validation. |
public void |
setAllowIntegerLists(boolean allow)
Sets if integer lists are allowed eg 123,456,789 |
public void |
setAllowLists(boolean allow)
Sets if comma seperated lists of ids are allowed. |
public void |
setMaximumDigits(numeric digits)
Sets the maximum amount of digits for an integer id value. Default is 11, which allows for a 32 bit signed integer. Use 20 digits to support a 64 bit integer or Long data type. |
public void |
setMaximumStringLength(numeric length)
Sets the maximum number of characters in an id. Default value is 128, set to at least 35 if you are using UUIDs |
public void |
setNegativeIntegersAllowed(boolean allowed)
Specifies if integers shold be signed or unsigned. |
public void |
setNumericAllowed(boolean allowed)
Specifies if Numeric Values are allowed, uses IsNumeric function to test. |
public void |
setStringsAllowed(boolean allowed)
Specifies if String ID's are allowed. They may only contain the characters: a-z 0-9 _ - |
public void |
setUUIDAllowed(boolean allowed)
Specifies if UUID's are allowed, they must be in the format returned by the CreateUUID() function. This value is ignored unless setStringsAllowed(false) is set. |
Method Detail |
public boolean getAllowEmpty()
public boolean getAllowIntegerLists()
public boolean getAllowLists()
public array getConfigurables()
public string getDescription()
public numeric getMaximumDigits()
public numeric getMaximumStringLength()
public string getName()
public string getThreatCategory()
public numeric inspectRequest()
public numeric inspectVariable([variableName scope], [any varName], [any value])
[variableName scope]
[any varName]
[any value]
public boolean isNegativeIntegersAllowed()
public boolean isNumericAllowed()
public boolean isUUIDAllowed()
public void setAllowEmpty([boolean allow="true"])
[boolean allow="true"]
- Set to true to allow integer listspublic void setAllowIntegerLists(boolean allow)
boolean allow
- Set to true to allow integer listspublic void setAllowLists(boolean allow)
boolean allow
- Set to true to allow listspublic void setMaximumDigits(numeric digits)
numeric digits
public void setMaximumStringLength(numeric length)
numeric length
- The number of characterspublic void setNegativeIntegersAllowed(boolean allowed)
boolean allowed
public void setNumericAllowed(boolean allowed)
boolean allowed
public void setStringsAllowed(boolean allowed)
boolean allowed
public void setUUIDAllowed(boolean allowed)
boolean allowed