Package org.fugerit.java.core.validator
Class ValidatorWrapper
- java.lang.Object
-
- org.fugerit.java.core.cfg.xml.BasicIdConfigType
-
- org.fugerit.java.core.validator.BasicValidator
-
- org.fugerit.java.core.validator.ValidatorWrapper
-
- All Implemented Interfaces:
Serializable
,IdConfigType
,Wrapper<BasicValidator>
,KeyObject<String>
,KeyString
public class ValidatorWrapper extends BasicValidator implements Wrapper<BasicValidator>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.fugerit.java.core.validator.BasicValidator
ERROR_KEY_LENGTH_MAX, ERROR_KEY_LENGTH_MIN, ERROR_KEY_REQUIRED, KEY_INFO, KEY_MAXLENGTH, KEY_MINLENGTH, KEY_REQUIRED, NO_LENGTH_CONSTRAINT
-
-
Constructor Summary
Constructors Constructor Description ValidatorWrapper(BasicValidator wrapped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicValidator
unwrap()
Recursively unwrap the wrapped object until it is not instance of Wrapper anymore.BasicValidator
unwrapModel()
Unwrap the underlying objectvoid
wrapModel(BasicValidator wrapped)
Wraps the give objects-
Methods inherited from class org.fugerit.java.core.validator.BasicValidator
checkConfig, checkOverride, configure, configure, configure, formatMessage, isOptional, validate
-
Methods inherited from class org.fugerit.java.core.cfg.xml.BasicIdConfigType
getId, getKey, setId, toString
-
-
-
-
Constructor Detail
-
ValidatorWrapper
public ValidatorWrapper(BasicValidator wrapped)
-
-
Method Detail
-
unwrapModel
public BasicValidator unwrapModel()
Description copied from interface:Wrapper
Unwrap the underlying object- Specified by:
unwrapModel
in interfaceWrapper<BasicValidator>
- Returns:
- the wrapped object
-
wrapModel
public void wrapModel(BasicValidator wrapped)
Description copied from interface:Wrapper
Wraps the give objects- Specified by:
wrapModel
in interfaceWrapper<BasicValidator>
- Parameters:
wrapped
- objects to wrap
-
unwrap
public BasicValidator unwrap()
Description copied from interface:Wrapper
Recursively unwrap the wrapped object until it is not instance of Wrapper anymore.- Specified by:
unwrap
in interfaceWrapper<BasicValidator>
- Returns:
- the underlying object
-
-