public class Annotation
extends java.lang.Object
Represents an OData annotation.
Constructor and Description |
---|
Annotation() |
Modifier and Type | Method and Description |
---|---|
Annotation |
getAnnotation(java.lang.String term)
Lookup an existing annotation by term name.
|
AnnotationList |
getAnnotationList()
List of annotations for this annotation.
|
AnnotationMap |
getAnnotationMap()
Map of annotations for this annotation.
|
java.lang.String |
getQualifier()
(nullable) Annotation qualifier.
|
AnnotationTerm |
getTerm()
Annotation term.
|
DataValue |
getValue()
(nullable) Annotation value.
|
void |
setQualifier(java.lang.String value)
Annotation qualifier.
|
void |
setTerm(AnnotationTerm value)
Annotation term.
|
void |
setValue(DataValue value)
Annotation value.
|
java.lang.String |
toString() |
public Annotation getAnnotation(java.lang.String term)
Lookup an existing annotation by term name.
Annotation.annotationMap
, for looking up annotations that might not exist.
term
- The term name.public AnnotationList getAnnotationList()
List of annotations for this annotation.
public AnnotationMap getAnnotationMap()
Map of annotations for this annotation.
public java.lang.String getQualifier()
(nullable) Annotation qualifier.
public AnnotationTerm getTerm()
Annotation term.
public DataValue getValue()
(nullable) Annotation value.
public void setQualifier(java.lang.String value)
Annotation qualifier.
public void setTerm(AnnotationTerm value)
Annotation term.
public void setValue(DataValue value)
Annotation value.
public java.lang.String toString()
toString
in class java.lang.Object