@Override public String getValue() { return csdlExp.getValue(); }
expression = new CsdlPropertyPath().setValue(jp.nextTextValue()); } else if (ANNOTATION_PATH.equals(jp.getCurrentName())) { expression = new CsdlAnnotationPath().setValue(jp.nextTextValue()); } else if (APPLY.equals(jp.getCurrentName())) { jp.nextToken();
write(target, expr); } else if ("AnnotationPath".equals(name)) { write(target, new CsdlAnnotationPath().setValue(elementValue(reader, element))); } else if ("NavigationPropertyPath".equals(name)) { write(target, new CsdlNavigationPropertyPath()
expression = new CsdlPropertyPath().setValue(jp.nextTextValue()); } else if (ANNOTATION_PATH.equals(jp.getCurrentName())) { expression = new CsdlAnnotationPath().setValue(jp.nextTextValue()); } else if (APPLY.equals(jp.getCurrentName())) { jp.nextToken();
write(target, expr); } else if ("AnnotationPath".equals(name)) { write(target, new CsdlAnnotationPath().setValue(elementValue(reader, element))); } else if ("NavigationPropertyPath".equals(name)) { write(target, new CsdlNavigationPropertyPath()
write(target, expr); } else if ("AnnotationPath".equals(name)) { write(target, new CsdlAnnotationPath().setValue(elementValue(reader, element))); } else if ("NavigationPropertyPath".equals(name)) { write(target, new CsdlNavigationPropertyPath()
@Override public String getValue() { return csdlExp.getValue(); }
write(target, expr); } else if ("AnnotationPath".equals(name)) { write(target, new CsdlAnnotationPath().setValue(elementValue(reader, element))); } else if ("NavigationPropertyPath".equals(name)) { write(target, new CsdlNavigationPropertyPath()
@Override public boolean equals (Object obj) { if (obj == null) { return false; } if (!(obj instanceof CsdlAnnotationPath)) { return false; } CsdlAnnotationPath csdlAnnotPath = (CsdlAnnotationPath) obj; return this.getValue() == null ? csdlAnnotPath.getValue() == null : this.getValue().equals(csdlAnnotPath.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")))); } }
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")))); } }