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 class
Builder for a ContextURL instance.static enum
Suffix 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.boolean
Is context result a collection.boolean
isDelta()
Is context result a delta result.boolean
Is context result a delta deleted entity.boolean
Is context result a delta deleted link.boolean
Is context result a delta link.boolean
isEntity()
Is context result a entity.boolean
Is context result a reference.static ContextURL.Builder
with()
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:
true
for 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:
true
for a reference, otherwisefalse
-
isReference
public boolean isReference()Is context result a reference.- Returns:
true
for a reference, otherwisefalse
-
isDelta
public boolean isDelta()Is context result a delta result.- Returns:
true
for a delta result, otherwisefalse
-
isDeltaDeletedEntity
public boolean isDeltaDeletedEntity()Is context result a delta deleted entity.- Returns:
true
for a delta deleted entity, otherwisefalse
-
isDeltaLink
public boolean isDeltaLink()Is context result a delta link.- Returns:
true
for a delta link, otherwisefalse
-
isDeltaDeletedLink
public boolean isDeltaDeletedLink()Is context result a delta deleted link.- Returns:
true
for a delta deleted link, otherwisefalse
-
with
Start building a ContextURL instance.- Returns:
- builder for building a ContextURL instance
-