public enum DummyWrapper extends Enum<DummyWrapper> implements TransformerWrapper, ValidatorWrapper
A dummy implementation of the TransformerWrapper
and the
ValidatorWrapper
interfaces.
This class implements an identity transformation and a validation which always returns valid. It can be used as an application of the null object pattern when no specific transformers or validators are set.
The class is an enumeration because it is not necessary to create instance; the singleton instance can be shared by all components.
Enum Constant and Description |
---|
INSTANCE
The single instance of this class.
|
Modifier and Type | Method and Description |
---|---|
static DummyWrapper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DummyWrapper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
transform
isValid
public static final DummyWrapper INSTANCE
public static DummyWrapper[] values()
for (DummyWrapper c : DummyWrapper.values()) System.out.println(c);
public static DummyWrapper valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 The JGUIraffe Team. All rights reserved.