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