@Override public String getValueAsString() { return csdlExp.getValue(); }
@Override public String getValueAsString() { return csdlExp.getValue(); }
@Override public boolean equals (Object obj) { if (obj == null) { return false; } if (!(obj instanceof CsdlConstantExpression)) { return false; } CsdlConstantExpression csdlConstExp = (CsdlConstantExpression) obj; return (this.getValue() == null ? csdlConstExp.getValue() == null : this.getValue().equals(csdlConstExp.getValue())) && (this.getType() == null ? csdlConstExp.getType() == null : this.getType().equals(csdlConstExp.getType())); }
private void build() { if (csdlExp.getType() == CsdlConstantExpression.ConstantExpressionType.EnumMember) { if (csdlExp.getValue() == null) { throw new EdmException("Expression value must not be null"); for (String split : csdlExp.getValue().split(" ")) { final String[] enumSplit = split.split("/"); if (enumSplit.length != 2) { primitive = type.valueOfString(csdlExp.getValue(), null, null, null, null, null, type.getDefaultType()); } catch (EdmPrimitiveTypeException e) { throw new IllegalArgumentException(e);
private void build() { if (csdlExp.getType() == CsdlConstantExpression.ConstantExpressionType.EnumMember) { if (csdlExp.getValue() == null) { throw new EdmException("Expression value must not be null"); for (String split : csdlExp.getValue().split(" ")) { final String[] enumSplit = split.split("/"); if (enumSplit.length != 2) { primitive = type.valueOfString(csdlExp.getValue(), null, null, null, null, null, type.getDefaultType()); } catch (EdmPrimitiveTypeException e) { throw new IllegalArgumentException(e);