org.odata4j.core
Class GenericAnnotation<T>

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

public class GenericAnnotation<T>
extends Object
implements NamespacedAnnotation<T>

Generic implementation of NamespacedAnnotation.


Constructor Summary
GenericAnnotation(String namespaceUri, String namespacePrefix, String localName, Class<T> valueType, T value)
           
 
Method Summary
 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericAnnotation

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

getFullyQualifiedName

public String getFullyQualifiedName()

getName

public String getName()
Description copied from interface: Named
Gets the name.

Specified by:
getName in interface Named
Returns:
the name

getNamespace

public PrefixedNamespace getNamespace()
Description copied from interface: NamespacedAnnotation
Gets the namespace (and namespace prefix) for this annotation.

Specified by:
getNamespace in interface NamespacedAnnotation<T>

getValue

public T getValue()
Description copied from interface: NamedValue
Gets the value.

Specified by:
getValue in interface NamedValue<T>
Returns:
the value

getValueType

public Class<T> getValueType()
Description copied from interface: NamespacedAnnotation
Gets the java-type of the annotation value.

Specified by:
getValueType in interface NamespacedAnnotation<T>

toString

public String toString()
Overrides:
toString in class Object


http://odata4j.org