|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AttributeDefValidationDef>
edu.internet2.middleware.grouper.attr.AttributeDefValidationDef
public enum AttributeDefValidationDef
definitions of validations
Enum Constant Summary | |
---|---|
dateTimeMask
formatting of dateTime, the mask. |
|
dontTrim
dont trim the value before saving. |
|
exactLength
length in chars must be a certain value, not less not more |
|
maxLength
length in chars cannot be more than this amount |
|
minLength
length in chars must be at least this amount |
|
regex
validate based on regex |
|
required
if the value is required when the attribute is assigned |
|
stringCapitalizeWords
capitalize words so each is lower and starts with upper |
|
stringToLower
make the string to lower |
|
stringToUpper
make the string caps |
Method Summary | |
---|---|
static int |
argumentInt(AttributeDefValidationInterface attributeDefValidationInterface,
java.lang.String argument,
int argumentIndex)
make sure this argument is an int |
static void |
argumentNone(AttributeDefValidationInterface attributeDefValidationInterface,
java.lang.String argument0,
java.lang.String argument1)
make sure there are no argument |
static void |
argumentOne(AttributeDefValidationInterface attributeDefValidationInterface,
java.lang.String argument0,
java.lang.String argument1)
make sure there is one argument |
static int |
argumentOneInt(AttributeDefValidationInterface attributeDefValidationInterface,
java.lang.String argument0,
java.lang.String argument1)
should have 1 argument, as int |
static java.lang.String |
argumentOneString(AttributeDefValidationInterface attributeDefValidationInterface,
java.lang.String argument0,
java.lang.String argument1)
should have 1 argument, as string |
java.lang.String |
formatFromDb(java.lang.Object input,
java.lang.String argument0,
java.lang.String argument1)
format an input |
java.lang.Object |
formatToDb(java.lang.Object input,
java.lang.String argument0,
java.lang.String argument1)
format an input |
static int |
length(java.lang.Object object)
|
java.lang.String |
validate(java.lang.Object input,
java.lang.String argument0,
java.lang.String argument1)
validate that an object is not null |
static AttributeDefValidationDef |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AttributeDefValidationDef[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.internet2.middleware.grouper.attr.AttributeDefValidationInterface |
---|
name |
Enum Constant Detail |
---|
public static final AttributeDefValidationDef exactLength
public static final AttributeDefValidationDef minLength
public static final AttributeDefValidationDef maxLength
public static final AttributeDefValidationDef regex
public static final AttributeDefValidationDef required
public static final AttributeDefValidationDef dateTimeMask
public static final AttributeDefValidationDef dontTrim
public static final AttributeDefValidationDef stringToUpper
public static final AttributeDefValidationDef stringToLower
public static final AttributeDefValidationDef stringCapitalizeWords
Method Detail |
---|
public static AttributeDefValidationDef[] values()
for (AttributeDefValidationDef c : AttributeDefValidationDef.values()) System.out.println(c);
public static AttributeDefValidationDef valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String formatFromDb(java.lang.Object input, java.lang.String argument0, java.lang.String argument1)
AttributeDefValidationInterface
formatFromDb
in interface AttributeDefValidationInterface
input
- could be integer, string, double, or memberId
formatFromDb(Object, String, String)
public java.lang.Object formatToDb(java.lang.Object input, java.lang.String argument0, java.lang.String argument1)
AttributeDefValidationInterface
formatToDb
in interface AttributeDefValidationInterface
AttributeDefValidationDef#formatToDb(String, String, String)
public java.lang.String validate(java.lang.Object input, java.lang.String argument0, java.lang.String argument1)
AttributeDefValidationInterface
validate
in interface AttributeDefValidationInterface
validate(Object, String, String)
public static int argumentOneInt(AttributeDefValidationInterface attributeDefValidationInterface, java.lang.String argument0, java.lang.String argument1)
argument0
- argument1
-
public static java.lang.String argumentOneString(AttributeDefValidationInterface attributeDefValidationInterface, java.lang.String argument0, java.lang.String argument1)
argument0
- argument1
-
public static int argumentInt(AttributeDefValidationInterface attributeDefValidationInterface, java.lang.String argument, int argumentIndex)
attributeDefValidationInterface
- argument
- argumentIndex
- public static void argumentOne(AttributeDefValidationInterface attributeDefValidationInterface, java.lang.String argument0, java.lang.String argument1)
public static void argumentNone(AttributeDefValidationInterface attributeDefValidationInterface, java.lang.String argument0, java.lang.String argument1)
public static int length(java.lang.Object object)
object
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |