@Override public String getValue() { return csdlExp.getValue(); }
expression = new CsdlNavigationPropertyPath().setValue(jp.nextTextValue()); } else if (PROPERTY_PATH.equals(jp.getCurrentName())) { expression = new CsdlPropertyPath().setValue(jp.nextTextValue()); } else if (ANNOTATION_PATH.equals(jp.getCurrentName())) { expression = new CsdlAnnotationPath().setValue(jp.nextTextValue());
write(target, new CsdlPath().setValue(elementValue(reader, element))); } else if ("PropertyPath".equals(name)) { write(target, new CsdlPropertyPath().setValue(elementValue(reader, element))); } else if ("UrlRef".equals(name)) { CsdlUrlRef expr = new CsdlUrlRef();
expression = new CsdlNavigationPropertyPath().setValue(jp.nextTextValue()); } else if (PROPERTY_PATH.equals(jp.getCurrentName())) { expression = new CsdlPropertyPath().setValue(jp.nextTextValue()); } else if (ANNOTATION_PATH.equals(jp.getCurrentName())) { expression = new CsdlAnnotationPath().setValue(jp.nextTextValue());
write(target, new CsdlPath().setValue(elementValue(reader, element))); } else if ("PropertyPath".equals(name)) { write(target, new CsdlPropertyPath().setValue(elementValue(reader, element))); } else if ("UrlRef".equals(name)) { CsdlUrlRef expr = new CsdlUrlRef();
write(target, new CsdlPath().setValue(elementValue(reader, element))); } else if ("PropertyPath".equals(name)) { write(target, new CsdlPropertyPath().setValue(elementValue(reader, element))); } else if ("UrlRef".equals(name)) { CsdlUrlRef expr = new CsdlUrlRef();
@Override public String getValue() { return csdlExp.getValue(); }
write(target, new CsdlPath().setValue(elementValue(reader, element))); } else if ("PropertyPath".equals(name)) { write(target, new CsdlPropertyPath().setValue(elementValue(reader, element))); } else if ("UrlRef".equals(name)) { CsdlUrlRef expr = new CsdlUrlRef();
@Override public boolean equals (Object obj) { if (obj == null) { return false; } if (!(obj instanceof CsdlPropertyPath)) { return false; } CsdlPropertyPath csdlPropPath = (CsdlPropertyPath) obj; return this.getValue() == null ? csdlPropPath.getValue() == null : this.getValue().equals(csdlPropPath.getValue()); }
private <T> void readAttributeExpressions(StartElement element, T target) throws XMLStreamException { // attribute based expressions for (ConstantExpressionType type:ConstantExpressionType.values()) { if (attr(element, type.name()) != null) { write(target, new CsdlConstantExpression( type, attr(element, type.name()))); } } if (attr(element, "AnnotationPath") != null) { write(target, new CsdlAnnotationPath().setValue(attr(element, "AnnotationPath"))); } if (attr(element, "NavigationPropertyPath") != null) { write(target, new CsdlNavigationPropertyPath() .setValue(attr(element, "NavigationPropertyPath"))); } if (attr(element, "Path") != null) { write(target, new CsdlPath().setValue(attr(element, "Path"))); } if (attr(element, "PropertyPath") != null) { write(target, new CsdlPropertyPath().setValue(attr(element, "PropertyPath"))); } if (attr(element, "UrlRef") != null) { write(target, new CsdlUrlRef().setValue(new CsdlConstantExpression( ConstantExpressionType.String, attr(element, "UrlRef")))); } }
etag = selectedItem.asDynamic().asPropertyPath().getValue();
private <T> void readAttributeExpressions(StartElement element, T target) throws XMLStreamException { // attribute based expressions for (ConstantExpressionType type:ConstantExpressionType.values()) { if (attr(element, type.name()) != null) { write(target, new CsdlConstantExpression( type, attr(element, type.name()))); } } if (attr(element, "AnnotationPath") != null) { write(target, new CsdlAnnotationPath().setValue(attr(element, "AnnotationPath"))); } if (attr(element, "NavigationPropertyPath") != null) { write(target, new CsdlNavigationPropertyPath() .setValue(attr(element, "NavigationPropertyPath"))); } if (attr(element, "Path") != null) { write(target, new CsdlPath().setValue(attr(element, "Path"))); } if (attr(element, "PropertyPath") != null) { write(target, new CsdlPropertyPath().setValue(attr(element, "PropertyPath"))); } if (attr(element, "UrlRef") != null) { write(target, new CsdlUrlRef().setValue(new CsdlConstantExpression( ConstantExpressionType.String, attr(element, "UrlRef")))); } }