Java Code Examples for org.codehaus.jackson.type.JavaType#isArrayType()
The following examples show how to use
org.codehaus.jackson.type.JavaType#isArrayType() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LogicalPlanSerializer.java From Bats with Apache License 2.0 | 5 votes |
@Override public boolean useForType(JavaType t) { if (t.getRawClass() == Object.class) { return true; } if (t.getRawClass().getName().startsWith("java.")) { return false; } if (t.isArrayType()) { return false; } return super.useForType(t); }
Example 2
Source File: LogicalPlanSerializer.java From attic-apex-core with Apache License 2.0 | 5 votes |
@Override public boolean useForType(JavaType t) { if (t.getRawClass() == Object.class) { return true; } if (t.getRawClass().getName().startsWith("java.")) { return false; } if (t.isArrayType()) { return false; } return super.useForType(t); }
Example 3
Source File: BackportedObjectReader.java From elasticsearch-hadoop with Apache License 2.0 | 5 votes |
/** * Constructor used by {@link ObjectMapper} for initial instantiation */ protected BackportedObjectReader(ObjectMapper mapper, JavaType valueType, Object valueToUpdate) { _rootDeserializers = ReflectionUtils.getField(ROOT_DESERIALIZERS, mapper); _provider = mapper.getDeserializerProvider(); _jsonFactory = mapper.getJsonFactory(); // must make a copy at this point, to prevent further changes from trickling down _config = mapper.copyDeserializationConfig(); _valueType = valueType; _valueToUpdate = valueToUpdate; if (valueToUpdate != null && valueType.isArrayType()) { throw new IllegalArgumentException("Can not update an array value"); } }