Class ContextURL.Builder

java.lang.Object
org.apache.olingo.commons.api.data.ContextURL.Builder
Enclosing class:
ContextURL

public static final class ContextURL.Builder extends Object
Builder for a ContextURL instance.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • oDataPath

      public ContextURL.Builder oDataPath(String oDataPath)
      Set the OData path.
      Parameters:
      oDataPath - the OData path
      Returns:
      Builder
    • serviceRoot

      public ContextURL.Builder serviceRoot(URI serviceRoot)
      Set the service root.
      Parameters:
      serviceRoot - the service root
      Returns:
      Builder
    • entitySet

      public ContextURL.Builder entitySet(EdmEntitySet entitySet)
      Set the edm entity set.
      Parameters:
      entitySet - the edm entity set
      Returns:
      Builder
    • keyPath

      public ContextURL.Builder keyPath(String keyPath)
      Set the key path.
      Parameters:
      keyPath - the key path
      Returns:
      Builder
    • entitySetOrSingletonOrType

      public ContextURL.Builder entitySetOrSingletonOrType(String entitySetOrSingletonOrType)
      Set the entity set / singleton / type name.
      Parameters:
      entitySetOrSingletonOrType - the entity set / singleton / type name
      Returns:
      Builder
    • type

      public ContextURL.Builder type(EdmType type)
      Set the edm entity type.
      Parameters:
      type - the edm entity type
      Returns:
      Builder
    • asCollection

      public ContextURL.Builder asCollection()
      Define the result as a collection.
      Returns:
      Builder
    • derived

      public ContextURL.Builder derived(EdmEntityType derivedType)
      Set the derived edm entity type.
      Parameters:
      derivedType - the derived edm entity type
      Returns:
      Builder
    • derivedEntity

      public ContextURL.Builder derivedEntity(String derivedEntity)
      Set the derived entity name.
      Parameters:
      derivedEntity - the derived entity name
      Returns:
      Builder
    • selectList

      public ContextURL.Builder selectList(String selectList)
      Set the select list.
      Parameters:
      selectList - the select list
      Returns:
      Builder
    • suffix

      public ContextURL.Builder suffix(ContextURL.Suffix suffix)
      Set the suffix.
      Parameters:
      suffix - the suffix
      Returns:
      Builder
    • build

      public ContextURL build()
      Create the ContextURL instance based on set values.
      Returns:
      the according ContextURL