public class SimpleSanitizer extends AbstractSimpleSanitizer
true
.Modifier and Type | Field and Description |
---|---|
protected Object |
sanitizedValue
The sanitized value.
|
valid
Constructor and Description |
---|
SimpleSanitizer(boolean valid,
Object sanitizedValue)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
sanitize2(Object value)
Returns a sanitized value specified during construction of
this object. |
isValid, sanitize
protected final Object sanitizedValue
public SimpleSanitizer(boolean valid, Object sanitizedValue)
valid
- true
whether parameter current value is valid, otherwise false
.sanitizedValue
- the sanitized value which will be returned by AbstractSimpleSanitizer.sanitize(Object)
method.protected Object sanitize2(Object value)
this
object.sanitize2
in class AbstractSimpleSanitizer
value
- the parameter value (ignored).SimpleSanitizer(boolean, Object)
Copyright © 2015–2016 gabrys.biz. All rights reserved.