public class AnnotableDefaultImpl extends java.lang.Object implements ODataMetaAnnotable
Constructor and Description |
---|
AnnotableDefaultImpl(java.util.Map<AnnotationName,ODataMetaAnnotation> v4Annotations) |
Modifier and Type | Method and Description |
---|---|
ODataMetaAnnotation |
getVocabularyAnnotation(AnnotationName name)
Retrieves the Odata v4.0 vocabulary-based annotation specified by the given annotation name.
|
ODataMetaAnnotation |
getVocabularyAnnotation(java.lang.String namespace,
java.lang.String name)
Retrieves the Odata v4.0 vocabulary-based annotation specified by the given annotation namespace and loccalname.
|
java.util.Set<AnnotationName> |
getVocabularyAnnotationNames()
Retrieves the set of Odata v4.0 vocabulary-based annotation names belonging to the element.
|
void |
setVocabularyAnnotations(java.util.Map<AnnotationName,ODataMetaAnnotation> v4Annotations) |
public AnnotableDefaultImpl(java.util.Map<AnnotationName,ODataMetaAnnotation> v4Annotations)
public java.util.Set<AnnotationName> getVocabularyAnnotationNames()
ODataMetaAnnotable
getVocabularyAnnotationNames
in interface ODataMetaAnnotable
public ODataMetaAnnotation getVocabularyAnnotation(AnnotationName name)
ODataMetaAnnotable
getVocabularyAnnotation
in interface ODataMetaAnnotable
name
- fully qualified name of the annotation. MUST be non-null, otherwise NullPointerException is thrownpublic ODataMetaAnnotation getVocabularyAnnotation(java.lang.String namespace, java.lang.String name)
ODataMetaAnnotable
getVocabularyAnnotation
in interface ODataMetaAnnotable
namespace
- namespace of the annotation, can be nullname
- local name of the annotation. It MUST be non-null, otherwise NullpointerException is thrown.public void setVocabularyAnnotations(java.util.Map<AnnotationName,ODataMetaAnnotation> v4Annotations)