Package org.gorpipe.querydialogs.util
Class SubjectLists
java.lang.Object
org.gorpipe.querydialogs.util.SubjectLists
Class holding information on lists and their content. The lists are split into default lists and other lists.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Get the lists column headers.String[][]Get lists content.String[]Get comma separated lists names excluding default lists.Get the names of lists in a comma separated string.String[]Returns content subject values.voidSet data for lists other than default.voidsetDefaultListsData(List<String> inpDefaultListsNames, List<String[]> inpDefaultListsContent, String[] inpListsColumnHeaders) Set data for default lists.toString()booleanCheck if default lists should be used.
-
Constructor Details
-
SubjectLists
public SubjectLists()Constructor. -
SubjectLists
Copy constructor.- Parameters:
subjectLists- the subject lists to copy
-
-
Method Details
-
setData
Set data for lists other than default.- Parameters:
inpListsNames- lists namesinpListsContent- lists content
-
setDefaultListsData
public void setDefaultListsData(List<String> inpDefaultListsNames, List<String[]> inpDefaultListsContent, String[] inpListsColumnHeaders) Set data for default lists.- Parameters:
inpDefaultListsNames- lists namesinpDefaultListsContent- lists contentinpListsColumnHeaders- the column headers for lists
-
useDefaultLists
public boolean useDefaultLists()Check if default lists should be used.- Returns:
trueif default lists should be used,falseif other lists should be used
-
toString
-
getListsSubjectContent
Returns content subject values. The first value in each content entry is the subject value. Output is either for default or other lists depending on the value of useDefaultLists().- Returns:
- content subject values
-
getListsContent
Get lists content.- Returns:
- lists content
-
getListsColumnHeaders
Get the lists column headers.- Returns:
- the lists column headers
-
getListsNamesExcludeDefaultLists
Get comma separated lists names excluding default lists.- Returns:
- comma separated lists names
-
getListsNamesJoined
Get the names of lists in a comma separated string. Output is either for default or other lists depending on the value of useDefaultLists().- Returns:
- comma separated lists names
-