Class RowDef
- java.lang.Object
-
- org.opennms.netmgt.config.surveillanceViews.RowDef
-
- All Implemented Interfaces:
java.io.Serializable,Def
public class RowDef extends java.lang.Object implements Def, java.io.Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCategory(java.lang.String category)voidaddCategory(Category category)booleancontainsCategory(java.lang.String name)Checks whether this column/row def uses the given category.booleanequals(java.lang.Object obj)java.util.List<Category>getCategories()Returns the list of categories used by this column/row def.java.util.Set<java.lang.String>getCategoryNames()Returns a set of category names used by this column/row def.java.lang.StringgetLabel()Returns the label of this column/row def.java.util.Optional<java.lang.String>getReportCategory()Returns the report-category attribute of this column/row def.inthashCode()booleanremoveCategory(Category category)voidsetCategories(java.util.List<Category> categories)voidsetLabel(java.lang.String label)Sets the label of this column/row defvoidsetReportCategory(java.lang.String reportCategory)Sets the report-category attribute of this column/row def
-
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
Description copied from interface:DefReturns the label of this column/row def.
-
setLabel
public void setLabel(java.lang.String label)
Description copied from interface:DefSets the label of this column/row def
-
getReportCategory
public java.util.Optional<java.lang.String> getReportCategory()
Description copied from interface:DefReturns the report-category attribute of this column/row def.- Specified by:
getReportCategoryin interfaceDef- Returns:
- the report-category attribute
-
setReportCategory
public void setReportCategory(java.lang.String reportCategory)
Description copied from interface:DefSets the report-category attribute of this column/row def- Specified by:
setReportCategoryin interfaceDef- Parameters:
reportCategory- the report-category attribute to be used
-
getCategories
public java.util.List<Category> getCategories()
Description copied from interface:DefReturns the list of categories used by this column/row def.- Specified by:
getCategoriesin interfaceDef- Returns:
- the list of categories
-
setCategories
public void setCategories(java.util.List<Category> categories)
-
addCategory
public void addCategory(Category category)
-
addCategory
public void addCategory(java.lang.String category)
-
removeCategory
public boolean removeCategory(Category category)
-
getCategoryNames
public java.util.Set<java.lang.String> getCategoryNames()
Description copied from interface:DefReturns a set of category names used by this column/row def.- Specified by:
getCategoryNamesin interfaceDef- Returns:
- the set of category names
-
containsCategory
public boolean containsCategory(java.lang.String name)
Description copied from interface:DefChecks whether this column/row def uses the given category.- Specified by:
containsCategoryin interfaceDef- Parameters:
name- the nam eof the category to be checked- Returns:
- true, if used by this column/row def, false otherwise
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-