Interface ResolvedSegment


public interface ResolvedSegment
Contains information on a CqnReference.Segment of a CqnStructuredTypeRef
  • Method Details

    • segment

      Returns the unmodified CqnReference.Segment.
      Returns:
      a Segment
    • entity

      default CdsEntity entity()
      Returns the CdsEntity that is referenced by the CqnReference.Segment.
      Returns:
      a CdsEntity
    • type

      Returns the CdsStructuredType that is referenced by the CqnReference.Segment.
      Returns:
      the type referenced by the segment
    • element

      CdsElement element()
      Returns the CdsElement corresponding to this CqnReference.Segment.
      Returns:
      the CdsElement, or null
    • keys

      Map<String,Object> keys()
      Returns the element name to value mapping for the key elements of the CdsEntity that is targeted by the CqnReference.Segment. Extracts the key values, i.e. the values of the key elements to the entity targeted by this segment, from this segment's filter condition. If the filter condition does not uniquely restrict a key element to a particular value, the element's name is mapped to null.
      Returns:
      a map relating all key element names to key values
    • keyValues

      Map<String,Object> keyValues()
      Returns the element name to value mapping for the key elements of the CdsEntity that is targeted by the CqnReference.Segment. Extracts the key values, i.e. the values of the key elements to the entity targeted by this segment, from this segment's filter condition. If the filter condition does not uniquely restrict a key element to a particular value, the element's name is not present in the returned map.
      Returns:
      a map relating key element names to values
    • values

      Map<String,Object> values()
      Returns the element name to value mapping for all elements of the CdsEntity that is targeted by the CqnReference.Segment. Extracts the values, i.e. the values of the elements to the entity targeted by this segment, from this segment's filter condition. If the filter condition does not uniquely restrict an element to a particular value, the element's name is not present in the returned map.
      Returns:
      a map relating element names to values