Interface AnalysisResult

All Superinterfaces:
Iterable<ResolvedSegment>, Path

public interface AnalysisResult extends Path
Contains the analysis result for a CqnStructuredTypeRef or CqnStatement.
  • Method Details

    • rootEntity

      CdsEntity rootEntity()
      Returns the CdsEntity that is the root of the ref.
      Returns:
      the root CdsEntity
    • rootKeys

      Map<String,Object> rootKeys()
      Returns the element name to value mapping for the key elements of the CdsEntity that is the root of the ref. Extracts the key values, i.e. the values of the key elements of the entity that is the root of the ref. If the filter 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
    • targetKeys

      Map<String,Object> targetKeys()
      Returns the element name to value mapping for the key elements of the CdsEntity that is targeted by the ref. Extracts the key values, i.e. the values of the key elements to the entity targeted by the ref and optionally the statement's where condition. If the combined filter 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
    • targetKeyValues

      Map<String,Object> targetKeyValues()
      Returns the element name to value mapping for the key elements of the CdsEntity that is targeted by the ref. Extracts the key values, i.e. the values of the key elements to the entity targeted by the ref and optionally the statement's where condition. If the combined filter does not uniquely restrict a key element to a particular value, the key name is not present in the returned map.
      Returns:
      a map relating key element names to key values
    • targetValues

      Map<String,Object> targetValues()
      Returns the element name to value mapping for all elements of the CdsEntity that is targeted by the ref. Extracts the values, i.e. the values of the elements to the entity targeted by the ref and optionally the statement's where condition. If the combined filter 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 all element names to values
    • targetEntity

      CdsEntity targetEntity()
      Returns the CdsEntity targeted by the ref.
      Returns:
      the target CdsEntity