public NamespacedAnnotation<?> findAnnotationElement(String namespaceUri, String name) { if (annotationElements != null) { for (NamespacedAnnotation<?> element : annotationElements) { if (element.getNamespace().getUri().equals(namespaceUri) && element.getName().equals(name)) return element; } } return null; }
public NamespacedAnnotation<?> findAnnotationElement(String namespaceUri, String name) { if (annotationElements != null) { for (NamespacedAnnotation<?> element : annotationElements) { if (element.getNamespace().getUri().equals(namespaceUri) && element.getName().equals(name)) return element; } } return null; }
public NamespacedAnnotation<?> findAnnotation(String namespaceUri, String localName) { if (annotations != null) { for (NamespacedAnnotation<?> annotation : annotations) { if (annotation.getNamespace().getUri().equals(namespaceUri) && annotation.getName().equals(localName)) return annotation; } } return null; }
public NamespacedAnnotation<?> findAnnotation(String namespaceUri, String localName) { if (annotations != null) { for (NamespacedAnnotation<?> annotation : annotations) { if (annotation.getNamespace().getUri().equals(namespaceUri) && annotation.getName().equals(localName)) return annotation; } } return null; }
public NamespacedAnnotation<?> findAnnotation(String namespaceUri, String localName) { if (annotations != null) { for (NamespacedAnnotation<?> annotation : annotations) { if (annotation.getNamespace().getUri().equals(namespaceUri) && annotation.getName().equals(localName)) return annotation; } } return null; }
public NamespacedAnnotation<?> findAnnotation(String namespaceUri, String localName) { if (annotations != null) { for (NamespacedAnnotation<?> annotation : annotations) { if (annotation.getNamespace().getUri().equals(namespaceUri) && annotation.getName().equals(localName)) return annotation; } } return null; }
public NamespacedAnnotation<?> findAnnotationElement(String namespaceUri, String name) { if (annotationElements != null) { for (NamespacedAnnotation<?> element : annotationElements) { if (element.getNamespace().getUri().equals(namespaceUri) && element.getName().equals(name)) return element; } } return null; }
public NamespacedAnnotation<?> findAnnotation(String namespaceUri, String localName) { if (annotations != null) { for (NamespacedAnnotation<?> annotation : annotations) { if (annotation.getNamespace().getUri().equals(namespaceUri) && annotation.getName().equals(localName)) return annotation; } } return null; }
public NamespacedAnnotation<?> findAnnotation(String namespaceUri, String localName) { if (annotations != null) { for (NamespacedAnnotation<?> annotation : annotations) { if (annotation.getNamespace().getUri().equals(namespaceUri) && annotation.getName().equals(localName)) return annotation; } } return null; }
private static void writeAnnotation(Iterable<? extends NamespacedAnnotation<?>> annotList, XMLWriter2 writer, String prefix) { String prefix1 = prefix; for (NamespacedAnnotation<?> a : annotList) { if (a instanceof EdmAnnotationAttribute) { String prefix2 = a.getNamespace().getPrefix(); writer.writeAttribute( new QName2(a.getNamespace().getUri(), a.getName(), a.getNamespace().getPrefix()), a.getValue() == null ? "" : a.getValue().toString()); if (!prefix2.equals(prefix1)) { writer.writeNamespace(a.getNamespace().getPrefix(), a.getNamespace().getUri()); } prefix1 = prefix2; } } }
String getProperty(EdmEntitySet entitySet, String key) { Iterable<? extends NamespacedAnnotation> annotations = entitySet.getAnnotations(); for (NamespacedAnnotation annotation:annotations) { PrefixedNamespace namespace = annotation.getNamespace(); if (namespace.getUri().equals(SAPURI)) { if (annotation.getName().equalsIgnoreCase(key)) { return (String)annotation.getValue(); } } } return null; }
private static void writeAnnotation(Iterable<? extends NamespacedAnnotation<?>> annotList, XMLWriter2 writer, String prefix) { String prefix1 = prefix; for (NamespacedAnnotation<?> a : annotList) { if (a instanceof EdmAnnotationAttribute) { String prefix2 = a.getNamespace().getPrefix(); writer.writeAttribute( new QName2(a.getNamespace().getUri(), a.getName(), a.getNamespace().getPrefix()), a.getValue() == null ? "" : a.getValue().toString()); if (!prefix2.equals(prefix1)) { writer.writeNamespace(a.getNamespace().getPrefix(), a.getNamespace().getUri()); } prefix1 = prefix2; } } }
PrefixedNamespace namespace = annotation.getNamespace(); if (namespace.getUri().equals(SAPURI)) { String name = annotation.getName();
PrefixedNamespace namespace = annotation.getNamespace(); if (namespace.getUri().equals(SAPURI)) { String name = annotation.getName();
String propName = a.getNamespace().getPrefix() + "_" + a.getName(); if (c.pathHelper.isSelected(propName)) { Object override = this.decorator != null ? this.decorator.getAnnotationValueOverride(item, a, c.flatten, c.locale,
String propName = a.getNamespace().getPrefix() + "_" + a.getName(); if (c.pathHelper.isSelected(propName)) { Object override = this.decorator != null ? this.decorator.getAnnotationValueOverride(item, a, c.flatten, c.locale,