Class ConversionOptions
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.persistence.ConversionOptions
-
public class ConversionOptions extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConversionOptions.ConversionOptionsBuilder
-
Constructor Summary
Constructors Modifier Constructor Description protectedConversionOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConversionOptions.ConversionOptionsBuilderconversionOptionsBuilder()java.util.List<java.util.List<org.apache.olingo.odata2.api.uri.NavigationPropertySegment>>getExpand()java.util.List<org.apache.olingo.odata2.api.uri.NavigationSegment>getNavigationSegments()booleanisExpandPresent()Determines whether an expand option is present in this options.booleanisIncludeCollections()booleanisNavigationSegmentPresent()Determines whether navigation segments are present in this options.booleanisNextExpandSegment(java.lang.String propertyName)Determines whether the specified property name is the next expand segment of this options.booleanisNextNavigationSegment(java.lang.String propertyName)Determines whether the specified property name is the next navigation segment of this options.ConversionOptionsnavigate(java.lang.String propertyName)Navigates the navigation segment.protected voidsetExpand(java.util.List<java.util.List<org.apache.olingo.odata2.api.uri.NavigationPropertySegment>> expand)protected voidsetIncludeCollections(boolean includeCollections)protected voidsetNavigationSegments(java.util.List<org.apache.olingo.odata2.api.uri.NavigationSegment> segments)
-
-
-
Method Detail
-
conversionOptionsBuilder
public static ConversionOptions.ConversionOptionsBuilder conversionOptionsBuilder()
-
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.EdmExceptionDetermines 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.EdmExceptionDetermines 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
-
-