Package org.gorpipe.querydialogs.factory
Class ColumnGroup
- java.lang.Object
-
- org.gorpipe.querydialogs.factory.ColumnGroup
-
public class ColumnGroup extends java.lang.ObjectHolds a definition of columns that should be grouped together. Columns can either be listed with their full name or defined by their common prefix (prefix mode)
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringcolumnNamesNames (and order) of the columns in this group.java.lang.StringdisplayNameThe name to use in graphical representations of the groupbooleanisPredefinedTrue if the group is predefined and should precede other groups in the viewjava.lang.StringnameName of this group.intorderFor groups that are predefined, this is the ranking between them.
-
Constructor Summary
Constructors Constructor Description ColumnGroup(java.lang.String displayName)ColumnGroup(java.lang.String name, java.lang.String displayName, java.lang.String columnNames)ColumnGroup(java.lang.String name, java.lang.String displayName, java.lang.String columnNames, boolean isPredefined, int order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.String column)inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
name
public final java.lang.String name
Name of this group. To be used in meta-data lookup
-
displayName
public final java.lang.String displayName
The name to use in graphical representations of the group
-
columnNames
public final java.lang.String columnNames
Names (and order) of the columns in this group. This should either be a comma-separated string or a single name ending with a '*' (prefix mode)
-
isPredefined
public final boolean isPredefined
True if the group is predefined and should precede other groups in the view
-
order
public final int order
For groups that are predefined, this is the ranking between them. The group with the highest number will be rendered first
-
-
Constructor Detail
-
ColumnGroup
public ColumnGroup(java.lang.String displayName)
- Parameters:
displayName- The name to use in graphical representations of the group
-
ColumnGroup
public ColumnGroup(java.lang.String name, java.lang.String displayName, java.lang.String columnNames)- Parameters:
name- Name of this group. To be used in meta-data lookupdisplayName- The name to use in graphical representations of the groupcolumnNames- Names (and order) of the columns in this group. This should either be a comma-separated string or a single name ending with a '*' (prefix mode)
-
ColumnGroup
public ColumnGroup(java.lang.String name, java.lang.String displayName, java.lang.String columnNames, boolean isPredefined, int order)- Parameters:
name- Name of this group. To be used in meta-data lookupdisplayName- The name to use in graphical representations of the groupcolumnNames- Names (and order) of the columns in this group. This should either be a comma-separated string or a single name ending with a '*' (prefix mode)isPredefined- True if the group is predefined and should precede other groups in the vieworder- For groups that are predefined, this is the ranking between them. The group with the highest number will be rendered first
-
-
Method Detail
-
contains
public boolean contains(java.lang.String column)
- Parameters:
column-- Returns:
- True if the provided column name exists in the column list for this group. Note! name comparison is case-insensitive.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-