Class UriResourceFunctionImpl
java.lang.Object
org.apache.olingo.server.core.uri.UriResourceImpl
org.apache.olingo.server.core.uri.UriResourceWithKeysImpl
org.apache.olingo.server.core.uri.UriResourceFunctionImpl
- All Implemented Interfaces:
UriResource,UriResourceFunction,UriResourcePartTyped
Covers Function imports and BoundFunction in URI
-
Field Summary
Fields inherited from class org.apache.olingo.server.core.uri.UriResourceWithKeysImpl
keyPredicates -
Constructor Summary
ConstructorsConstructorDescriptionUriResourceFunctionImpl(EdmFunctionImport edmFunctionImport, EdmFunction function, List<UriParameter> parameters) -
Method Summary
Modifier and TypeMethodDescriptionIf the resource path specifies a function import this method will deliver the unbound function for the function import.Convenience method which returns theEdmFunctionImportwhich was used in the resource path to define theEdmFunction.In case of an EntitySet this method will return the EntitySet name.getType()booleanMethods inherited from class org.apache.olingo.server.core.uri.UriResourceWithKeysImpl
getKeyPredicates, getSegmentValue, getTypeFilterOnCollection, getTypeFilterOnEntry, setCollectionTypeFilter, setEntryTypeFilter, setKeyPredicates, toStringMethods inherited from class org.apache.olingo.server.core.uri.UriResourceImpl
getKind, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.olingo.server.api.uri.UriResource
getKind, toStringMethods inherited from interface org.apache.olingo.server.api.uri.UriResourceFunction
getKeyPredicates, getTypeFilterOnCollection, getTypeFilterOnEntryMethods inherited from interface org.apache.olingo.server.api.uri.UriResourcePartTyped
getSegmentValue, toString
-
Constructor Details
-
UriResourceFunctionImpl
public UriResourceFunctionImpl(EdmFunctionImport edmFunctionImport, EdmFunction function, List<UriParameter> parameters)
-
-
Method Details
-
getParameters
- Specified by:
getParametersin interfaceUriResourceFunction- Returns:
- List of function parameters
-
getFunction
Description copied from interface:UriResourceFunctionIf the resource path specifies a function import this method will deliver the unbound function for the function import.- Specified by:
getFunctionin interfaceUriResourceFunction- Returns:
- Function used in the resource path or function import
-
getFunctionImport
Description copied from interface:UriResourceFunctionConvenience method which returns theEdmFunctionImportwhich was used in the resource path to define theEdmFunction.- Specified by:
getFunctionImportin interfaceUriResourceFunction- Returns:
- Function Import used in the resource path
-
getType
- Specified by:
getTypein interfaceUriResourcePartTyped- Returns:
- Type of the resource part
-
isCollection
public boolean isCollection()- Specified by:
isCollectionin interfaceUriResourcePartTyped- Returns:
- True if the resource part is a collection, otherwise false
-
getSegmentValue
Description copied from interface:UriResourceIn case of an EntitySet this method will return the EntitySet name. In Case of $ref this method will return '$ref" as a String.- Specified by:
getSegmentValuein interfaceUriResource- Returns:
- the value of this URI Resource Segment
-