Class ContextURL
java.lang.Object
org.apache.olingo.commons.api.data.ContextURL
High-level representation of a context URL, built from the string value returned by a service; provides access to the
various components of the context URL, defined in the
protocol specification.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for a ContextURL instance.static enumSuffix of the OData Context URL -
Method Summary
Modifier and TypeMethodDescriptionGet the derived entity.Get the set entity set / singleton / type.Get the set key path.Get the set navigation or property path.Get the OData path.Get the select list.Get the service root.Get the set suffix.booleanIs context result a collection.booleanisDelta()Is context result a delta result.booleanIs context result a delta deleted entity.booleanIs context result a delta deleted link.booleanIs context result a delta link.booleanisEntity()Is context result a entity.booleanIs context result a reference.static ContextURL.Builderwith()Start building a ContextURL instance.
-
Method Details
-
getODataPath
Get the OData path.- Returns:
- the OData path
-
getServiceRoot
Get the service root.- Returns:
- the service root
-
getEntitySetOrSingletonOrType
Get the set entity set / singleton / type.- Returns:
- the entity set / singleton / type
-
isCollection
public boolean isCollection()Is context result a collection.- Returns:
truefor a collection, otherwisefalse
-
getDerivedEntity
Get the derived entity.- Returns:
- derived entity
-
getSelectList
Get the select list.- Returns:
- the select list
-
getKeyPath
Get the set key path.- Returns:
- the set key path
-
getSuffix
Get the set suffix.- Returns:
- the set suffix
-
isEntity
public boolean isEntity()Is context result a entity.- Returns:
truefor a reference, otherwisefalse
-
isReference
public boolean isReference()Is context result a reference.- Returns:
truefor a reference, otherwisefalse
-
isDelta
public boolean isDelta()Is context result a delta result.- Returns:
truefor a delta result, otherwisefalse
-
isDeltaDeletedEntity
public boolean isDeltaDeletedEntity()Is context result a delta deleted entity.- Returns:
truefor a delta deleted entity, otherwisefalse
-
isDeltaLink
public boolean isDeltaLink()Is context result a delta link.- Returns:
truefor a delta link, otherwisefalse
-
isDeltaDeletedLink
public boolean isDeltaDeletedLink()Is context result a delta deleted link.- Returns:
truefor a delta deleted link, otherwisefalse
-
with
Start building a ContextURL instance.- Returns:
- builder for building a ContextURL instance
-