Class ProjectionModel

java.lang.Object
com.smeup.kokos.sdk.entity.model.query.ProjectionModel

public class ProjectionModel extends Object
  • Constructor Details

    • ProjectionModel

      public ProjectionModel(String oav, boolean includeOav)
  • Method Details

    • getOav

      public String getOav()
    • setOav

      public void setOav(String oav)
    • isOavIncluded

      public boolean isOavIncluded()
    • setIncludeOav

      public void setIncludeOav(boolean includeOav)
    • fromLegacyString

      public static List<ProjectionModel> fromLegacyString(String string)
    • fromString

      public static List<ProjectionModel> fromString(String string)
    • fromFun

      public static List<ProjectionModel> fromFun(com.smeup.kokos.sdk.fun.Fun f)
      Parses the input string from the FUN and returns a list of ProjectionModel.
      Parameters:
      f - the FUN containing the input string to parse
      Returns:
      a list of ProjectionModel parsed from the input string
    • shouldIncludeOav

      public static boolean shouldIncludeOav(List<ProjectionModel> projections, String oavId)
      Returns whether the given OAV should be emitted based on the provided projection list.
      • Empty list → no filter, include everything.
      • List contains INCLUDE entries → include only those OAVs.
      • List contains only EXCLUDE entries → include everything except those OAVs.
      Parameters:
      projections - the active projection list (might be empty)
      oavId - the @SmeupOav id to test
      Returns:
      true if the OAV should appear in the output
    • getIncludedOavsSet

      public static Set<String> getIncludedOavsSet(List<ProjectionModel> projectionList)
    • getExcludedOavsSet

      public static Set<String> getExcludedOavsSet(List<ProjectionModel> projectionList)