public class

GenericAnnotation

extends Object
implements NamespacedAnnotation<T>
java.lang.Object
   ↳ org.odata4j.core.GenericAnnotation<T>
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Generic implementation of NamespacedAnnotation.

Summary

Fields
private final String localName
private final PrefixedNamespace namespace
private final T value
private final Class<T> valueType
Public Constructors
GenericAnnotation(String namespaceUri, String namespacePrefix, String localName, Class<T> valueType, T value)
Public Methods
String getFullyQualifiedName()
String getName()
Gets the name.
PrefixedNamespace getNamespace()
Gets the namespace (and namespace prefix) for this annotation.
T getValue()
Gets the value.
Class<T> getValueType()
Gets the java-type of the annotation value.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.odata4j.core.Named
From interface org.odata4j.core.NamedValue
From interface org.odata4j.core.NamespacedAnnotation

Fields

private final String localName

private final PrefixedNamespace namespace

private final T value

private final Class<T> valueType

Public Constructors

public GenericAnnotation (String namespaceUri, String namespacePrefix, String localName, Class<T> valueType, T value)

Parameters
namespaceUri
namespacePrefix
localName
valueType
value

Public Methods

public String getFullyQualifiedName ()

public String getName ()

Gets the name.

Returns
  • the name

public PrefixedNamespace getNamespace ()

Gets the namespace (and namespace prefix) for this annotation.

public T getValue ()

Gets the value.

Returns
  • the value

public Class<T> getValueType ()

Gets the java-type of the annotation value.