@Override public String toUriLiteral(final String literal) { return getUnderlyingType().toUriLiteral(literal); }
@Override public String toUriLiteral(final String literal) { return getUnderlyingType().toUriLiteral(literal); }
final Object propertyValue = findPropertyRefValue(entity, refType); try { final String value = type.toUriLiteral( type.valueToString(propertyValue, edmProperty.isNullable(), edmProperty.getMaxLength(),
final Object propertyValue = findPropertyRefValue(entity, refType); try { final String value = type.toUriLiteral( type.valueToString(propertyValue, edmProperty.isNullable(), edmProperty.getMaxLength(),
uriLiteralString = edmPrimInstance.toUriLiteral(propertyInCreatedEntity.getValue().toString());
private String getLiteral(final Object value) throws EdmPrimitiveTypeException { final EdmProperty edmProperty = getEdmProperty(); String uriLiteral; if (edmProperty != null) { uriLiteral = ((EdmPrimitiveType) type) .valueToString(value, edmProperty.isNullable(), edmProperty.getMaxLength(), edmProperty.getPrecision(), edmProperty.getScale(), edmProperty.isUnicode()); } else { uriLiteral = ((EdmPrimitiveType) type).valueToString(value, null, null, null, null, null); } return ((EdmPrimitiveType) type).toUriLiteral(uriLiteral); } }