public abstract class

EdmAnnotation

extends GenericAnnotation<T>
java.lang.Object
   ↳ org.odata4j.core.GenericAnnotation<T>
     ↳ org.odata4j.edm.EdmAnnotation<T>
Known Direct Subclasses

Class Overview

Base annotation in the edm type system.

Either an EdmAnnotationAttribute or an EdmAnnotationElement.

Summary

[Expand]
Inherited Fields
From class org.odata4j.core.GenericAnnotation
Protected Constructors
EdmAnnotation(String namespaceUri, String namespacePrefix, String name, Class<T> valueType, T value)
Public Methods
static EdmAnnotationAttribute attribute(String namespaceUri, String namespacePrefix, String name, String value)
Creates an attribute annotation
static <T> EdmAnnotationElement<T> element(String namespaceUri, String namespacePrefix, String name, Class<T> valueType, T value)
Creates an element annotation
[Expand]
Inherited Methods
From class org.odata4j.core.GenericAnnotation
From class java.lang.Object
From interface org.odata4j.core.Named
From interface org.odata4j.core.NamedValue
From interface org.odata4j.core.NamespacedAnnotation

Protected Constructors

protected EdmAnnotation (String namespaceUri, String namespacePrefix, String name, Class<T> valueType, T value)

Parameters
namespaceUri
namespacePrefix
name
valueType
value

Public Methods

public static EdmAnnotationAttribute attribute (String namespaceUri, String namespacePrefix, String name, String value)

Creates an attribute annotation

Parameters
namespaceUri
namespacePrefix
name
value

public static EdmAnnotationElement<T> element (String namespaceUri, String namespacePrefix, String name, Class<T> valueType, T value)

Creates an element annotation

Parameters
namespaceUri
namespacePrefix
name
valueType
value