@Singleton @Introspected public class DefaultValueExtractors extends java.lang.Object implements ValueExtractorRegistry
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ITERABLE_ELEMENT_NODE_NAME |
static java.lang.String |
LIST_ELEMENT_NODE_NAME |
static java.lang.String |
MAP_VALUE_NODE_NAME |
Modifier | Constructor and Description |
---|---|
|
DefaultValueExtractors()
Default constructor.
|
protected |
DefaultValueExtractors(BeanContext beanContext)
Constructor used during DI.
|
Modifier and Type | Method and Description |
---|---|
<T> java.util.Optional<javax.validation.valueextraction.ValueExtractor<T>> |
findUnwrapValueExtractor(java.lang.Class<T> targetType)
Finds a concrete
ValueExtractor without searching the hierarchy. |
<T> java.util.Optional<javax.validation.valueextraction.ValueExtractor<T>> |
findValueExtractor(java.lang.Class<T> targetType)
Finds a a
ValueExtractor for the given type. |
javax.validation.valueextraction.ValueExtractor<boolean[]> |
getBooleanArrayValueExtractor()
Value extractor for boolean[].
|
javax.validation.valueextraction.ValueExtractor<byte[]> |
getByteArrayValueExtractor()
Value extractor for byte[].
|
javax.validation.valueextraction.ValueExtractor<char[]> |
getCharArrayValueExtractor()
Value extractor for char[].
|
javax.validation.valueextraction.ValueExtractor<double[]> |
getDoubleArrayValueExtractor()
Value extractor for double[].
|
javax.validation.valueextraction.ValueExtractor<float[]> |
getFloatArrayValueExtractor()
Value extractor for float[].
|
javax.validation.valueextraction.ValueExtractor<int[]> |
getIntArrayValueExtractor()
Value extractor for int[].
|
javax.validation.valueextraction.ValueExtractor<java.lang.Iterable> |
getIterableValueExtractor()
Value extractor for iterable.
|
javax.validation.valueextraction.ValueExtractor<java.util.Map<?,?>> |
getMapValueExtractor()
Value extractor for iterable.
|
javax.validation.valueextraction.ValueExtractor<java.lang.Object[]> |
getObjectArrayValueExtractor()
Value extractor for Object[].
|
UnwrapByDefaultValueExtractor<java.util.OptionalDouble> |
getOptionalDoubleValueExtractor()
Value extractor for
OptionalDouble . |
UnwrapByDefaultValueExtractor<java.util.OptionalInt> |
getOptionalIntValueExtractor()
Value extractor for
OptionalInt . |
UnwrapByDefaultValueExtractor<java.util.OptionalLong> |
getOptionalLongValueExtractor()
Value extractor for
OptionalLong . |
UnwrapByDefaultValueExtractor<java.util.Optional> |
getOptionalValueExtractor()
Value extractor for optional.
|
javax.validation.valueextraction.ValueExtractor<short[]> |
getShortArrayValueExtractor()
Value extractor for short[].
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValueExtractor
public static final java.lang.String ITERABLE_ELEMENT_NODE_NAME
public static final java.lang.String LIST_ELEMENT_NODE_NAME
public static final java.lang.String MAP_VALUE_NODE_NAME
public DefaultValueExtractors()
@Inject protected DefaultValueExtractors(@Nullable BeanContext beanContext)
beanContext
- The bean contextpublic UnwrapByDefaultValueExtractor<java.util.Optional> getOptionalValueExtractor()
public UnwrapByDefaultValueExtractor<java.util.OptionalInt> getOptionalIntValueExtractor()
OptionalInt
.public UnwrapByDefaultValueExtractor<java.util.OptionalLong> getOptionalLongValueExtractor()
OptionalLong
.public UnwrapByDefaultValueExtractor<java.util.OptionalDouble> getOptionalDoubleValueExtractor()
OptionalDouble
.public javax.validation.valueextraction.ValueExtractor<java.lang.Iterable> getIterableValueExtractor()
public javax.validation.valueextraction.ValueExtractor<java.util.Map<?,?>> getMapValueExtractor()
public javax.validation.valueextraction.ValueExtractor<java.lang.Object[]> getObjectArrayValueExtractor()
public javax.validation.valueextraction.ValueExtractor<int[]> getIntArrayValueExtractor()
public javax.validation.valueextraction.ValueExtractor<byte[]> getByteArrayValueExtractor()
public javax.validation.valueextraction.ValueExtractor<char[]> getCharArrayValueExtractor()
public javax.validation.valueextraction.ValueExtractor<boolean[]> getBooleanArrayValueExtractor()
public javax.validation.valueextraction.ValueExtractor<double[]> getDoubleArrayValueExtractor()
public javax.validation.valueextraction.ValueExtractor<float[]> getFloatArrayValueExtractor()
public javax.validation.valueextraction.ValueExtractor<short[]> getShortArrayValueExtractor()
@NonNull public <T> java.util.Optional<javax.validation.valueextraction.ValueExtractor<T>> findValueExtractor(@NonNull java.lang.Class<T> targetType)
ValueExtractorRegistry
ValueExtractor
for the given type.findValueExtractor
in interface ValueExtractorRegistry
T
- The target typetargetType
- The target type of the value@NonNull public <T> java.util.Optional<javax.validation.valueextraction.ValueExtractor<T>> findUnwrapValueExtractor(@NonNull java.lang.Class<T> targetType)
ValueExtractorRegistry
ValueExtractor
without searching the hierarchy.findUnwrapValueExtractor
in interface ValueExtractorRegistry
T
- The target typetargetType
- The target type of the value