@Override public final <T> T valueOfString(final String value, final EdmLiteralKind literalKind, final EdmFacets facets, final Class<T> returnType) throws EdmSimpleTypeException { if (value == null) { if (facets == null || facets.isNullable() == null || facets.isNullable()) { return null; } else { throw new EdmSimpleTypeException(EdmSimpleTypeException.LITERAL_NULL_NOT_ALLOWED); } } if (literalKind == null) { throw new EdmSimpleTypeException(EdmSimpleTypeException.LITERAL_KIND_MISSING); } return internalValueOfString(value, literalKind, facets, returnType); }
@Override public final <T> T valueOfString(final String value, final EdmLiteralKind literalKind, final EdmFacets facets, final Class<T> returnType) throws EdmSimpleTypeException { if (value == null) { if (facets == null || facets.isNullable() == null || facets.isNullable()) { return null; } else { throw new EdmSimpleTypeException(EdmSimpleTypeException.LITERAL_NULL_NOT_ALLOWED); } } if (literalKind == null) { throw new EdmSimpleTypeException(EdmSimpleTypeException.LITERAL_KIND_MISSING); } return internalValueOfString(value, literalKind, facets, returnType); }
@Override public final <T> T valueOfString(final String value, final EdmLiteralKind literalKind, final EdmFacets facets, final Class<T> returnType) throws EdmSimpleTypeException { if (value == null) { if (facets == null || facets.isNullable() == null || facets.isNullable()) { return null; } else { throw new EdmSimpleTypeException(EdmSimpleTypeException.LITERAL_NULL_NOT_ALLOWED); } } if (literalKind == null) { throw new EdmSimpleTypeException(EdmSimpleTypeException.LITERAL_KIND_MISSING); } return internalValueOfString(value, literalKind, facets, returnType); }