@Test public void convertToEntityReferenceWithoutEntityType() { assertNull(this.converter.convertToType(null, "test")); }
@SuppressWarnings("unchecked") @Override protected EntityReference convertToType(Type targetType, Object value) { String[] parts = StringUtils.split(String.valueOf(value), ":", 2); if (parts == null || parts.length != 2) { return null; } try { EntityType entityType = EntityType.valueOf(camelCaseToUnderscore(parts[0]).toUpperCase()); return this.currentEntityReferenceResolver.resolve(parts[1], entityType); } catch (IllegalArgumentException e) { return null; } }
EntityTreeNodeIdConverter extends AbstractConverter<EntityReference> { @SuppressWarnings("unchecked") @Override protected EntityReference convertToType(Type targetType, Object value) { String[] parts = StringUtils.split(String.valueOf(value), ":", 2); if (parts == null || parts.length != 2) { return null; } try { EntityType entityType = EntityType.valueOf(camelCaseToUnderscore(parts[0]).toUpperCase()); return this.currentEntityReferenceResolver.resolve(parts[1], entityType); } catch (IllegalArgumentException e) { return null; } } }
EntityTreeNodeIdConverter extends AbstractConverter<EntityReference> { @SuppressWarnings("unchecked") @Override protected EntityReference convertToType(Type targetType, Object value) { String[] parts = StringUtils.split(String.valueOf(value), ":", 2); if (parts == null || parts.length != 2) { return null; } try { EntityType entityType = EntityType.valueOf(camelCaseToUnderscore(parts[0]).toUpperCase()); return this.currentEntityReferenceResolver.resolve(parts[1], entityType); } catch (IllegalArgumentException e) { return null; } }  }
EntityTreeNodeIdConverter extends AbstractConverter<EntityReference> { @SuppressWarnings("unchecked") @Override protected EntityReference convertToType(Type targetType, Object value) { String[] parts = StringUtils.split(String.valueOf(value), ":", 2); if (parts == null || parts.length != 2) { return null; } try { EntityType entityType = EntityType.valueOf(camelCaseToUnderscore(parts[0]).toUpperCase()); return this.currentEntityReferenceResolver.resolve(parts[1], entityType); } catch (IllegalArgumentException e) { return null; } }   }
EntityTreeNodeIdConverter extends AbstractConverter<EntityReference> { @SuppressWarnings("unchecked") @Override protected EntityReference convertToType(Type targetType, Object value) { String[] parts = StringUtils.split(String.valueOf(value), ":", 2); if (parts == null || parts.length != 2) { return null; } try { EntityType entityType = EntityType.valueOf(camelCaseToUnderscore(parts[0]).toUpperCase()); return this.currentEntityReferenceResolver.resolve(parts[1], entityType); } catch (IllegalArgumentException e) { return null; } }    }