Class ColumnDef
- java.lang.Object
-
- org.opennms.netmgt.config.surveillanceViews.ColumnDef
-
- All Implemented Interfaces:
Serializable
,Def
public class ColumnDef extends Object implements Def, Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCategory(String category)
void
addCategory(Category vCategory)
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 defvoid
setReportCategory(String reportCategory)
Sets the report-category attribute of this column/row def
-
-
-
Method Detail
-
getLabel
public String getLabel()
Description copied from interface:Def
Returns the label of this column/row def.
-
setLabel
public void setLabel(String label)
Description copied from interface:Def
Sets the label of this column/row def
-
getReportCategory
public Optional<String> getReportCategory()
Description copied from interface:Def
Returns the report-category attribute of this column/row def.- Specified by:
getReportCategory
in interfaceDef
- Returns:
- the report-category attribute
-
setReportCategory
public void setReportCategory(String reportCategory)
Description copied from interface:Def
Sets the report-category attribute of this column/row def- Specified by:
setReportCategory
in interfaceDef
- Parameters:
reportCategory
- the report-category attribute to be used
-
getCategories
public List<Category> getCategories()
Description copied from interface:Def
Returns the list of categories used by this column/row def.- Specified by:
getCategories
in interfaceDef
- Returns:
- the list of categories
-
addCategory
public void addCategory(Category vCategory)
-
addCategory
public void addCategory(String category)
-
removeCategory
public boolean removeCategory(Category category)
-
getCategoryNames
public Set<String> getCategoryNames()
Description copied from interface:Def
Returns a set of category names used by this column/row def.- Specified by:
getCategoryNames
in interfaceDef
- Returns:
- the set of category names
-
containsCategory
public boolean containsCategory(String name)
Description copied from interface:Def
Checks whether this column/row def uses the given category.- Specified by:
containsCategory
in interfaceDef
- Parameters:
name
- the nam eof the category to be checked- Returns:
- true, if used by this column/row def, false otherwise
-
-