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