Class ContextURL.Builder
java.lang.Object
org.apache.olingo.commons.api.data.ContextURL.Builder
- Enclosing class:
- ContextURL
Builder for a ContextURL instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDefine the result as a collection.build()
Create the ContextURL instance based on set values.derived
(EdmEntityType derivedType) Set the derived edm entity type.derivedEntity
(String derivedEntity) Set the derived entity name.entitySet
(EdmEntitySet entitySet) Set the edm entity set.entitySetOrSingletonOrType
(String entitySetOrSingletonOrType) Set the entity set / singleton / type name.Set the key path.navOrPropertyPath
(String navOrPropertyPath) Set the navigation or property path.Set the OData path.selectList
(String selectList) Set the select list.serviceRoot
(URI serviceRoot) Set the service root.suffix
(ContextURL.Suffix suffix) Set the suffix.Set the edm entity type.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
oDataPath
Set the OData path.- Parameters:
oDataPath
- the OData path- Returns:
- Builder
-
serviceRoot
Set the service root.- Parameters:
serviceRoot
- the service root- Returns:
- Builder
-
entitySet
Set the edm entity set.- Parameters:
entitySet
- the edm entity set- Returns:
- Builder
-
keyPath
Set the key path.- Parameters:
keyPath
- the key path- Returns:
- Builder
-
entitySetOrSingletonOrType
Set the entity set / singleton / type name.- Parameters:
entitySetOrSingletonOrType
- the entity set / singleton / type name- Returns:
- Builder
-
type
Set the edm entity type.- Parameters:
type
- the edm entity type- Returns:
- Builder
-
asCollection
Define the result as a collection.- Returns:
- Builder
-
derived
Set the derived edm entity type.- Parameters:
derivedType
- the derived edm entity type- Returns:
- Builder
-
derivedEntity
Set the derived entity name.- Parameters:
derivedEntity
- the derived entity name- Returns:
- Builder
-
selectList
Set the select list.- Parameters:
selectList
- the select list- Returns:
- Builder
-
suffix
Set the suffix.- Parameters:
suffix
- the suffix- Returns:
- Builder
-
build
Create the ContextURL instance based on set values.- Returns:
- the according ContextURL
-