Class ProjectionModel
java.lang.Object
com.smeup.kokos.sdk.entity.model.query.ProjectionModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ProjectionModel> fromFun(com.smeup.kokos.sdk.fun.Fun f) Parses the input string from the FUN and returns a list of ProjectionModel.static List<ProjectionModel> fromLegacyString(String string) static List<ProjectionModel> fromString(String string) getExcludedOavsSet(List<ProjectionModel> projectionList) getIncludedOavsSet(List<ProjectionModel> projectionList) getOav()booleanvoidsetIncludeOav(boolean includeOav) voidstatic booleanshouldIncludeOav(List<ProjectionModel> projections, String oavId) Returns whether the given OAV should be emitted based on the provided projection list.
-
Constructor Details
-
ProjectionModel
-
-
Method Details
-
getOav
-
setOav
-
isOavIncluded
public boolean isOavIncluded() -
setIncludeOav
public void setIncludeOav(boolean includeOav) -
fromLegacyString
-
fromString
-
fromFun
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
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@SmeupOavid to test- Returns:
trueif the OAV should appear in the output
-
getIncludedOavsSet
-
getExcludedOavsSet
-