Class ODataNavigationProperty

  • All Implemented Interfaces:
    ODataAnnotatable

    public class ODataNavigationProperty
    extends java.lang.Object
    implements ODataAnnotatable
    A helper class for exploring and evaluating content of an OData EDM Property
    • Constructor Summary

      Constructors 
      Constructor Description
      ODataNavigationProperty​(org.apache.olingo.odata2.api.edm.provider.NavigationProperty property)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute> getAnnotation​(java.lang.String name)  
      java.util.Collection<java.lang.String> getAnnotationNames()  
      java.util.List<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute> getAnnotations()  
      boolean hasFromRole​(java.lang.String fromRole)  
      boolean hasName​(java.lang.String expectedName)  
      boolean hasRelationshipName​(java.lang.String relationshipName)  
      boolean hasToRole​(java.lang.String toRole)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ODataNavigationProperty

        public ODataNavigationProperty​(org.apache.olingo.odata2.api.edm.provider.NavigationProperty property)
    • Method Detail

      • getAnnotation

        public java.util.Optional<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute> getAnnotation​(java.lang.String name)
        Specified by:
        getAnnotation in interface ODataAnnotatable
      • getAnnotations

        public java.util.List<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute> getAnnotations()
      • hasName

        public boolean hasName​(java.lang.String expectedName)
      • hasFromRole

        public boolean hasFromRole​(java.lang.String fromRole)
      • hasToRole

        public boolean hasToRole​(java.lang.String toRole)
      • hasRelationshipName

        public boolean hasRelationshipName​(java.lang.String relationshipName)