org.odata4j.edm
Class EdmAnnotation<T>

java.lang.Object
  extended by org.odata4j.core.GenericAnnotation<T>
      extended by org.odata4j.edm.EdmAnnotation<T>
All Implemented Interfaces:
Named, NamedValue<T>, NamespacedAnnotation<T>
Direct Known Subclasses:
EdmAnnotationAttribute, EdmAnnotationElement

public abstract class EdmAnnotation<T>
extends GenericAnnotation<T>

Base annotation in the edm type system.

Either an EdmAnnotationAttribute or an EdmAnnotationElement.


Constructor Summary
protected EdmAnnotation(String namespaceUri, String namespacePrefix, String name, Class<T> valueType, T value)
           
 
Method Summary
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
 
Methods inherited from class org.odata4j.core.GenericAnnotation
getFullyQualifiedName, getName, getNamespace, getValue, getValueType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EdmAnnotation

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

attribute

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


element

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



http://odata4j.org