public class ColumnDef extends Object implements Def, Serializable
Constructor and Description |
---|
ColumnDef() |
ColumnDef(String label,
String... categories) |
Modifier and Type | Method and Description |
---|---|
void |
addCategory(Category vCategory) |
void |
addCategory(String category) |
boolean |
containsCategory(String name)
Checks whether this column/row def uses the given category.
|
boolean |
equals(Object obj) |
List<Category> |
getCategories()
Returns the list of categories used by this column/row def.
|
Set<String> |
getCategoryNames()
Returns a set of category names used by this column/row def.
|
String |
getLabel()
Returns the label of this column/row def.
|
Optional<String> |
getReportCategory()
Returns the report-category attribute of this column/row def.
|
int |
hashCode() |
boolean |
removeCategory(Category category) |
void |
setCategories(List<Category> categories) |
void |
setLabel(String label)
Sets the label of this column/row def
|
void |
setReportCategory(String reportCategory)
Sets the report-category attribute of this column/row def
|
public String getLabel()
Def
public void setLabel(String label)
Def
public Optional<String> getReportCategory()
Def
getReportCategory
in interface Def
public void setReportCategory(String reportCategory)
Def
setReportCategory
in interface Def
reportCategory
- the report-category attribute to be usedpublic List<Category> getCategories()
Def
getCategories
in interface Def
public void addCategory(Category vCategory)
public void addCategory(String category)
public boolean removeCategory(Category category)
public Set<String> getCategoryNames()
Def
getCategoryNames
in interface Def
public boolean containsCategory(String name)
Def
containsCategory
in interface Def
name
- the nam eof the category to be checkedCopyright © 2021. All rights reserved.