Class ConversionOptions


  • public class ConversionOptions
    extends java.lang.Object
    • Constructor Detail

      • ConversionOptions

        protected ConversionOptions()
    • Method Detail

      • isIncludeCollections

        public boolean isIncludeCollections()
      • setIncludeCollections

        protected void setIncludeCollections​(boolean includeCollections)
      • getNavigationSegments

        public java.util.List<org.apache.olingo.odata2.api.uri.NavigationSegment> getNavigationSegments()
      • setNavigationSegments

        protected void setNavigationSegments​(java.util.List<org.apache.olingo.odata2.api.uri.NavigationSegment> segments)
      • setExpand

        protected void setExpand​(java.util.List<java.util.List<org.apache.olingo.odata2.api.uri.NavigationPropertySegment>> expand)
      • getExpand

        public java.util.List<java.util.List<org.apache.olingo.odata2.api.uri.NavigationPropertySegment>> getExpand()
      • isNavigationSegmentPresent

        public boolean isNavigationSegmentPresent()
        Determines whether navigation segments are present in this options.
        Returns:
        true, if at least one navigation segment was added to this options; false, otherwise.
        See Also:
        setNavigationSegments(List)
      • isExpandPresent

        public boolean isExpandPresent()
        Determines whether an expand option is present in this options.
        Returns:
        true, if at least one nagivagtion property segment was added to this options; false, otherwise.
        See Also:
        setExpand(List)
      • navigate

        public ConversionOptions navigate​(java.lang.String propertyName)
                                   throws org.apache.olingo.odata2.api.edm.EdmException
        Navigates the navigation segment.
        Parameters:
        propertyName - name of the item property for the navigation segment to navigate.
        Returns:
        new instance of conversion of options without the consumed navigation segment or this options, if the navigation did not happen because the segment does not exist or the property name is invalid.
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • isNextNavigationSegment

        public boolean isNextNavigationSegment​(java.lang.String propertyName)
                                        throws org.apache.olingo.odata2.api.edm.EdmException
        Determines whether the specified property name is the next navigation segment of this options.
        Parameters:
        propertyName - name of the property to enquire about
        Returns:
        true, if next navigation segment in this options matches the property name; false, if next navigation segment in this options does not match the property name of when there are no navigation segments in this options.
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • isNextExpandSegment

        public boolean isNextExpandSegment​(java.lang.String propertyName)
                                    throws org.apache.olingo.odata2.api.edm.EdmException
        Determines whether the specified property name is the next expand segment of this options.
        Parameters:
        propertyName - name of the property to enquire about
        Returns:
        true, if next expand segment in this options matches the property name; false, if next expand segment in this options does not match the property name of when there are no expand segments in this options.
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException