Class ODataPathSegmentImpl

java.lang.Object
org.apache.olingo.odata2.core.ODataPathSegmentImpl
All Implemented Interfaces:
PathSegment

public class ODataPathSegmentImpl extends Object implements PathSegment
  • Constructor Details

    • ODataPathSegmentImpl

      public ODataPathSegmentImpl(String path, Map<String,List<String>> matrixParameters)
      Constructor for an path segment object.
      Parameters:
      path - path of created path segment
      matrixParameters - Map of Lists of matrix parameters for this path segment (can be null if no matrix parameters should be set for this path segment)
  • Method Details

    • getPath

      public String getPath()
      Description copied from interface: PathSegment
      Gets a URI path element. In the example above, color will be an element.
      Specified by:
      getPath in interface PathSegment
      Returns:
      a URI path element
    • getMatrixParameters

      public Map<String,List<String>> getMatrixParameters()
      Description copied from interface: PathSegment

      Gets the matrix parameters of this path segment.

      In the PathSegment example, mul, long, and scale are matrix parameters.

      Specified by:
      getMatrixParameters in interface PathSegment
      Returns:
      an immutable map of matrix parameters and their values