public class Validation extends Object
Constructor and Description |
---|
Validation() |
Modifier and Type | Method and Description |
---|---|
static void |
validateAttribute(Attr attr,
Class cls,
Guid guid)
Determines whether attribute is valid.
|
static void |
validateAttribute(Attr attr,
String validatorClass,
String rule)
Determines whether a specific attribute is valid.
|
static void |
validateAttributes(AttrSet attrSet,
Class cls,
Guid guid)
Determines whether each attribute in the attribute set is valid.
|
static void |
validateAttributes(ModSet modSet,
Class cls,
Guid guid)
Determines whether each attribute in the ModSet is valid.
|
public static void validateAttribute(Attr attr, String validatorClass, String rule) throws UMSException, DataConstraintException
attr
- attribute to testvalidatorClass
- the validator class namerule
- optional rule applies to the validatorUMSException
- failureDataConstraintException
- data validation failurepublic static void validateAttribute(Attr attr, Class cls, Guid guid) throws UMSException, DataConstraintException
attr
- attribute to testcls
- Class associatd with this attributeguid
- the guid of the Organization where the config data is storedUMSException
- failureDataConstraintException
- data validation failurepublic static void validateAttributes(AttrSet attrSet, Class cls, Guid guid) throws UMSException, DataConstraintException
attrSet
- attribute set to testcls
- Class associated with these attribute setguid
- the guid of the Organization where the config data is storedUMSException
- failureDataConstraintException
- data validation failurepublic static void validateAttributes(ModSet modSet, Class cls, Guid guid) throws UMSException, DataConstraintException
modSet
- modSet to testcls
- Class associated with these attributesguid
- the guid of the Organization where the config data is storedUMSException
- failureDataConstraintException
- data validation failureCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.