Package org.gorpipe.querydialogs.util
Class SubjectLists
java.lang.Object
org.gorpipe.querydialogs.util.SubjectLists
public class SubjectLists
extends java.lang.Object
Class holding information on lists and their content. The lists are split into default lists and other lists.
-
Constructor Summary
Constructors Constructor Description SubjectLists()Constructor.SubjectLists(SubjectLists subjectLists)Copy constructor. -
Method Summary
Modifier and Type Method Description java.lang.String[]getListsColumnHeaders()Get the lists column headers.java.lang.String[][]getListsContent()Get lists content.java.lang.String[]getListsNamesExcludeDefaultLists()Get comma separated lists names excluding default lists.java.lang.StringgetListsNamesJoined()Get the names of lists in a comma separated string.java.lang.String[]getListsSubjectContent()Returns content subject values.voidsetData(java.util.List<java.lang.String> inpListsNames, java.util.List<java.lang.String[]> inpListsContent)Set data for lists other than default.voidsetDefaultListsData(java.util.List<java.lang.String> inpDefaultListsNames, java.util.List<java.lang.String[]> inpDefaultListsContent, java.lang.String[] inpListsColumnHeaders)Set data for default lists.java.lang.StringtoString()booleanuseDefaultLists()Check 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
public void setData(java.util.List<java.lang.String> inpListsNames, java.util.List<java.lang.String[]> inpListsContent)Set data for lists other than default.- Parameters:
inpListsNames- lists namesinpListsContent- lists content
-
setDefaultListsData
public void setDefaultListsData(java.util.List<java.lang.String> inpDefaultListsNames, java.util.List<java.lang.String[]> inpDefaultListsContent, java.lang.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
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
getListsSubjectContent
public java.lang.String[] 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
public java.lang.String[][] getListsContent()Get lists content.- Returns:
- lists content
-
getListsColumnHeaders
public java.lang.String[] getListsColumnHeaders()Get the lists column headers.- Returns:
- the lists column headers
-
getListsNamesExcludeDefaultLists
public java.lang.String[] getListsNamesExcludeDefaultLists()Get comma separated lists names excluding default lists.- Returns:
- comma separated lists names
-
getListsNamesJoined
public java.lang.String 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
-