Class UriInfoImpl
java.lang.Object
org.apache.olingo.odata2.core.uri.UriInfoImpl
- All Implemented Interfaces:
DeleteUriInfo,GetComplexPropertyUriInfo,GetEntityCountUriInfo,GetEntityLinkCountUriInfo,GetEntityLinkUriInfo,GetEntitySetCountUriInfo,GetEntitySetLinksCountUriInfo,GetEntitySetLinksUriInfo,GetEntitySetUriInfo,GetEntityUriInfo,GetFunctionImportUriInfo,GetMediaResourceUriInfo,GetMetadataUriInfo,GetServiceDocumentUriInfo,GetSimplePropertyUriInfo,PostUriInfo,PutMergePatchUriInfo,UriInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFunctionImportParameter(String name, EdmLiteral value) voidaddNavigationSegment(NavigationSegment navigationSegment) voidaddProperty(EdmProperty property) Gets the custom query options as Map from option names to their corresponding String values, or an empty list if no custom query options are given in the URI.Gets the target entity container.Gets the value of the $expand system query option as a list of lists of navigation-property segments, or an empty list if not used.Gets the value of the $filter system query option as root object of the expression tree built during URI parsing.Gets the value of the $format system query option.Gets the function import.Gets the parameters of a function import as Map from parameter names to their corresponding typed values, or an empty list if no function import is used or no parameters are given in the URI.Gets the value of the $inlinecount system query option.Gets the key predicates used to select a single entity out of the start entity set, or an empty list if not used.Gets the navigation segments, or an empty list if no navigation has been used.Gets the value of the $orderby system query option as root object of the expression tree built during URI parsing.Gets the path used to select a (simple or complex) property of an entity, or an empty list if no property is accessed.Gets the value of the $select system query option as a list of select items, or an empty list if not used.getSkip()Gets the value of the $skip system query option.Gets the value of the $skiptoken system query option.Gets the start entity set - identical to the target entity set if no navigation has been used.Gets the target entity set after navigation.Gets the key predicates used to select a single entity out of the target entity set, or an empty list if not used - identical to the key predicates from the last entry retrieved fromUriInfo.getNavigationSegments()or, if no navigation has been used, to the result ofUriInfo.getKeyPredicates().Gets the target type of the request: an entity type, a simple type, or a complex type.getTop()Gets the value of the $top system query option.booleanisCount()Determines whether $count has been used in the request URI.booleanisLinks()Determines whether $links has been used in the request URI.booleanisValue()Determines whether $value has been used in the request URI.voidsetCount(boolean count) voidsetCustomQueryOptions(Map<String, String> customQueryOptions) voidsetEntityContainer(EdmEntityContainer entityContainer) voidsetExpand(List<ArrayList<NavigationPropertySegment>> expand) voidsetFilter(FilterExpression filter) voidvoidsetFunctionImport(EdmFunctionImport functionImport) voidsetInlineCount(InlineCount inlineCount) voidsetKeyPredicates(List<KeyPredicate> keyPredicates) voidsetLinks(boolean links) voidsetOrderBy(OrderByExpression orderBy) voidsetSelect(List<SelectItem> select) voidvoidsetSkipToken(String skipToken) voidsetStartEntitySet(EdmEntitySet edmEntitySet) voidsetTargetEntitySet(EdmEntitySet targetEntitySet) voidsetTargetType(EdmType targetType) voidvoidsetUriType(UriType uriType) voidsetValue(boolean value) toString()
-
Constructor Details
-
UriInfoImpl
public UriInfoImpl()
-
-
Method Details
-
getUriType
-
setUriType
-
setEntityContainer
-
getEntityContainer
Description copied from interface:UriInfoGets the target entity container.- Specified by:
getEntityContainerin interfaceDeleteUriInfo- Specified by:
getEntityContainerin interfaceGetComplexPropertyUriInfo- Specified by:
getEntityContainerin interfaceGetEntityCountUriInfo- Specified by:
getEntityContainerin interfaceGetEntityLinkCountUriInfo- Specified by:
getEntityContainerin interfaceGetEntityLinkUriInfo- Specified by:
getEntityContainerin interfaceGetEntitySetCountUriInfo- Specified by:
getEntityContainerin interfaceGetEntitySetLinksCountUriInfo- Specified by:
getEntityContainerin interfaceGetEntitySetLinksUriInfo- Specified by:
getEntityContainerin interfaceGetEntitySetUriInfo- Specified by:
getEntityContainerin interfaceGetEntityUriInfo- Specified by:
getEntityContainerin interfaceGetMediaResourceUriInfo- Specified by:
getEntityContainerin interfaceGetSimplePropertyUriInfo- Specified by:
getEntityContainerin interfacePostUriInfo- Specified by:
getEntityContainerin interfacePutMergePatchUriInfo- Specified by:
getEntityContainerin interfaceUriInfo- Returns:
EdmEntityContainerthe target entity container
-
setStartEntitySet
-
getStartEntitySet
Description copied from interface:UriInfoGets the start entity set - identical to the target entity set if no navigation has been used.- Specified by:
getStartEntitySetin interfaceDeleteUriInfo- Specified by:
getStartEntitySetin interfaceGetComplexPropertyUriInfo- Specified by:
getStartEntitySetin interfaceGetEntityCountUriInfo- Specified by:
getStartEntitySetin interfaceGetEntityLinkCountUriInfo- Specified by:
getStartEntitySetin interfaceGetEntityLinkUriInfo- Specified by:
getStartEntitySetin interfaceGetEntitySetCountUriInfo- Specified by:
getStartEntitySetin interfaceGetEntitySetLinksCountUriInfo- Specified by:
getStartEntitySetin interfaceGetEntitySetLinksUriInfo- Specified by:
getStartEntitySetin interfaceGetEntitySetUriInfo- Specified by:
getStartEntitySetin interfaceGetEntityUriInfo- Specified by:
getStartEntitySetin interfaceGetMediaResourceUriInfo- Specified by:
getStartEntitySetin interfaceGetSimplePropertyUriInfo- Specified by:
getStartEntitySetin interfacePostUriInfo- Specified by:
getStartEntitySetin interfacePutMergePatchUriInfo- Specified by:
getStartEntitySetin interfaceUriInfo- Returns:
EdmEntitySet
-
setTargetEntitySet
-
getTargetEntitySet
Description copied from interface:UriInfoGets the target entity set after navigation.- Specified by:
getTargetEntitySetin interfaceDeleteUriInfo- Specified by:
getTargetEntitySetin interfaceGetComplexPropertyUriInfo- Specified by:
getTargetEntitySetin interfaceGetEntityCountUriInfo- Specified by:
getTargetEntitySetin interfaceGetEntityLinkCountUriInfo- Specified by:
getTargetEntitySetin interfaceGetEntityLinkUriInfo- Specified by:
getTargetEntitySetin interfaceGetEntitySetCountUriInfo- Specified by:
getTargetEntitySetin interfaceGetEntitySetLinksCountUriInfo- Specified by:
getTargetEntitySetin interfaceGetEntitySetLinksUriInfo- Specified by:
getTargetEntitySetin interfaceGetEntitySetUriInfo- Specified by:
getTargetEntitySetin interfaceGetEntityUriInfo- Specified by:
getTargetEntitySetin interfaceGetMediaResourceUriInfo- Specified by:
getTargetEntitySetin interfaceGetSimplePropertyUriInfo- Specified by:
getTargetEntitySetin interfacePostUriInfo- Specified by:
getTargetEntitySetin interfacePutMergePatchUriInfo- Specified by:
getTargetEntitySetin interfaceUriInfo- Returns:
EdmEntitySettarget entity set
-
setFunctionImport
-
getFunctionImport
Description copied from interface:UriInfoGets the function import.- Specified by:
getFunctionImportin interfaceDeleteUriInfo- Specified by:
getFunctionImportin interfaceGetComplexPropertyUriInfo- Specified by:
getFunctionImportin interfaceGetEntityCountUriInfo- Specified by:
getFunctionImportin interfaceGetEntityLinkCountUriInfo- Specified by:
getFunctionImportin interfaceGetEntityLinkUriInfo- Specified by:
getFunctionImportin interfaceGetEntitySetCountUriInfo- Specified by:
getFunctionImportin interfaceGetEntitySetLinksCountUriInfo- Specified by:
getFunctionImportin interfaceGetEntitySetLinksUriInfo- Specified by:
getFunctionImportin interfaceGetEntitySetUriInfo- Specified by:
getFunctionImportin interfaceGetEntityUriInfo- Specified by:
getFunctionImportin interfaceGetFunctionImportUriInfo- Specified by:
getFunctionImportin interfaceGetMediaResourceUriInfo- Specified by:
getFunctionImportin interfaceGetSimplePropertyUriInfo- Specified by:
getFunctionImportin interfacePostUriInfo- Specified by:
getFunctionImportin interfacePutMergePatchUriInfo- Specified by:
getFunctionImportin interfaceUriInfo- Returns:
EdmFunctionImportthe function import
-
setTargetType
-
getTargetType
Description copied from interface:UriInfoGets the target type of the request: an entity type, a simple type, or a complex type.- Specified by:
getTargetTypein interfaceDeleteUriInfo- Specified by:
getTargetTypein interfaceGetComplexPropertyUriInfo- Specified by:
getTargetTypein interfaceGetEntityCountUriInfo- Specified by:
getTargetTypein interfaceGetEntityLinkCountUriInfo- Specified by:
getTargetTypein interfaceGetEntityLinkUriInfo- Specified by:
getTargetTypein interfaceGetEntitySetCountUriInfo- Specified by:
getTargetTypein interfaceGetEntitySetLinksCountUriInfo- Specified by:
getTargetTypein interfaceGetEntitySetLinksUriInfo- Specified by:
getTargetTypein interfaceGetEntitySetUriInfo- Specified by:
getTargetTypein interfaceGetEntityUriInfo- Specified by:
getTargetTypein interfaceGetMediaResourceUriInfo- Specified by:
getTargetTypein interfaceGetSimplePropertyUriInfo- Specified by:
getTargetTypein interfacePostUriInfo- Specified by:
getTargetTypein interfacePutMergePatchUriInfo- Specified by:
getTargetTypein interfaceUriInfo- Returns:
EdmTypethe target type
-
setKeyPredicates
-
getKeyPredicates
Description copied from interface:UriInfoGets the key predicates used to select a single entity out of the start entity set, or an empty list if not used.- Specified by:
getKeyPredicatesin interfaceDeleteUriInfo- Specified by:
getKeyPredicatesin interfaceGetComplexPropertyUriInfo- Specified by:
getKeyPredicatesin interfaceGetEntityCountUriInfo- Specified by:
getKeyPredicatesin interfaceGetEntityLinkCountUriInfo- Specified by:
getKeyPredicatesin interfaceGetEntityLinkUriInfo- Specified by:
getKeyPredicatesin interfaceGetEntitySetCountUriInfo- Specified by:
getKeyPredicatesin interfaceGetEntitySetLinksCountUriInfo- Specified by:
getKeyPredicatesin interfaceGetEntitySetLinksUriInfo- Specified by:
getKeyPredicatesin interfaceGetEntitySetUriInfo- Specified by:
getKeyPredicatesin interfaceGetEntityUriInfo- Specified by:
getKeyPredicatesin interfaceGetMediaResourceUriInfo- Specified by:
getKeyPredicatesin interfaceGetSimplePropertyUriInfo- Specified by:
getKeyPredicatesin interfacePostUriInfo- Specified by:
getKeyPredicatesin interfacePutMergePatchUriInfo- Specified by:
getKeyPredicatesin interfaceUriInfo- Returns:
- List of
KeyPredicate - See Also:
-
getTargetKeyPredicates
Description copied from interface:UriInfoGets the key predicates used to select a single entity out of the target entity set, or an empty list if not used - identical to the key predicates from the last entry retrieved fromUriInfo.getNavigationSegments()or, if no navigation has been used, to the result ofUriInfo.getKeyPredicates().- Specified by:
getTargetKeyPredicatesin interfaceDeleteUriInfo- Specified by:
getTargetKeyPredicatesin interfaceGetComplexPropertyUriInfo- Specified by:
getTargetKeyPredicatesin interfaceGetEntityCountUriInfo- Specified by:
getTargetKeyPredicatesin interfaceGetEntityLinkCountUriInfo- Specified by:
getTargetKeyPredicatesin interfaceGetEntityLinkUriInfo- Specified by:
getTargetKeyPredicatesin interfaceGetEntityUriInfo- Specified by:
getTargetKeyPredicatesin interfaceGetMediaResourceUriInfo- Specified by:
getTargetKeyPredicatesin interfaceGetSimplePropertyUriInfo- Specified by:
getTargetKeyPredicatesin interfacePutMergePatchUriInfo- Specified by:
getTargetKeyPredicatesin interfaceUriInfo- Returns:
- List of
KeyPredicate - See Also:
-
addProperty
-
getPropertyPath
Description copied from interface:UriInfoGets the path used to select a (simple or complex) property of an entity, or an empty list if no property is accessed.- Specified by:
getPropertyPathin interfaceDeleteUriInfo- Specified by:
getPropertyPathin interfaceGetComplexPropertyUriInfo- Specified by:
getPropertyPathin interfaceGetSimplePropertyUriInfo- Specified by:
getPropertyPathin interfacePutMergePatchUriInfo- Specified by:
getPropertyPathin interfaceUriInfo- Returns:
- List of
EdmProperty
-
setCount
public void setCount(boolean count) -
isCount
public boolean isCount()Description copied from interface:UriInfoDetermines whether $count has been used in the request URI.- Specified by:
isCountin interfaceGetEntityCountUriInfo- Specified by:
isCountin interfaceGetEntityLinkCountUriInfo- Specified by:
isCountin interfaceGetEntitySetCountUriInfo- Specified by:
isCountin interfaceGetEntitySetLinksCountUriInfo- Specified by:
isCountin interfaceUriInfo- Returns:
- whether $count has been used
-
setValue
public void setValue(boolean value) -
isValue
public boolean isValue()Description copied from interface:UriInfoDetermines whether $value has been used in the request URI.- Specified by:
isValuein interfaceGetSimplePropertyUriInfo- Specified by:
isValuein interfaceUriInfo- Returns:
- whether $value has been used
-
setLinks
public void setLinks(boolean links) -
isLinks
public boolean isLinks()Description copied from interface:UriInfoDetermines whether $links has been used in the request URI.- Specified by:
isLinksin interfaceGetEntityLinkCountUriInfo- Specified by:
isLinksin interfaceGetEntityLinkUriInfo- Specified by:
isLinksin interfaceGetEntitySetLinksCountUriInfo- Specified by:
isLinksin interfaceGetEntitySetLinksUriInfo- Specified by:
isLinksin interfaceUriInfo- Returns:
- whether $links has been used
-
setFormat
-
getFormat
Description copied from interface:UriInfoGets the value of the $format system query option.- Specified by:
getFormatin interfaceGetComplexPropertyUriInfo- Specified by:
getFormatin interfaceGetEntityLinkUriInfo- Specified by:
getFormatin interfaceGetEntitySetLinksUriInfo- Specified by:
getFormatin interfaceGetEntitySetUriInfo- Specified by:
getFormatin interfaceGetEntityUriInfo- Specified by:
getFormatin interfaceGetFunctionImportUriInfo- Specified by:
getFormatin interfaceGetMediaResourceUriInfo- Specified by:
getFormatin interfaceGetServiceDocumentUriInfo- Specified by:
getFormatin interfaceGetSimplePropertyUriInfo- Specified by:
getFormatin interfaceUriInfo- Returns:
- the format (as set as
$formatquery parameter) or null
-
setFilter
-
getFilter
Description copied from interface:UriInfoGets the value of the $filter system query option as root object of the expression tree built during URI parsing.- Specified by:
getFilterin interfaceGetEntityCountUriInfo- Specified by:
getFilterin interfaceGetEntitySetCountUriInfo- Specified by:
getFilterin interfaceGetEntitySetLinksCountUriInfo- Specified by:
getFilterin interfaceGetEntitySetLinksUriInfo- Specified by:
getFilterin interfaceGetEntitySetUriInfo- Specified by:
getFilterin interfaceGetEntityUriInfo- Specified by:
getFilterin interfaceGetMediaResourceUriInfo- Specified by:
getFilterin interfacePutMergePatchUriInfo- Specified by:
getFilterin interfaceUriInfo- Returns:
- the filter expression or null
-
setInlineCount
-
getInlineCount
Description copied from interface:UriInfoGets the value of the $inlinecount system query option.- Specified by:
getInlineCountin interfaceGetEntitySetLinksUriInfo- Specified by:
getInlineCountin interfaceGetEntitySetUriInfo- Specified by:
getInlineCountin interfaceGetFunctionImportUriInfo- Specified by:
getInlineCountin interfaceUriInfo- Returns:
InlineCountthe inline count or null
-
setOrderBy
-
getOrderBy
Description copied from interface:UriInfoGets the value of the $orderby system query option as root object of the expression tree built during URI parsing.- Specified by:
getOrderByin interfaceGetEntitySetUriInfo- Specified by:
getOrderByin interfaceUriInfo- Returns:
- the order-by expression or null
-
setSkipToken
-
getSkipToken
Description copied from interface:UriInfoGets the value of the $skiptoken system query option.- Specified by:
getSkipTokenin interfaceGetEntitySetLinksUriInfo- Specified by:
getSkipTokenin interfaceGetEntitySetUriInfo- Specified by:
getSkipTokenin interfaceUriInfo- Returns:
- skip token or null
-
setSkip
-
getSkip
Description copied from interface:UriInfoGets the value of the $skip system query option.- Specified by:
getSkipin interfaceGetEntitySetCountUriInfo- Specified by:
getSkipin interfaceGetEntitySetLinksCountUriInfo- Specified by:
getSkipin interfaceGetEntitySetLinksUriInfo- Specified by:
getSkipin interfaceGetEntitySetUriInfo- Specified by:
getSkipin interfaceUriInfo- Returns:
- skip or null
-
setTop
-
getTop
Description copied from interface:UriInfoGets the value of the $top system query option.- Specified by:
getTopin interfaceGetEntitySetCountUriInfo- Specified by:
getTopin interfaceGetEntitySetLinksCountUriInfo- Specified by:
getTopin interfaceGetEntitySetLinksUriInfo- Specified by:
getTopin interfaceGetEntitySetUriInfo- Specified by:
getTopin interfaceUriInfo- Returns:
- top or null
-
setExpand
-
getExpand
Description copied from interface:UriInfoGets the value of the $expand system query option as a list of lists of navigation-property segments, or an empty list if not used.- Specified by:
getExpandin interfaceGetEntitySetUriInfo- Specified by:
getExpandin interfaceGetEntityUriInfo- Specified by:
getExpandin interfaceGetFunctionImportUriInfo- Specified by:
getExpandin interfaceUriInfo- Returns:
- List of a list of
NavigationPropertySegmentto be expanded
-
setSelect
-
getSelect
Description copied from interface:UriInfoGets the value of the $select system query option as a list of select items, or an empty list if not used.- Specified by:
getSelectin interfaceGetEntitySetUriInfo- Specified by:
getSelectin interfaceGetEntityUriInfo- Specified by:
getSelectin interfaceGetFunctionImportUriInfo- Specified by:
getSelectin interfaceUriInfo- Returns:
- List of
SelectItemto be selected
-
addFunctionImportParameter
-
getFunctionImportParameters
Description copied from interface:UriInfoGets the parameters of a function import as Map from parameter names to their corresponding typed values, or an empty list if no function import is used or no parameters are given in the URI.- Specified by:
getFunctionImportParametersin interfaceDeleteUriInfo- Specified by:
getFunctionImportParametersin interfaceGetComplexPropertyUriInfo- Specified by:
getFunctionImportParametersin interfaceGetEntityCountUriInfo- Specified by:
getFunctionImportParametersin interfaceGetEntityLinkCountUriInfo- Specified by:
getFunctionImportParametersin interfaceGetEntityLinkUriInfo- Specified by:
getFunctionImportParametersin interfaceGetEntitySetCountUriInfo- Specified by:
getFunctionImportParametersin interfaceGetEntitySetLinksCountUriInfo- Specified by:
getFunctionImportParametersin interfaceGetEntitySetLinksUriInfo- Specified by:
getFunctionImportParametersin interfaceGetEntitySetUriInfo- Specified by:
getFunctionImportParametersin interfaceGetEntityUriInfo- Specified by:
getFunctionImportParametersin interfaceGetFunctionImportUriInfo- Specified by:
getFunctionImportParametersin interfaceGetMediaResourceUriInfo- Specified by:
getFunctionImportParametersin interfaceGetSimplePropertyUriInfo- Specified by:
getFunctionImportParametersin interfacePostUriInfo- Specified by:
getFunctionImportParametersin interfacePutMergePatchUriInfo- Specified by:
getFunctionImportParametersin interfaceUriInfo- Returns:
- Map of <String,
EdmLiteral> function import parameters
-
getCustomQueryOptions
Description copied from interface:UriInfoGets the custom query options as Map from option names to their corresponding String values, or an empty list if no custom query options are given in the URI.- Specified by:
getCustomQueryOptionsin interfaceDeleteUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetComplexPropertyUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetEntityCountUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetEntityLinkCountUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetEntityLinkUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetEntitySetCountUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetEntitySetLinksCountUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetEntitySetLinksUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetEntitySetUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetEntityUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetFunctionImportUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetMediaResourceUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetMetadataUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetServiceDocumentUriInfo- Specified by:
getCustomQueryOptionsin interfaceGetSimplePropertyUriInfo- Specified by:
getCustomQueryOptionsin interfacePostUriInfo- Specified by:
getCustomQueryOptionsin interfacePutMergePatchUriInfo- Specified by:
getCustomQueryOptionsin interfaceUriInfo- Returns:
- Map of <String, String> custom query options
-
setCustomQueryOptions
-
toString
-